I am getting the error ```java.lang.NoSuchMethodEr...
# exposed
m
I am getting the error
Copy code
java.lang.NoSuchMethodError: No static method from(Ljava/time/Instant;)Ljava/sql/Timestamp; in class Ljava/sql/Timestamp; or its super classes (declaration of 'java.sql.Timestamp' appears in /apex/com.android.art/javalib/core-oj.jar)
    at org.jetbrains.exposed.sql.kotlin.datetime.KotlinInstantColumnType.notNullValueToDB(KotlinDateColumnType.kt:244)
while using Exposed 0.41.1 in an Android app. The crash happens when I perform the following transaction:
Copy code
transaction {
    Orders.insert { order ->
        order[customerName] = AppPreferenceStore.username.value!!
        order[Orders.comment] = comment.takeIf { it.isNotBlank() }?.trim()
        order[orderTimestamp] = Clock.System.now()
        order[Orders.targetTimestamp] = Clock.System.now()
    }
}
My table looks like this:
Copy code
object Orders : IntIdTable() {
    override val tableName = "orders"

    val customerName = text("customer_name")
    val orderTimestamp = timestamp("order_timestamp")
    val targetTimestamp = timestamp("target_timestamp")
    val comment = text("comment").nullable()
}
This is the code that crashes the app, with the weird part being that if I halt the app with a debugger in this specific line and execute the it in the debugger, I get the correct output and no errors. Can anyone please give me a pointer as to what could cause this error?