Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » JNA call hangs until OSGI exit(Native FMU / FMI integration into OSGI environment)
JNA call hangs until OSGI exit [message #1839794] Mon, 29 March 2021 09:23
Christian Derksen is currently offline Christian DerksenFriend
Messages: 11
Registered: September 2017
Junior Member
Hi there,

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, 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?

Best wishes,

Previous Topic:Custom toolbar for plugin perspective
Next Topic:How to Trigger "Build All" for site.xml via ANT task
Goto Forum:

Current Time: Wed Sep 28 17:24:44 GMT 2022

Powered by FUDForum. Page generated in 0.01840 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top