You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Adam Kovari (JIRA)" <ji...@apache.org> on 2013/03/13 09:24:12 UTC

[jira] [Created] (CAMEL-6158) DefaultPackageScanClassResolver unable to find any TypeConverters(probably other too) inside JAR packages

Adam Kovari created CAMEL-6158:
----------------------------------

             Summary: DefaultPackageScanClassResolver unable to find any TypeConverters(probably other too) inside JAR packages
                 Key: CAMEL-6158
                 URL: https://issues.apache.org/jira/browse/CAMEL-6158
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.10.2
         Environment: - JBoss SOA-P 5.3.0
- Camel core 2.10.2
- Smooks 1.4.2
            Reporter: Adam Kovari
         Attachments: CAMEL-6158.proposed.patch

Camel is unable to locate Smooks' TypeConverters which are included in the milyn-smooks-all-1.4.2.jar. This can be observed as following:

{code}
Caused by: org.jboss.soa.esb.actions.ActionLifecycleException: org.apache.camel.RuntimeCamelException: org.apache.camel.
TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the
 following packages: [org.milyn.smooks.camel.converters]
        at fi.logica.bis.heracles.esb.actions.AbstractAuditLoggingAction.initialise(AbstractAuditLoggingAction.java:102)

        at sun.reflect.GeneratedMethodAccessor410.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.soa.esb.configure.Configurator.invoke(Configurator.java:311)
        at org.jboss.soa.esb.configure.Configurator.initialise(Configurator.java:287)
        at org.jboss.soa.esb.listeners.message.BeanContainerAction.initialise(BeanContainerAction.java:158)
        at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.initialise(ActionProcessingPipeline.java:398)
        ... 89 more
Caused by: org.apache.camel.RuntimeCamelException: org.apache.camel.TypeConverterLoaderException: Failed to load type co
nverters because of: Cannot find any type converter classes from the following packages: [org.milyn.smooks.camel.convert
ers]
        at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1270)
        at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1057)
        at org.apache.camel.impl.DefaultCamelContext.getTypeConverterRegistry(DefaultCamelContext.java:1072)
        at fi.logica.bis.heracles.esb.actions.routing.output.HeraclesCamelOutputGateway.onInitialise(HeraclesCamelOutput
Gateway.java:37)
        at fi.logica.bis.heracles.esb.actions.AbstractAuditLoggingAction.initialise(AbstractAuditLoggingAction.java:99)
        ... 96 more
Caused by: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any typ
e converter classes from the following packages: [org.milyn.smooks.camel.converters]
        at org.apache.camel.impl.converter.AnnotationTypeConverterLoader.load(AnnotationTypeConverterLoader.java:117)
        at org.apache.camel.impl.converter.BaseTypeConverterRegistry.loadTypeConverters(BaseTypeConverterRegistry.java:4
89)
        at org.apache.camel.impl.converter.DefaultTypeConverter.doStart(DefaultTypeConverter.java:42)
        at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:60)
        at org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:1763)
        at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:931)
        at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:892)
        at org.apache.camel.impl.DefaultCamelContext.getTypeConverter(DefaultCamelContext.java:1055)
        ... 99 more
{code}

The lines that cause the issue are:

{code}
		CamelContext camelContext = new DefaultCamelContext();
		camelContext.start();
{code}


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