[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] NullPointerException in LocationManager when launching deployed RCP-app

Hello everyone,

I followed the RCP tutorial part 1 and 2 by Jeff Gunther. Great tutorial! Everything is fine when I run the RCP-App from within Eclipse. But when I export it (again, following the excellent tutorial) I get a nasty NullPointerException. See the logs at the end of my post.

The console-output of the VM tells me that its the LocationManager.computeDefaultConfigurationLocation()-method that throws the exception. I tried to figure out what the LocationManger and that specific method does. The Javadoc for LocationManger simply tells me it's an "Internal class" and the method seems to figure out where the configuration-directory has to go or something. I created a configuration-dir in my RCP-apps dir but that didn't change anything.

I have not found any reference to this problem, neither via Google nor the Eclipse newsgroups (platform and RCP).

Does anybody have any hint here?

(Btw: I'm running Eclipse 3.1.0 build 200408122000 on Win XP with JSDK 1.4.2.)

Stefan Ukena


//---- Logs follow ------------------------------------

This is what my .log says:

!ENTRY org.eclipse.core.launcher 4 0 Okt 08, 2004 11:03:14.806
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.NullPointerException
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)



and this is what the console gives me:


> java -cp startup.jar org.eclipse.core.launcher.Main -application com.ibm.developerworks.google.GoogleApplication


java.lang.NullPointerException
at org.eclipse.core.runtime.adaptor.LocationManager.computeDefaultConfigurationLocation(LocationManager.java:212)
at org.eclipse.core.runtime.adaptor.LocationManager.initializeLocations(LocationManager.java:126)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:208)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Main.java:279)
at org.eclipse.core.launcher.Main.run(Main.java:742)
at org.eclipse.core.launcher.Main.main(Main.java:581)