You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Richard S. Hall (Commented) (JIRA)" <ji...@apache.org> on 2011/10/21 23:02:32 UTC

[jira] [Commented] (FELIX-3178) NPE in ResolverImpl

    [ https://issues.apache.org/jira/browse/FELIX-3178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13133058#comment-13133058 ] 

Richard S. Hall commented on FELIX-3178:
----------------------------------------

Having the manifest alone isn't sufficient, since the error occurs after it has calculated its dependencies. I tried to recreate the error from a set of bundles from the SpringSource bundle repository, but for me it ended up resolving correctly.

Perhaps you could zip up and attach to this issue the set of bundles you use to see the error, then I can investigate it. Thanks.
                
> NPE in ResolverImpl
> -------------------
>
>                 Key: FELIX-3178
>                 URL: https://issues.apache.org/jira/browse/FELIX-3178
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: framework-4.0.0
>         Environment: Also reproduced on 4.0.1
>            Reporter: Andreas Schlosser
>            Priority: Blocker
>             Fix For: framework-4.2.0
>
>         Attachments: MANIFEST.MF
>
>
> Bundle Resolution fails with NPE in both, Felix 4.0.0 and 4.0.1
> ERROR: Bundle com.springsource.com.sun.tools.xjc [119] Error starting file:bundles/com.springsource.com.sun.tools.xjc.jar (java.lang.NullPointerException)
> java.lang.NullPointerException
>         at org.apache.felix.framework.resolver.ResolverImpl.mergeUses(ResolverImpl.java:856)
>         at org.apache.felix.framework.resolver.ResolverImpl.calculatePackageSpaces(ResolverImpl.java:659)
>         at org.apache.felix.framework.resolver.ResolverImpl.calculatePackageSpaces(ResolverImpl.java:609)
>         at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:181)
>         at org.apache.felix.framework.StatefulResolver.resolve(StatefulResolver.java:168)
>         at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:3811)
>         at org.apache.felix.framework.Felix.startBundle(Felix.java:1868)
>         at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1191)
>         at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:295)
>         at java.lang.Thread.run(Thread.java:662)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira