[
https://issues.apache.org/jira/browse/CAMEL-5972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reopened CAMEL-5972:
--------------------------------
This causes a NPE now
{code}
Caused by: org.apache.camel.NoSuchBeanException: Cannot lookup:
CamelBeanParameterMappingStrategy from registry:
org.apache.camel.core.osgi.OsgiServiceRegistry@7ead510 with expected type:
interface org.apache.camel.component.bean.ParameterMappingStrategy due:
java.lang.NullPointerException
at
org.apache.camel.impl.CompositeRegistry.lookup(CompositeRegistry.java:58)
at
org.apache.camel.impl.PropertyPlaceholderDelegateRegistry.lookup(PropertyPlaceholderDelegateRegistry.java:62)
at
org.apache.camel.component.bean.BeanInfo.createParameterMappingStrategy(BeanInfo.java:149)
at org.apache.camel.component.bean.BeanInfo.<init>(BeanInfo.java:92)
at
org.apache.camel.component.bean.ConstantBeanHolder.<init>(ConstantBeanHolder.java:44)
at
org.apache.camel.model.language.MethodCallExpression.createExpression(MethodCallExpression.java:184)
at
org.apache.camel.model.language.ExpressionDefinition.createExpression(ExpressionDefinition.java:168)
at
org.apache.camel.model.TransformDefinition.createProcessor(TransformDefinition.java:59)
at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:459)
at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:177)
at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:876)
... 20 more
Caused by: org.apache.camel.RuntimeCamelException:
java.lang.NullPointerException
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1310)
at
org.apache.camel.core.osgi.OsgiServiceRegistry.lookup(OsgiServiceRegistry.java:65)
at
org.apache.camel.impl.CompositeRegistry.lookup(CompositeRegistry.java:49)
... 30 more
Caused by: java.lang.NullPointerException
at
java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueue.java:273)
at
java.util.concurrent.ConcurrentLinkedQueue.add(ConcurrentLinkedQueue.java:237)
at
org.apache.camel.core.osgi.OsgiServiceRegistry.lookup(OsgiServiceRegistry.java:59)
... 31 more
{code}
> OsgiServiceRegistry.lookupByType() should use
> BundleContext.getServiceReferences()
> ----------------------------------------------------------------------------------
>
> Key: CAMEL-5972
> URL: https://issues.apache.org/jira/browse/CAMEL-5972
> Project: Camel
> Issue Type: Improvement
> Components: osgi
> Affects Versions: 2.10.3
> Environment: GlassFish 3.1.2
> Reporter: Aaron Whiteside
> Assignee: Willem Jiang
> Fix For: 2.11.0
>
>
> OsgiServiceRegistry.lookupByType() should use
> BundleContext.getServiceReferences()
> The object name should be retrieved from the service property's. I suggest a
> property called "name".
> The filter "(name=*)" could be used to only return services with the property
> name.
--
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