Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Issue installing personal plug-in
Issue installing personal plug-in [message #125659] Mon, 09 February 2009 14:33
Julien Manankiandrianana is currently offline Julien ManankiandriananaFriend
Messages: 37
Registered: July 2009
Member
Hi everybody,

Here's my problem : I developed a plugin which is targeted to be used with
equinox and when I test it using the "Launch an Eclipse application" link
it works just fine but when I install it with the associated Feature and
Update Site I get an exception with this stackTrace :

java.lang.NullPointerException
at dev.com.finder.MyClass.findAllOpenProjectsLocation s(MyClass.java:87)
at dev.com.finder.MyClass.find(MyClass.java:41)
at dev.com.finder.views.JacomoFinderView.createPartCo
ntrol(MyClass.java:28)
at org.eclipse.ui.internal.ViewReference.createPartHe
lper(ViewReference.java:371)
at org.eclipse.ui.internal.ViewReference.createPart(V
iewReference.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 that 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

Julien
Previous Topic:Core and Services sharing Hibernate
Next Topic:Using p2 to install multiple features
Goto Forum:
  


Current Time: Wed Apr 24 14:26:32 GMT 2024

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

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

Back to the top