Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » NPE when deploying OSGi app with p2 director
NPE when deploying OSGi app with p2 director [message #664642] Mon, 11 April 2011 13:48 Go to next message
Barbara Rosi-Schwartz is currently offline Barbara Rosi-Schwartz
Messages: 448
Registered: July 2009
Senior Member
Hello.

I am trying to deploy a very basic OSGi Swing based app using the p2 app director. I am essentially following the process explained by Jeff McAffer in http://eclipsesource.com/blogs/2009/05/05/remote-provisionin g-with-p2/

When I run my launch configuration for the deploy, I get a NullPointerException which states "A null service reference is not allowed", stack trace below.

I am using the following args:

Program args:
-console -clean -application org.eclipse.equinox.p2.director.app.application
-metadataRepository file://scratch/prova/repository
-artifactRepository file://scratch/prova/repository
-installUI prova2
-version 1.0.0.qualifier
-destination /scratch/prova
-bundlepool /scratch/prova


VM args:
-Declipse.p2.data.area=/scratch/prova -Dosgi.noShutdown=true


I am using Eclipse 3.6.

Any ideas as to what I may be doing wrong?

TIA,
B.

Stack trace:
!ENTRY org.eclipse.osgi 4 0 2011-04-11 14:24:57.957
!MESSAGE Application error
!STACK 1
java.lang.NullPointerException: A null service reference is not allowed.
	at    org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(BundleContextImpl.java:660)
	at    org.eclipse.equinox.internal.p2.director.app.Application.ini tializeServices(Application.java:273)
	at    org.eclipse.equinox.internal.p2.director.app.Application.run (Application.java:437)
	at    org.eclipse.equinox.internal.p2.director.app.Application.sta rt(Application.java:549)
	at    org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:196)
	at    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
	at    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
	at    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:369)
	at    org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
	at    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at    org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 620)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

[Updated on: Mon, 11 April 2011 13:53]

Report message to a moderator

Re: NPE when deploying OSGi app with p2 director [message #895592 is a reply to message #664642] Fri, 13 July 2012 17:27 Go to previous message
Terry Jahelka is currently offline Terry Jahelka
Messages: 23
Registered: February 2012
Junior Member
I'm having a similar problem, did you get this resolved and if so do you mind sharing your solution?
Previous Topic:Issue with Non OSGi eclipse bundles
Next Topic:OSGi Services query fails
Goto Forum:
  


Current Time: Sun Sep 21 02:09:37 GMT 2014

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

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