|JNA call hangs until OSGI exit [message #1839794]
||Mon, 29 March 2021 09:23
| Christian Derksen
Registered: September 2017
we're working on an integration of modellica FMU / FMI models into our simulation and runtime environment by using javaFMI that uses jna-4.1.0. All relevant javaFMI-correspoding jar files are part of our bundle and integrated in the bundle class path.
javaFMI works like this: a *.fmu file (that is a compressed file) will be specified. This will be extracted to the users tmp directory, where - beside others - an OS depending native library will be located. After that, javaFMI will use jna to use the provided functionallity.
When executing the javaFMI - Simulation in a dedicated thread, the execution hangs in the jna call Native.open(path, openFlag).
And now the weired stuff:
- Testing the execution on a colleague's machine, didn't cause the same problems
- Terminatig the OSGI framework by using 'exit' in the OSGI console, relases the hanging thread and the code will be executed (but of course the application is terminated).
I have tried different JVM (jdk-1.8.0_241 & jdk 11.0.6), but the behaviour is the same on my machine.
Could this be an OSGI or PDE problem?
Powered by FUDForum
. Page generated in 0.01888 seconds