Installing issue but test ok [message #45838] |
Mon, 09 February 2009 09:40 |
Eclipse User |
|
|
|
Hi guys,
Here's my problem I developed an Eclipse plugin and when I test it using
the "Launch an Eclipse application" link it works just fine, but when I
try to install it by creating its associated feature and site I get this
exception :
java.lang.NullPointerException
at dev.com.finder.MyClass.findAllOpenProjectsLocations(MyClass. java:87)
at dev.com.finder.MyClass.find(MyClass.java:41)
at dev.com.finder.views.JacomoFinderView.createPartControl(MyCl ass.java:28)
at
org.eclipse.ui.internal.ViewReference.createPartHelper(ViewR eference.java:371)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReferen ce.java:230)
and the corresponding lines are :
85 for( IProject p : projects )
86 {
87 System.out.println( p.getRawLocation().toOSString() );
88 if( p.isOpen() )
89 locations.add( p.getRawLocation().toString() );
90 }
so p is obviously not null and my guess is the problem comes from the
getRawLocation() call, but how come it works when I test it and it doesn't
when I install it ?
here's the manifest.mf by the way this might help you help me :
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jacomo Finder Plug-in
Bundle-SymbolicName: dev.com.thalesgroup.jacomo.finder;singleton:=true
Bundle-Version: 1.0.0
Bundle-Activator: dev.com.thalesgroup.jacomo.finder.Activator
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Export-Package: dev.com.thalesgroup.jacomo.finder,
dev.com.thalesgroup.jacomo.finder.views
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources;bundle-version="3.1.0",
org.eclipse.ui;bundle-version="3.1.0";resolution:=optional
|
|
|
Powered by
FUDForum. Page generated in 0.07816 seconds