Re: OSGi with Bndtools and Apache Felix throws exception
Posted by
sneakpaw on
Mar 25, 2013; 10:59pm
URL: https://forum.jogamp.org/OSGi-with-Bndtools-and-Apache-Felix-throws-exception-tp4028765p4028816.html
This is actually quite embarrassing... while collecting information for the bug report, I noticed that the log was apparently automatically truncated by Eclipse, so quite a bit of the top was missing (it's now 1.8 MB big). Sorry about that.
But I think I found the issue here, but first, here is the log (separated into two parts)
The first one is the log output of: GLProfile.getDefault();
ArrayIndexOutOfBoundsException-with-osgi-felix-and-awt.txtThe second one happens, when the application tries to display the window (and the GLCanvas with it)
ArrayIndexOutOfBoundsException-with-osgi-felix-and-awt---part-2.txt(I don't know, why I used pastebin for the earlier one)
Apparently the bundle cannot find/access "sun.java2d.opengl.OGLUtilities" which is included in the JRE.
I already tried including the package as an import and/or as a system package within the manifest-file, but it didn't help.
I think I have to set "org.osgi.framework.system.packages.extra" correctly, so that the bundle is allowed access.
I think I'm already a bit too tired to figure out why it didn't work yet, but I think that may be it. Please correct me if I'm wrong.
Otherwise, I'm going to try the day after tomorrow (or maybe even tomorrow, if I'm able to find the time).
I also did NOT file a bug report... because it doesn't seem to be one.