karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (KARAF-65) NPE in StandardEmitterMBean on JDK 6
Date Tue, 29 Jun 2010 13:15:50 GMT

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

Guillaume Nodet resolved KARAF-65.
----------------------------------

    Resolution: Fixed

Committing to https://svn.apache.org/repos/asf/karaf/trunk ...
	M	features/management/src/main/java/org/apache/karaf/features/management/internal/FeaturesServiceMBeanImpl.java
	M	features/management/src/main/java/org/apache/karaf/features/management/internal/StandardEmitterMBean.java
	A	features/management/src/test/java/org/apache/karaf/features/management/internal/FeaturesServiceMBeanImplTest.java
Committed r958959


Committing to https://svn.apache.org/repos/asf/karaf/branches/karaf-1.x ...
	M	features/management/src/main/java/org/apache/felix/karaf/features/management/internal/FeaturesServiceMBeanImpl.java
	M	features/management/src/main/java/org/apache/felix/karaf/features/management/internal/StandardEmitterMBean.java
	A	features/management/src/test/java/org/apache/felix/karaf/features/management/internal/FeaturesServiceMBeanImplTest.java
Committed r958960


> NPE in StandardEmitterMBean on JDK 6
> ------------------------------------
>
>                 Key: KARAF-65
>                 URL: https://issues.apache.org/jira/browse/KARAF-65
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 1.6.2, 2.0.0
>            Reporter: Gert Vanthienen
>            Assignee: Guillaume Nodet
>             Fix For: 1.6.2, 2.0.0
>
>
> The current implementation of StandardEmitterMBEan causes a NPE at startup:
> org.osgi.service.blueprint.container.ComponentDefinitionException: Unable to convert
value BeanRecipe[name='#recipe-2'] to type class java.util.ArrayList
> 	at org.apache.aries.blueprint.di.CollectionRecipe.internalCreate(CollectionRecipe.java:82)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createListeners(AbstractServiceReferenceRecipe.java:248)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:90)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:219)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:147)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:624)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:315)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:213)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)[:1.6.0_20]
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_20]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_20]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)[:1.6.0_20]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)[:1.6.0_20]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_20]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_20]
> 	at java.lang.Thread.run(Thread.java:637)[:1.6.0_20]
> Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: Error when
instanciating bean mbeanImpl of class class org.apache.karaf.features.management.internal.FeaturesServiceMBeanImpl
> 	at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:261)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:675)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.MapRecipe.internalCreate(MapRecipe.java:86)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:771)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:742)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:723)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:689)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:60)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:771)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:742)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:723)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:689)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:64)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.di.CollectionRecipe.internalCreate(CollectionRecipe.java:80)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	... 17 more
> Caused by: java.lang.NullPointerException
> 	at org.apache.karaf.features.management.internal.StandardEmitterMBean.getNotificationInfo(StandardEmitterMBean.java:45)
> 	at com.sun.jmx.mbeanserver.MBeanIntrospector.findNotifications(MBeanIntrospector.java:415)[:1.6.0_20]
> 	at com.sun.jmx.mbeanserver.MBeanIntrospector.getMBeanInfo(MBeanIntrospector.java:362)[:1.6.0_20]
> 	at com.sun.jmx.mbeanserver.MBeanSupport.<init>(MBeanSupport.java:148)[:1.6.0_20]
> 	at com.sun.jmx.mbeanserver.StandardMBeanSupport.<init>(StandardMBeanSupport.java:81)[:1.6.0_20]
> 	at javax.management.StandardMBean.construct(StandardMBean.java:169)[:1.6.0_20]
> 	at javax.management.StandardMBean.<init>(StandardMBean.java:220)[:1.6.0_20]
> 	at org.apache.karaf.features.management.internal.StandardEmitterMBean.<init>(StandardEmitterMBean.java:23)
> 	at org.apache.karaf.features.management.internal.FeaturesServiceMBeanImpl.<init>(FeaturesServiceMBeanImpl.java:64)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.6.0_20]
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)[:1.6.0_20]
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)[:1.6.0_20]
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)[:1.6.0_20]
> 	at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:262)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:807)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:259)[8:org.apache.aries.blueprint:0.1.0.incubating]
> 	... 36 more

-- 
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