felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (FELIX-3734) MetaType: NPE in ServiceTracker for fragment bundle
Date Thu, 25 Oct 2012 14:49:11 GMT

     [ https://issues.apache.org/jira/browse/FELIX-3734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Felix Meschberger resolved FELIX-3734.
--------------------------------------

       Resolution: Fixed
    Fix Version/s:  metatype-1.0.6

Fixed in Rev. 1402162:

  - Don't try to get MetaTypeInformation for fragments
  - Use the MetaTypeService implementation bundle context  instead of the MetaTypeInformation's
bundle context to track MetaTypeProvider services
  - Downgrade OSGi Core Dependency to 4.0 again
                
> MetaType: NPE in ServiceTracker for fragment bundle
> ---------------------------------------------------
>
>                 Key: FELIX-3734
>                 URL: https://issues.apache.org/jira/browse/FELIX-3734
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>    Affects Versions: metatype-1.0.4
>            Reporter: Jeremias Maerki
>            Assignee: Felix Meschberger
>             Fix For:  metatype-1.0.6
>
>         Attachments: felix-metatype-npe-fix-for-fragments.diff
>
>
> An NPE occurs when calling up the "Config" page of Felix WebConsole 4.0.0 when there
are fragment bundles:
> 10:20:08,839|ERROR| qtp521679231-100 | ?                                   ? | 249 |
%configMgr.pluginTitle: listFactoryConfigurations: Unexpected problem encountered
> java.lang.NullPointerException
>         at org.osgi.util.tracker.ServiceTracker.<init>(ServiceTracker.java:197)[org.apache.felix.framework-4.0.3.jar:]
>         at org.osgi.util.tracker.ServiceTracker.<init>(ServiceTracker.java:268)[org.apache.felix.framework-4.0.3.jar:]
>         at org.apache.felix.metatype.internal.MetaTypeProviderTracker.<init>(MetaTypeProviderTracker.java:36)
>         at org.apache.felix.metatype.internal.MetaTypeInformationImpl.<init>(MetaTypeInformationImpl.java:74)
>         at org.apache.felix.metatype.internal.ServiceMetaTypeInformation.<init>(ServiceMetaTypeInformation.java:79)
>         at org.apache.felix.metatype.internal.MetaTypeServiceImpl.getMetaTypeInformation(MetaTypeServiceImpl.java:130)
>         at org.apache.felix.webconsole.internal.compendium.ConfigManagerBase.getObjectClassDefinitions(ConfigManagerBase.java:121)[263:org.apache.felix.webconsole:4.0.0]
>         at org.apache.felix.webconsole.internal.compendium.ConfigManagerBase.getFactoryPidObjectClasses(ConfigManagerBase.java:95)[263:org.apache.felix.webconsole:4.0.0]
>         at org.apache.felix.webconsole.internal.compendium.ConfigManager.listFactoryConfigurations(ConfigManager.java:437)[263:org.apache.felix.webconsole:4.0.0]
>         at org.apache.felix.webconsole.internal.compendium.ConfigManager.renderContent(ConfigManager.java:375)[263:org.apache.felix.webconsole:4.0.0]
>         at org.apache.felix.webconsole.AbstractWebConsolePlugin.doGet(AbstractWebConsolePlugin.java:155)[263:org.apache.felix.webconsole:4.0.0]
>         at org.apache.felix.webconsole.internal.compendium.ConfigManager.doGet(ConfigManager.java:309)[263:org.apache.felix.webconsole:4.0.0]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)[32:org.apache.geronimo.specs.geronimo-servlet_2.5_spec:1.1.2]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message