Skip to main content

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-SchwartzFriend
Messages: 448
Registered: July 2009
Senior Member

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 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
-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: -Dosgi.noShutdown=true

I am using Eclipse 3.6.

Any ideas as to what I may be doing wrong?


Stack trace:
!ENTRY org.eclipse.osgi 4 0 2011-04-11 14:24:57.957
!MESSAGE Application error
java.lang.NullPointerException: A null service reference is not allowed.
	at    org.eclipse.osgi.framework.internal.core.BundleContextImpl.g etService(
	at tializeServices(
	at (
	at rt(
	at    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
	at    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce
	at    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe
	at java.lang.reflect.Method.invoke(
	at    org.eclipse.equinox.launcher.Main.invokeFramework( 620)
	at org.eclipse.equinox.launcher.Main.basicRun(
	at org.eclipse.equinox.launcher.Main.main(

[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 JahelkaFriend
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 Oct 17 21:11:30 GMT 2021

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

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

Back to the top