Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodError: No interface method getSchema() #1239

Open
vladyslavv-ua opened this issue Feb 13, 2025 · 2 comments
Open

java.lang.NoSuchMethodError: No interface method getSchema() #1239

vladyslavv-ua opened this issue Feb 13, 2025 · 2 comments

Comments

@vladyslavv-ua
Copy link

Describe the bug
Try to use kotlin dataframe library in android, but every time when i launch screen with dataframe logic I got a crash

To Reproduce

  1. Clone the repository https://github.com/vladyslavv-ua/TimeTracker
  2. Build into android.
  3. Launch the screen where dataframe is used image(this equalizer button)

Image
5. Get a crash
Expected behavior

Working app

Logs

Process: io.vladyslavv_ua.time_tracker, PID: 497
java.lang.NoSuchMethodError: No interface method getSchema()Ljava/lang/String; in class Ljava/sql/Connection; or its super classes (declaration of 'java.sql.Connection' appears in /apex/com.android.art/javalib/core-oj.jar)
at org.jetbrains.kotlinx.dataframe.io.ReadJdbcKt.getTableColumnsMetadata(readJdbc.kt:780)
at org.jetbrains.kotlinx.dataframe.io.ReadJdbcKt.readSqlQuery(readJdbc.kt:233)
at org.jetbrains.kotlinx.dataframe.io.ReadJdbcKt.readSqlQuery(readJdbc.kt:193)
at org.jetbrains.kotlinx.dataframe.io.ReadJdbcKt.readSqlQuery$default(readJdbc.kt:185)
at io.vladyslavv_ua.time_tracker.feature.fullStatistics.FullStatisticsScreenVM$1.invokeSuspend(FullStatisticsScreenVM.kt:34)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:359)
at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:26)
at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:358)
at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:124)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:52)
at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:43)
at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
at io.vladyslavv_ua.time_tracker.feature.fullStatistics.FullStatisticsScreenVM.(FullStatisticsScreenVM.kt:31)
at io.vladyslavv_ua.time_tracker.di.PlatformSpecificModule_androidKt.get_platformSpecificModule$lambda$2$lambda$1(platformSpecificModule.android.kt:21)
at io.vladyslavv_ua.time_tracker.di.PlatformSpecificModule_androidKt.$r8$lambda$sxInqmHUzV9H55u-ouYcXwgBGBA(Unknown Source:0)
at io.vladyslavv_ua.time_tracker.di.PlatformSpecificModule_androidKt$$ExternalSyntheticLambda1.invoke(D8$$SyntheticClass:0)

Environment (please complete the following information):

  • OS: Android
  • CPU architecture: arm64-v8a
  • sqlite-jdbc version 3.49.0.0

Additional context
Add any other context about the problem here.

@gotson
Copy link
Collaborator

gotson commented Feb 14, 2025

you will need to perform a bit more debugging on your side, the stack trace doesn't even show any of sqlite-jdbc package/class

@vladyslavv-ua
Copy link
Author

What could I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants