surrealdb.java icon indicating copy to clipboard operation
surrealdb.java copied to clipboard

Bug: java.lang.UnsatisfiedLinkError

Open 047massi opened this issue 1 year ago • 3 comments

Describe the bug

I encountered a java.lang.UnsatisfiedLinkError when calling the queryBind method.

Steps to reproduce

surreal.queryBind("SELECT * FROM table WHERE id = $id", paramsMap);

Expected behaviour

The queryBind method should successfully execute a parameterized query on the database without throwing any errors. It should bind the specified parameters to the query and return the expected result set or a successful response

SurrealDB version

surreal 2.0.4

Contact Details

[email protected]

Is there an existing issue for this?

  • [X] I have searched the existing issues

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

047massi avatar Oct 12 '24 11:10 047massi

Same problem here :(

odwrotnie avatar Nov 07 '24 09:11 odwrotnie

Same problem. Any plans on continuing work on this repository?

response = this.driver.queryBind( "UPSERT $what SET $object;", Map.of("what", what, "object", object) );

Caused by: java.lang.UnsatisfiedLinkError: 'long com.surrealdb.Surreal.queryBind(long, java.lang.String, java.util.Map)'

i1Fury avatar Jul 31 '25 06:07 i1Fury

something similar : No implementation found for boolean com.surrealdb.Entry.deleteInstance(long) (tried Java_com_surrealdb_Entry_deleteInstance and Java_com_surrealdb_Entry_deleteInstance__J) - is the library loaded, e.g. System.loadLibrary? 2025-10-04 01:02:40.854 14717-14725 System com.example.kmp E Uncaught exception thrown by finalizer 2025-10-04 01:02:40.854 14717-14725 System com.example.kmp E java.lang.UnsatisfiedLinkError: No implementation found for boolean com.surrealdb.Entry.deleteInstance(long) (tried Java_com_surrealdb_Entry_deleteInstance and Java_com_surrealdb_Entry_deleteInstance__J) - is the library loaded, e.g. System.loadLibrary? at com.surrealdb.Entry.deleteInstance(Native Method) at com.surrealdb.Native.deleteInstance(Native.java:25) at com.surrealdb.Native.finalize(Native.java:58) at java.lang.Daemons$FinalizerDaemon.doFinalize(Daemons.java:339) at java.lang.Daemons$FinalizerDaemon.processReference(Daemons.java:324) at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:300) at java.lang.Daemons$Daemon.run(Daemons.java:145) at java.lang.Thread.run(Thread.java:1012) 2025-10-04 01:02:40.854 14717-14725 com.example.kmp com.example.kmp E No implementation found for boolean com.surrealdb.Entry.deleteInstance(long) (tried Java_com_surrealdb_Entry_deleteInstance and Java_com_surrealdb_Entry_deleteInstance__J) - is the library loaded, e.g. System.loadLibrary? 2025-10-04 01:02:40.854 14717-14725 System com.example.kmp E Uncaught exception thrown by finalizer

masterofdaemon avatar Oct 03 '25 22:10 masterofdaemon