3 Replies Latest reply on Oct 31, 2011 8:48 AM by Claus Ibsen

    Issue with HL7 Type Conerter using Fuse ESB 4.4

    sandy2011 Newbie

      Hi,

      When I run camel routes as stand alone using Java DSL , I don't seem to have issues since I can put all dependency in POM files.

       

      But when I try deploying Spring DSL Camel Routes in Fuse ESB there seems to be issues with dependencies ...

      I have issues with camel routes for HL7 message type conversion

       

       

          

       

      -


      Exception

      -


      18:01:49,012 | DEBUG | tered/dataforcsp | Pipeline                         | 76 - org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Message exchange has failed: so breaking out of pipeline for exchange: Exchange[null] Exception: org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.camel.component.file.GenericFile to the required type: ca.uhn.hl7v2.model.Message with value GenericFile[C:\apache1-servicemix-4.4.0-fuse-00-43\sandpit\datatransfer\ActiveMqRouteClustered\dataforcsp\Samp008_ADT31.hl7]

      18:01:49,012 | DEBUG | tered/dataforcsp | GenericFileOnCompletion          | 76 - org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Done processing file: GenericFile[C:\apache1-servicemix-4.4.0-fuse-00-43\sandpit\datatransfer\ActiveMqRouteClustered\dataforcsp\Samp008_ADT31.hl7] using exchange: Exchange[null]

      18:01:49,012 | DEBUG | tered/dataforcsp | GenericFileOnCompletion          | 76 - org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Caused by: [org.apache.camel.NoTypeConversionAvailableException - No type converter available to convert from type: org.apache.camel.component.file.GenericFile to the required type: ca.uhn.hl7v2.model.Message with value GenericFile[C:\apache1-servicemix-4.4.0-fuse-00-43\sandpit\datatransfer\ActiveMqRouteClustered\dataforcsp\Samp008_ADT31.hl7]]

      org.apache.camel.NoTypeConversionAvailableException: No type converter available to convert from type: org.apache.camel.component.file.GenericFile to the required type: ca.uhn.hl7v2.model.Message with value GenericFile[C:\apache1-servicemix-4.4.0-fuse-00-43\sandpit\datatransfer\ActiveMqRouteClustered\dataforcsp\Samp008_ADT31.hl7]

           at org.apache.camel.impl.converter.BaseTypeConverterRegistry.mandatoryConvertTo(BaseTypeConverterRegistry.java:143)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.core.osgi.OsgiTypeConverter.mandatoryConvertTo(OsgiTypeConverter.java:102)[86:org.apache.camel.camel-spring:2.7.1.fuse-00-43]

           at org.apache.camel.util.ExchangeHelper.convertToMandatoryType(ExchangeHelper.java:142)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at org.apache.camel.component.hl7.HL7DataFormat.marshal(HL7DataFormat.java:68)[124:org.apache.camel.camel-hl7:2.7.1.fuse-00-43]

           at org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:57)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]

           at

       

      -


       

      Features:Installedkaraf@root> osgi:list| grep camel

      camel-core (2.7.1.fuse-00-43)

      camel-spring (2.7.1.fuse-00-43)

      camel-jms (2.7.1.fuse-00-43)

      activemq-camel (5.5.0.fuse-00-43)

      camel-hl7 (2.7.1.fuse-00-43)

      camel-mina (2.7.1.fuse-00-43)

      camel-stream (2.7.1.fuse-00-43)

      karaf@root>

       

      Edited by: sandy2011 on Oct 27, 2011 5:04 PM