Replies: 5 comments
-
Can you post the manifest of your plugin? |
Beta Was this translation helpful? Give feedback.
-
Yes, here's the manifest:
I'm using the same JDK on every system. I also did some research. On the systems with BIRT 4.6 where it does not work I have run a report with following Script in the onCreate of a label:
and
But usually I should get a label with text like this:
|
Beta Was this translation helpful? Give feedback.
-
Are you using the OSGi runtime? The extension registry is normally not available outside Eclipse. When running the OSGi runtime I don't think you have access to it. Either way, the org.eclipse.core.runtime jar seems missing in this configuration. |
Beta Was this translation helpful? Give feedback.
-
Yes I'm using the OSGi runtime. But, I can confirm that org.eclipse.core.runtime is present in my installation:
|
Beta Was this translation helpful? Give feedback.
-
It seems the error happens because of the user account or the corresponding systemd service that are used for starting the java process. After I assign a login shell to the system user like Afterwards I can use my plugin in the reports without issues. I have no idea how this can affect my plugin inside of the runtime, yet. |
Beta Was this translation helpful? Give feedback.
-
I've written a small plugin for BIRT that provide some functions I can use in scripts in BIRT reports.
They run fine (using BIRT OSGi Runtime 4.6 and also 4.8 version on an AdoptOpenJDK jdk8u252-b09) on Ubuntu server 16.04 and 18.04 as well as on a Debian 10 desktop system.
But unfortunally I can not get them to run on Debian 10 & 11 server system as well on ubuntu server 20.04.
The report crashes and I see errors like this:
Error 2: There are errors evaluating script "this.text = MyTestPlugin.testFunction();": ReferenceError: "MyTestPlugin" is not defined. (/report/body/label[@id="6"]/method[@name="onCreate"]#1)
I've checked the system configurations, file ownerships and permissions over and over, but did not find the cause for this error.
It seems like the plugin does not get loaded correctly.
I wonder if others had similar problems and were able to fix them.
Maybe there is a dependency of OSGi or BIRT that the operating system has to provide?
Beta Was this translation helpful? Give feedback.
All reactions