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