On 9/5/11 11:18, Bonitz, Christoph wrote:
Hello,I am trying to deploy a bundle in Felix 3.2.2. Some dependencies seem to be unmet, but what I get is this: ERROR: Bundle ***[36] Error starting file:/***.jar (java.lang.NullPointerException) java.lang.NullPointerException at org.apache.felix.framework.resolver.ResolverImpl.toStringBlame(ResolverImpl.java:1526) at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:948) at org.apache.felix.framework.resolver.ResolverImpl.checkPackageSpaceConsistency(ResolverImpl.java:1054) at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:123) at org.apache.felix.framework.Felix$StatefulResolver.resolve(Felix.java:4150) at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3557) at org.apache.felix.framework.Felix.startBundle(Felix.java:1797) at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1192) at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:266) at java.lang.Thread.run(Unknown Source) What seems to be happening here is that an NPE is being thrown during the assembly of an error message for an exception that is, usually, thrown and catched (on line 132) and used for control flow (trying a different permutation). So I'm not even sure if resolving wouldn't work just fine if this NPE weren't thrown (felix bug) or if our bundle structure has some very bad problem (in which case the NPE is still a problem). Any suggestions?
This is repeatable? If so, could you try it on 3.3.0-SNAPSHOT (i.e., a trunk build)? You can grab a distribution release from the Maven snapshot repo here:
https://repository.apache.org/content/groups/snapshots-group/org/apache/felix/org.apache.felix.main.distribution/3.3.0-SNAPSHOT/org.apache.felix.main.distribution-3.3.0-20110901.210822-19.tar.gz
If it still errors here, then help me reproduce the issue so I can get it fixed before the next release...I did fix a bug like this, so it may be the same one.
-> richard
Thanks in advance Christoph Christoph Bonitz -------------------------------------- UC4 SENACTIVE Software GmbH web: http://www.uc4.com -------------------------------------- UC4 Senactive Software GmbH, Hauptstrasse 3C, 3012 Wolfsgraben mit einer weiteren Betriebsstaette in /with an office at Prinz-Eugen-Stra?e 72, 1040 Wien Firmenbuchnummer/Commercial Register No. 261186y Firmenbuchgericht/Commercial Register Court: Landesgericht St. Poelten This email (including any attachments) may contain information which is privileged, confidential, or protected. If you are not the intended recipient, note that any disclosure, copying, distribution, or use of the contents of this message and attached files is prohibited. If you have received this email in error, please notify the sender and delete this email and any attached files.
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

