You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Julien Vermillard <jv...@apache.org> on 2008/04/23 11:40:43 UTC
NPE while tring to deploy a bundle from my obr
Hi,
I'm using maven bnd plugin for generating my local obr repository.
I'm using the following command on my top level parent pom.xml :
mvn install -DremoteOBR org.apache.felix:maven-bundle-plugin:1.4.0:deploy
Everything is deployed using scp to my obr, but when I try to use it I
got the following error :
-> obr add-url http://192.168.0.200/repo/repository.xml
-> obr list
everything look ok here..
then when I try to deploy :
-> obr deploy "Archean Technologies Redundancy"
Unable to execute command: java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.felix.bundlerepository.ResourceImpl.hashCode(ResourceImpl.java:80)
at java.util.HashMap.getEntry(HashMap.java:344)
at java.util.HashMap.containsKey(HashMap.java:335)
at java.util.HashSet.contains(HashSet.java:184)
at org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:159)
at org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:196)
at org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:134)
at org.apache.felix.bundlerepository.ObrCommandImpl._deploy(ObrCommandImpl.java:327)
at org.apache.felix.bundlerepository.ObrCommandImpl.deploy(ObrCommandImpl.java:301)
at org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:111)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:619)
I'm using felix last trunk.
Would you like to see my repository.xml too ?
Julien
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
RE: NPE while tring to deploy a bundle from my obr
Posted by an...@orange-ftgroup.com.
Hi Julien,
I've run in similar problems when one of the bundles already installed was missing the symbolic name information.
(hashCode is computed from the symbolic name and version information).
Just check the headers of already installed bundles.
Cheers,
Anne
-----Message d'origine-----
De : jvermillard@gmail.com [mailto:jvermillard@gmail.com] De la part de Julien Vermillard
Envoyé : mercredi 23 avril 2008 11:41
À : users@felix.apache.org
Objet : NPE while tring to deploy a bundle from my obr
Hi,
I'm using maven bnd plugin for generating my local obr repository.
I'm using the following command on my top level parent pom.xml :
mvn install -DremoteOBR org.apache.felix:maven-bundle-plugin:1.4.0:deploy
Everything is deployed using scp to my obr, but when I try to use it I got the following error :
-> obr add-url http://192.168.0.200/repo/repository.xml
-> obr list
everything look ok here..
then when I try to deploy :
-> obr deploy "Archean Technologies Redundancy"
Unable to execute command: java.lang.NullPointerException java.lang.NullPointerException
at org.apache.felix.bundlerepository.ResourceImpl.hashCode(ResourceImpl.java:80)
at java.util.HashMap.getEntry(HashMap.java:344)
at java.util.HashMap.containsKey(HashMap.java:335)
at java.util.HashSet.contains(HashSet.java:184)
at org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:159)
at org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:196)
at org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:134)
at org.apache.felix.bundlerepository.ObrCommandImpl._deploy(ObrCommandImpl.java:327)
at org.apache.felix.bundlerepository.ObrCommandImpl.deploy(ObrCommandImpl.java:301)
at org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:111)
at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
at java.lang.Thread.run(Thread.java:619)
I'm using felix last trunk.
Would you like to see my repository.xml too ?
Julien
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: NPE while tring to deploy a bundle from my obr
Posted by Julien Vermillard <jv...@gmail.com>.
You are right Anne, I got an installed bundle without Bundle-SymbolicName.
Thanks for the help.
Julien
2008/4/23, Julien Vermillard <jv...@gmail.com>:
> Yes look like I'm missing some symbolic name somewhere , I think I'm
> going to add some debug message to find where it's failling.
>
> Julien
>
> 2008/4/23, anne.gerodolle@orange-ftgroup.com
> <an...@orange-ftgroup.com>:
>
> > Hi Stuart, Julien,
> > I've played with "obr deploy" yesterday and obtained both NPE (in equals, and in hashCode methods)
> > And both were related to the absence of symbolic name information in one of the already installed bundles (not in the bundle I was trying to install).
> > Hope this helps,
> > Anne
> > -----Message d'origine-----
> > De : mcculls@gmail.com [mailto:mcculls@gmail.com] De la part de Stuart McCulloch
> > Envoyé : mercredi 23 avril 2008 11:51
> >
> > À : users@felix.apache.org
> >
> > Objet : Re: NPE while tring to deploy a bundle from my obr
> >
> >
> > 2008/4/23 Julien Vermillard <jv...@apache.org>:
> >
> > > Hi,
> > >
> > > I'm using maven bnd plugin for generating my local obr repository.
> > >
> > > I'm using the following command on my top level parent pom.xml :
> > > mvn install -DremoteOBR
> > > org.apache.felix:maven-bundle-plugin:1.4.0:deploy
> > >
> > > Everything is deployed using scp to my obr, but when I try to use it I
> > > got the following error :
> > >
> > > -> obr add-url http://192.168.0.200/repo/repository.xml
> > > -> obr list
> > > everything look ok here..
> > >
> > > then when I try to deploy :
> > >
> > > -> obr deploy "Archean Technologies Redundancy"
> > > Unable to execute command: java.lang.NullPointerException
> > > java.lang.NullPointerException
> > > at
> > > org.apache.felix.bundlerepository.ResourceImpl.hashCode(ResourceImpl.j
> > > ava:80)
> > >
> >
> > ^ this suggests that one of the entries in the repository.xml is either missing its symbolic name (perhaps an R3 bundle?) or its version.
> >
> >
> > > at java.util.HashMap.getEntry(HashMap.java:344)
> > > at java.util.HashMap.containsKey(HashMap.java:335)
> > > at java.util.HashSet.contains(HashSet.java:184)
> > > at
> > > org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:159)
> > > at
> > > org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:196)
> > > at
> > > org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:134)
> > > at
> > > org.apache.felix.bundlerepository.ObrCommandImpl._deploy(ObrCommandImpl.java:327)
> > > at
> > > org.apache.felix.bundlerepository.ObrCommandImpl.deploy(ObrCommandImpl.java:301)
> > > at
> > > org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:111)
> > > at
> > > org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
> > > at
> > > org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
> > > at java.lang.Thread.run(Thread.java:619)
> > >
> > > I'm using felix last trunk.
> > >
> > > Would you like to see my repository.xml too ?
> > >
> >
> > sure, you could attach it to the following issue:
> >
> > http://issues.apache.org/jira/browse/FELIX-511
> >
> > which is also a NPE, although a different line number
> >
> > Julien
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > > For additional commands, e-mail: users-help@felix.apache.org
> > >
> > >
> >
> >
> > --
> > Cheers, Stuart
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: NPE while tring to deploy a bundle from my obr
Posted by Julien Vermillard <jv...@gmail.com>.
Yes look like I'm missing some symbolic name somewhere , I think I'm
going to add some debug message to find where it's failling.
Julien
2008/4/23, anne.gerodolle@orange-ftgroup.com
<an...@orange-ftgroup.com>:
> Hi Stuart, Julien,
> I've played with "obr deploy" yesterday and obtained both NPE (in equals, and in hashCode methods)
> And both were related to the absence of symbolic name information in one of the already installed bundles (not in the bundle I was trying to install).
> Hope this helps,
> Anne
> -----Message d'origine-----
> De : mcculls@gmail.com [mailto:mcculls@gmail.com] De la part de Stuart McCulloch
> Envoyé : mercredi 23 avril 2008 11:51
>
> À : users@felix.apache.org
>
> Objet : Re: NPE while tring to deploy a bundle from my obr
>
>
> 2008/4/23 Julien Vermillard <jv...@apache.org>:
>
> > Hi,
> >
> > I'm using maven bnd plugin for generating my local obr repository.
> >
> > I'm using the following command on my top level parent pom.xml :
> > mvn install -DremoteOBR
> > org.apache.felix:maven-bundle-plugin:1.4.0:deploy
> >
> > Everything is deployed using scp to my obr, but when I try to use it I
> > got the following error :
> >
> > -> obr add-url http://192.168.0.200/repo/repository.xml
> > -> obr list
> > everything look ok here..
> >
> > then when I try to deploy :
> >
> > -> obr deploy "Archean Technologies Redundancy"
> > Unable to execute command: java.lang.NullPointerException
> > java.lang.NullPointerException
> > at
> > org.apache.felix.bundlerepository.ResourceImpl.hashCode(ResourceImpl.j
> > ava:80)
> >
>
> ^ this suggests that one of the entries in the repository.xml is either missing its symbolic name (perhaps an R3 bundle?) or its version.
>
>
> > at java.util.HashMap.getEntry(HashMap.java:344)
> > at java.util.HashMap.containsKey(HashMap.java:335)
> > at java.util.HashSet.contains(HashSet.java:184)
> > at
> > org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:159)
> > at
> > org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:196)
> > at
> > org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:134)
> > at
> > org.apache.felix.bundlerepository.ObrCommandImpl._deploy(ObrCommandImpl.java:327)
> > at
> > org.apache.felix.bundlerepository.ObrCommandImpl.deploy(ObrCommandImpl.java:301)
> > at
> > org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:111)
> > at
> > org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
> > at
> > org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
> > at java.lang.Thread.run(Thread.java:619)
> >
> > I'm using felix last trunk.
> >
> > Would you like to see my repository.xml too ?
> >
>
> sure, you could attach it to the following issue:
>
> http://issues.apache.org/jira/browse/FELIX-511
>
> which is also a NPE, although a different line number
>
> Julien
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
>
>
> --
> Cheers, Stuart
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
RE: NPE while tring to deploy a bundle from my obr
Posted by an...@orange-ftgroup.com.
Hi Stuart, Julien,
I've played with "obr deploy" yesterday and obtained both NPE (in equals, and in hashCode methods)
And both were related to the absence of symbolic name information in one of the already installed bundles (not in the bundle I was trying to install).
Hope this helps,
Anne
-----Message d'origine-----
De : mcculls@gmail.com [mailto:mcculls@gmail.com] De la part de Stuart McCulloch
Envoyé : mercredi 23 avril 2008 11:51
À : users@felix.apache.org
Objet : Re: NPE while tring to deploy a bundle from my obr
2008/4/23 Julien Vermillard <jv...@apache.org>:
> Hi,
>
> I'm using maven bnd plugin for generating my local obr repository.
>
> I'm using the following command on my top level parent pom.xml :
> mvn install -DremoteOBR
> org.apache.felix:maven-bundle-plugin:1.4.0:deploy
>
> Everything is deployed using scp to my obr, but when I try to use it I
> got the following error :
>
> -> obr add-url http://192.168.0.200/repo/repository.xml
> -> obr list
> everything look ok here..
>
> then when I try to deploy :
>
> -> obr deploy "Archean Technologies Redundancy"
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at
> org.apache.felix.bundlerepository.ResourceImpl.hashCode(ResourceImpl.j
> ava:80)
>
^ this suggests that one of the entries in the repository.xml is either missing its symbolic name (perhaps an R3 bundle?) or its version.
> at java.util.HashMap.getEntry(HashMap.java:344)
> at java.util.HashMap.containsKey(HashMap.java:335)
> at java.util.HashSet.contains(HashSet.java:184)
> at
> org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:159)
> at
> org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:196)
> at
> org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:134)
> at
> org.apache.felix.bundlerepository.ObrCommandImpl._deploy(ObrCommandImpl.java:327)
> at
> org.apache.felix.bundlerepository.ObrCommandImpl.deploy(ObrCommandImpl.java:301)
> at
> org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:111)
> at
> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
> at
> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
> at java.lang.Thread.run(Thread.java:619)
>
> I'm using felix last trunk.
>
> Would you like to see my repository.xml too ?
>
sure, you could attach it to the following issue:
http://issues.apache.org/jira/browse/FELIX-511
which is also a NPE, although a different line number
Julien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
Cheers, Stuart
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: NPE while tring to deploy a bundle from my obr
Posted by Stuart McCulloch <st...@jayway.net>.
2008/4/23 Julien Vermillard <jv...@apache.org>:
> Hi,
>
> I'm using maven bnd plugin for generating my local obr repository.
>
> I'm using the following command on my top level parent pom.xml :
> mvn install -DremoteOBR org.apache.felix:maven-bundle-plugin:1.4.0:deploy
>
> Everything is deployed using scp to my obr, but when I try to use it I
> got the following error :
>
> -> obr add-url http://192.168.0.200/repo/repository.xml
> -> obr list
> everything look ok here..
>
> then when I try to deploy :
>
> -> obr deploy "Archean Technologies Redundancy"
> Unable to execute command: java.lang.NullPointerException
> java.lang.NullPointerException
> at
> org.apache.felix.bundlerepository.ResourceImpl.hashCode(ResourceImpl.java:80)
>
^ this suggests that one of the entries in the repository.xml is either
missing its symbolic name (perhaps an R3 bundle?) or its version.
> at java.util.HashMap.getEntry(HashMap.java:344)
> at java.util.HashMap.containsKey(HashMap.java:335)
> at java.util.HashSet.contains(HashSet.java:184)
> at
> org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:159)
> at
> org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:196)
> at
> org.apache.felix.bundlerepository.ResolverImpl.resolve(ResolverImpl.java:134)
> at
> org.apache.felix.bundlerepository.ObrCommandImpl._deploy(ObrCommandImpl.java:327)
> at
> org.apache.felix.bundlerepository.ObrCommandImpl.deploy(ObrCommandImpl.java:301)
> at
> org.apache.felix.bundlerepository.ObrCommandImpl.execute(ObrCommandImpl.java:111)
> at
> org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:276)
> at
> org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:167)
> at java.lang.Thread.run(Thread.java:619)
>
> I'm using felix last trunk.
>
> Would you like to see my repository.xml too ?
>
sure, you could attach it to the following issue:
http://issues.apache.org/jira/browse/FELIX-511
which is also a NPE, although a different line number
Julien
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
--
Cheers, Stuart