You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "erichards97 (via GitHub)" <gi...@apache.org> on 2026/07/24 06:29:58 UTC
[I] Java - UnsatisfiedLinkError [arrow-adbc]
erichards97 opened a new issue, #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580
### What happened?
I've followed the [quickstart guide](https://github.com/columnar-tech/adbc-quickstarts/tree/main/java/clickhouse#readme) for Java / ClickHouse but am seeing the following error:
```
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\Edward\AppData\Local\Temp\adbc-jni-5247101362949043213.tmp: Can't find dependent libraries
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2394)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.Runtime.load(Runtime.java:741)
at org.apache.arrow.adbc.driver.jni.impl.JniLoader.<init>(JniLoader.java:55)
at org.apache.arrow.adbc.driver.jni.impl.JniLoader.<clinit>(JniLoader.java:34)
at org.apache.arrow.adbc.driver.jni.JniDriver.open(JniDriver.java:61)
at org.apache.arrow.adbc.drivermanager.AdbcDriverManager.connect(AdbcDriverManager.java:74)
at tech.columnar.Example.main(Example.java:42)
[ERROR] Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:394)
at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:292)
```
On line 35 of Example.java, I've tried replacing `"clickhouse"` with a path to the driver .dll but the same issue occurs. I've seen this across two different machines so hopefully not user error.
Thanks
I've also raised this here - https://github.com/columnar-tech/adbc-quickstarts/issues/117
### Stack Trace
_No response_
### How can we reproduce the bug?
_No response_
### Environment/Setup
Windows 11
Java 17
Latest ClickHouse Docker img
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5069233543
Interesting...we need to test Windows more thoroughly, it appears. The JNI artifacts were built without statically linking the ADBC libraries in. Let me check the next release
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "ianmcook (via GitHub)" <gi...@apache.org>.
ianmcook commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5070651763
I reproduced the error and confirmed that the JARs in the artifact at https://github.com/apache/arrow-adbc/actions/runs/30089666671/artifacts/8595216312 resolve the error. Steps I took:
1. Download that file.
2. Decompress it into `C:\path\to\java-release-assets`.
3. `cd C:\path\to\java-release-assets` and run these commands:
```sh
mvn install:install-file "-Dfile=arrow-adbc-java-root-0.24.0-SNAPSHOT.pom" "-DpomFile=arrow-adbc-java-root-0.24.0-SNAPSHOT.pom"
mvn install:install-file "-Dfile=adbc-core-0.24.0-SNAPSHOT.jar" "-DpomFile=adbc-core-0.24.0-SNAPSHOT.pom"
mvn install:install-file "-Dfile=adbc-driver-manager-0.24.0-SNAPSHOT.jar" "-DpomFile=adbc-driver-manager-0.24.0-SNAPSHOT.pom"
mvn install:install-file "-Dfile=adbc-driver-jni-0.24.0-SNAPSHOT.jar" "-DpomFile=adbc-driver-jni-0.24.0-SNAPSHOT.pom"
```
4. `cd` back into the `adbc-quickstarts\java\clickhouse` directory.
5. Edit `pom.xml` to change `<adbc.version>0.21.0</adbc.version>` to `<adbc.version>0.24.0-SNAPSHOT</adbc.version>`.
6. Re-run `mvn compile exec:exec`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5069242669
It's also borked. Hmm
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "erichards97 (via GitHub)" <gi...@apache.org>.
erichards97 commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5069392987
I can't claim to be a Java or Maven wizard, this was quite a niche use-case I was testing out. But happy to give it a go!
Thanks for picking this up.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5069211130
Oh, Windows 11. And ADBC 0.21?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5069562534
Ok. This artifact: https://github.com/apache/arrow-adbc/actions/runs/30089666671/artifacts/8595216312
From this run: https://github.com/apache/arrow-adbc/actions/runs/30089666671?pr=4582
Contains all the JARs for ADBC 0.24 (dev release). Maybe you can get an LLM to move them to a local Maven repo that you can depend on?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5069281628
The next release was still in voting phase. I'll fix this and cut a new release.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5069205253
Which platform are you on? (Windows x64, but which version of Windows?) This isn't about the driver - it's the JNI shim that isn't loading.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm commented on issue #4580:
URL: https://github.com/apache/arrow-adbc/issues/4580#issuecomment-5069379850
@erichards97 would you be able to test a JAR from CI? Albeit it might be too much of a hassle to figure out how to replace all the libraries properly
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Java - UnsatisfiedLinkError [arrow-adbc]
Posted by "lidavidm (via GitHub)" <gi...@apache.org>.
lidavidm closed issue #4580: Java - UnsatisfiedLinkError
URL: https://github.com/apache/arrow-adbc/issues/4580
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org