felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Clement Escoffier (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (FELIX-2596) DependencyHandler.onObjectCreation throws NPE when bundle is refreshed
Date Sun, 12 Sep 2010 10:21:34 GMT

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

Clement Escoffier resolved FELIX-2596.
--------------------------------------

    Resolution: Fixed

> DependencyHandler.onObjectCreation throws NPE when bundle is refreshed
> ----------------------------------------------------------------------
>
>                 Key: FELIX-2596
>                 URL: https://issues.apache.org/jira/browse/FELIX-2596
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-1.6.0
>         Environment: JRE 1.6.0_21-b07, Windows 7, Felix Framework 2.0.5, iPOJO 1.6.4
>            Reporter: YANG, BongYeol
>            Assignee: Clement Escoffier
>            Priority: Minor
>             Fix For: iPOJO-1.8.0
>
>
> When I update bundle and refresh using PackageAdmin.refreshPackages(null),  DependencyHandler
always throws below exception. It seems work well after bundle refresh. iPOJO 1.4.0 works
well with this case.
> ----
> [2010-09-12 02:41:10,500] DEBUG (KrakenLogService) - [ERROR] wc-message-resource-api
: null
> [2010-09-12 02:41:10,500] DEBUG (KrakenLogService) - [ERROR] iPOJO Instance Creator :
A matching factory was found for {component=wc-message-resource-
> api, instance.name=wc-message-resource-api-0}, but the instantiation failed : The configuration
is not correct for the type wc-message-resource-api :
> null
> [2010-09-12 02:41:10,514] DEBUG (KrakenLogService) - [ERROR] wc-event-log-api : null
> java.lang.NullPointerException
>         at org.apache.felix.ipojo.handlers.dependency.Dependency.onObjectCreation(Dependency.java:259)
>         at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.__onCreation(DependencyHandler.java:552)
>         at org.apache.felix.ipojo.handlers.dependency.DependencyHandler.onCreation(DependencyHandler.java)
>         at org.apache.felix.ipojo.HandlerManager.start(HandlerManager.java:132)
>         at org.apache.felix.ipojo.InstanceManager.start(InstanceManager.java:303)
>         at org.apache.felix.ipojo.ComponentFactory.createInstance(ComponentFactory.java:155)
>         at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:301)
>         at org.apache.felix.ipojo.IPojoFactory.createComponentInstance(IPojoFactory.java:238)
>         at org.apache.felix.ipojo.InstanceCreator$ManagedInstance.create(InstanceCreator.java:343)
>         at org.apache.felix.ipojo.InstanceCreator.onValidation(InstanceCreator.java:202)
>         at org.apache.felix.ipojo.InstanceCreator.stateChanged(InstanceCreator.java:243)
>         at org.apache.felix.ipojo.IPojoFactory.computeFactoryState(IPojoFactory.java:731)
>         at org.apache.felix.ipojo.ComponentFactory.addedService(ComponentFactory.java:358)
>         at org.apache.felix.ipojo.util.Tracker$Tracked.trackAdding(Tracker.java:725)
>         at org.apache.felix.ipojo.util.Tracker$Tracked.track(Tracker.java:686)
>         at org.apache.felix.ipojo.util.Tracker$Tracked.serviceChanged(Tracker.java:642)
>         at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:864)
>         at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:732)
>         at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:662)
>         at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:3623)
>         at org.apache.felix.framework.Felix.access$000(Felix.java:39)
>         at org.apache.felix.framework.Felix$2.serviceChanged(Felix.java:667)
>         at org.apache.felix.framework.ServiceRegistry.registerService(ServiceRegistry.java:97)
>         at org.apache.felix.framework.Felix.registerService(Felix.java:2764)
>         at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:252)
>         at org.apache.felix.ipojo.IPojoFactory.start(IPojoFactory.java:591)
>         at org.apache.felix.ipojo.Extender.createAbstractFactory(Extender.java:439)
>         at org.apache.felix.ipojo.Extender.parse(Extender.java:264)
>         at org.apache.felix.ipojo.Extender.startManagementFor(Extender.java:208)
>         at org.apache.felix.ipojo.Extender.access$600(Extender.java:52)
>         at org.apache.felix.ipojo.Extender$CreatorThread.run(Extender.java:682)
>         at java.lang.Thread.run(Unknown Source)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message