4 Replies Latest reply on Nov 7, 2011 12:19 PM by mpone

    "Failed to resolve endpoint"  due to "Cannot find any type converters ..."

    mpone

      I am getting some errors that I am unable to debug.  I am looking for clues on what it could be.    I am running inside servicemix 4.3.1-fuse-00-00 with camel 2.6.0.fuse-00-00 . Thanks.

       

      I just added a routeBuilder to my camel context spring config and my context starts up fine.  It is a route that sends to a processor, that processor sends to this EP (seda://tdls.event.endpoint), but when that processor tries to send the message (which is a JAXB serialized object) to that EP , I see this in the logs

       

      Stack Trace

       

      14:52:55,429 | DEBUG | Thread-6         | Activator                        | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Bundle started: org.apache.camel.camel-core

      14:52:55,429 | DEBUG | Thread-6         | Activator                        | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Found entry: META-INF/services/org/apache/camel/component/bean in bundle org.apache.camel.camel-core

      14:52:55,445 | DEBUG | Thread-6         | Activator                        | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Found entry: META-INF/services/org/apache/camel/component/file in bundle org.apache.camel.camel-core

      ... There are more entries that are found.

       

      14:55:02,980 | DEBUG | sMessageEndpoint | DefaultPackageScanClassResolver  | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Cannot read entries in url: bundleresource://71.fwk31664352/org/apache/camel/component/file/

      java.io.FileNotFoundException: \org\apache\camel\component\file (The system cannot find the path specified)

       

      ....

       

      14:55:02,996 | DEBUG | sMessageEndpoint | DefaultPackageScanClassResolver  | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Cannot read entries in url: bundleresource://71.fwk31664352/org/apache/camel/component/bean/

      java.io.FileNotFoundException: \org\apache\camel\component\bean (The system cannot find the path specified)

      at java.io.FileInputStream.open(Native Method)-:1.6.0_14-

       

      ....

       

      14:55:02,996 | DEBUG | sMessageEndpoint | DefaultPackageScanClassResolver  | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Cannot read entries in url: bundleresource://71.fwk31664352/org/apache/camel/converter/

      java.io.FileNotFoundException: \org\apache\camel\converter (The system cannot find the path specified)

      at java.io.FileInputStream.open(Native Method)-:1.6.0_14-

       

      ....

       

      14:55:02,996 | DEBUG | sMessageEndpoint | DefaultPackageScanClassResolver  | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Found: []

      14:55:03,011 | DEBUG | sMessageEndpoint | DefaultErrorHandler              | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Failed delivery for exchangeId: ID-EAGLR7737TH1-4339-1320436403290-0-5. On delivery attempt: 0 caught: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: seda://tdls.event.endpoint due to: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: http://org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter

      14:55:03,011 | ERROR | sMessageEndpoint | DefaultErrorHandler              | 71 - org.apache.camel.camel-core - 2.6.0.fuse-00-00 | Failed delivery for exchangeId: ID-EAGLR7737TH1-4339-1320436403290-0-5. Exhausted after delivery attempt: 1 caught: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: seda://tdls.event.endpoint due to: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: http://org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter

      org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: seda://tdls.event.endpoint due to: org.apache.camel.TypeConverterLoaderException: Failed to load type converters because of: Cannot find any type converter classes from the following packages: http://org.apache.camel.component.file, org.apache.camel.component.bean, org.apache.camel.converter

      at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:449)-71:org.apache.camel.camel-core:2.6.0.fuse-00-00-

       

       

       

      The code that throws this error is this code :

       

      producerTemplate.sendBody(this.getEndpoint(), exchange.getIn()

      .getBody());