Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Installing issue but test ok
Installing issue but test ok [message #591636] Mon, 09 February 2009 14:40
Julien Manankiandrianana is currently offline Julien ManankiandriananaFriend
Messages: 37
Registered: July 2009
Member
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
Previous Topic:Installing issue but test ok
Next Topic:Why the Unpack the plug-in archive after the installation doesn't work?
Goto Forum:
  


Current Time: Fri Apr 19 03:49:07 GMT 2024

Powered by FUDForum. Page generated in 0.01494 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top