-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[jsscripting] Dropping/Updating JAR bundle causes UnsatisfiedLinkError: Native library already loaded in another classloader
#18054
Comments
@florian-h05 - FWIW, I've seen this exception too recently with the 5.0 snapshot versions. I'm not using a JAR. |
I think it occurs when installing some add-ons and some bundles are reloaded due to this. |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/openhab-5-0-snapshot-discussion/161404/3 |
@wborn May I ask for your help here? I think this needs an OSGi expert … |
This issue has been mentioned on openHAB Community. There might be relevant details there: https://community.openhab.org/t/osgi-shared-class-loader-and-graalvm-problem/161601/2 |
Updating the JS Scripting JAR bundle in the
addons
folder causes the following exception:I thought this could be solved by OSGi-ifying the Graal dependencies, so that only one bundle loading that native library is active.
This will also be required or at least nice to have when having a GraalPython add-on.
For this, I created openhab/openhab-osgiify#57.
Unfortunately, I am not able to OSGI-ify truffle-api and truffle-runtime (see the linked PR) due to unresolved requirements, that seem like circular dependencies.
Next, I have created #18053 to try make use of the OSGi-ified GraalVM Polyglot dependency, but this fails with:
The text was updated successfully, but these errors were encountered: