Nullpointer Exception starting equinox [message #533603] |
Fri, 14 May 2010 16:10 |
Eclipse User |
|
|
|
Originally posted by: andre.dietisheim.gmail.com
Hi everybody
I try to migrate an osgi that currently runs on felix towards equinox.
Unfortunately I ran into a NullPointer exception while starting equinox
programmatically.
I use equinox 3.5 and I run it in a custom jar (created my own jar und
unpacked the equinox classes into it).
java.lang.NullPointerException
at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage
(BaseAdaptor.java:121)
at org.eclipse.osgi.framework.internal.core.Framework.initializ e
(Framework.java:185)
at org.eclipse.osgi.framework.internal.core.Framework.<init>
(Framework.java:157)
at
org.eclipse.osgi.framework.internal.core.EquinoxLauncher.int ernalInit
(EquinoxLauncher.java:68)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher$1.r un
(EquinoxLauncher.java:42)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.EquinoxLauncher.ini t
(EquinoxLauncher.java:40)
at org.eclipse.osgi.launch.Equinox.init(Equinox.java:89)
at org.apache.clerezza.platform.launcher.Main.startFramework
(Main.java:295)
at org.apache.clerezza.platform.launcher.Main.main(Main.java:21 0)
I stepped through the code and tracked the exact code. Its the code where
equinox tries to initialize the storage:
Framework#initializeStorage:
public void initializeStorage() throws IOException {
storage.initialize(this);
}
storage is actually NULL
I checked my configuration options and added the following options that
point to my home-dir on my linux machine (in hope that this dir is surely
writable and shouldn't cause any problem):
configProps.put("osgi.framework", "/home/trisa/workspaces/
clerezza/trunk/org.apache.clerezza.parent/
org.apache.clerezza.platform.launcher.tdb");
configProps.put("osgi.install.area", "/home/trisa/workspaces/
clerezza/trunk/org.apache.clerezza.parent/
org.apache.clerezza.platform.launcher.tdb");
configProps.put("osgi.configuration.area","/home/trisa/workspaces/
clerezza/trunk/org.apache.clerezza.parent/
org.apache.clerezza.platform.launcher.tdb");
Unofrtunately still no success. I'm currently running out of ideas and
I'd appreciate any help/hints a lot!
Thanks in advance
André
|
|
|
|
Powered by
FUDForum. Page generated in 0.03521 seconds