-
Notifications
You must be signed in to change notification settings - Fork 15
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
resolve the issue of java.lang.NullPointerException in springboot jar #153
Conversation
PR missing one of the required labels: {'documentation', 'new feature', 'enhancement', 'internal', 'bug', 'breaking-change', 'dependencies'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Let me further investigate this, because this solution has caused the native lib to fail to be loaded from external projects. Let's postpone the merge.
@huazai023 Hello, how did you integrate Zenoh into SpringBoot? |
Add the following dependencies in POM There is a bug in the current version 1.0.0-beta. 1, please rely on the latest version |
Thanks, are you using maven? Is the imported package from my picture here |
yes |
thanks |
This issue should be fixed now by https://github.com/eclipse-zenoh/zenoh-java/pull/162/files. |
When using zenoh java jvm in springboot jar, the following error occurred:
java.lang.Exception: Unable to load Zenoh JNI: java.lang.NullPointerException
at io.zenoh.Zenoh$Companion.tryLoadingLibraryFromJarPackage-IoAF18A(Zenoh.kt:137)
at io.zenoh.Zenoh$Companion.access$tryLoadingLibraryFromJarPackage-IoAF18A(Zenoh.kt:29)
at io.zenoh.Zenoh.(Zenoh.kt:161)
at io.zenoh.Zenoh.(Zenoh.kt)
at io.zenoh.Zenoh$Companion.load(Zenoh.kt:36)
at io.zenoh.Session.(Session.kt:90)
at io.zenoh.Session.(Session.kt)
at io.zenoh.Session$Companion.open(Session.kt:70)
at io.zenoh.Session.open(Session.kt)
at com.kernelsoft.zenoh.handler.ZenohSubHandler.subKey(ZenohSubHandler.java:64)
at com.kernelsoft.zenoh.handler.ZenohSubHandler.lambda$startZenohSub$0(ZenohSubHandler.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:833)