[ https://issues.apache.org/jira/browse/ARIES-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christian Schneider updated ARIES-1353: --------------------------------------- Fix Version/s: blueprint-core-1.4.5 > NullpointerException when trying to log an exception > ---------------------------------------------------- > > Key: ARIES-1353 > URL: https://issues.apache.org/jira/browse/ARIES-1353 > Project: Aries > Issue Type: Bug > Components: Blueprint > Affects Versions: blueprint-core-1.4.3 > Reporter: Jürgen Kindler > Fix For: blueprint-core-1.4.5 > > > During installation of a feature in Karaf, I get the following exception in > blueprint core 1.4.3: > {panel} > Caused by: java.lang.NullPointerException > at > org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:300)[15:org.apache.aries.blueprint.core:1.4.3] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)[15:org.apache.aries.blueprint.core:1.4.3] > at > org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[15:org.apache.aries.blueprint.core:1.4.3] > at > org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[15:org.apache.aries.blueprint.core:1.4.3] > at java.util.concurrent.FutureTask.run(FutureTask.java:262)[:1.7.0_67] > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[15:org.apache.aries.blueprint.core:1.4.3] > at > org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)[15:org.apache.aries.blueprint.core:1.4.3] > at > org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106)[15:org.apache.aries.blueprint.core:1.4.3] > at > org.apache.aries.blueprint.container.ServiceRecipe.createService(ServiceRecipe.java:284)[15:org.apache.aries.blueprint.core:1.4.3] > ... 38 more > {panel} > Looks like when logging the exception in the exception handler getType() > returns null : > {code} > try { > Map.Entry<Method, List<Object>> match = > matches.entrySet().iterator().next(); > instance = invoke(match.getKey(), factoryObj, > match.getValue().toArray()); > } catch (Throwable e) { > /* line 300! */ throw new > ComponentDefinitionException("Error when instantiating bean " + getName() + " > of class " + getType().getName(), getRealCause(e)); > } > {code} > So it is not clear what the real reason for the problem is ... :-( -- This message was sent by Atlassian JIRA (v6.3.4#6332)