Camel exception in Exchange using OSGi: but OK if run in Camel Context
sandy2011 Nov 10, 2011 9:15 AMHi ,
Please see the JAVA DSL Route below.
This is working fine when run as mvn camel:run , but when deployed as bundle in OSGI, it throws the exception in Camel Exchange as shown below.
JAVA DSL Route
-
package camelhl7;
import org.apache.camel.Exchange;
import org.apache.camel.Message;
import org.apache.camel.Processor;
import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.model.dataformat.HL7DataFormat;
import org.apache.camel.model.dataformat.XStreamDataFormat;
import org.apache.camel.spring.Main;
import ca.uhn.hl7v2.model.v23.message.ADT_A01;
import ca.uhn.hl7v2.model.v23.segment.MSH;
/**
A Camel Router
*/
public class MyRouteBuilder extends RouteBuilder {
/**
A main() so we can easily run these routing rules in our IDE
*/
public static void main(String... args) throws Exception {
Main.main(args);
}
/**
Lets configure the Camel routing rules using Java code...
*/
public void configure() {
// TODO create Camel routes here.
HL7DataFormat hl7 = new HL7DataFormat();
hl7.setValidate(false);
XStreamDataFormat xstream = new XStreamDataFormat();
from("mina:tcp://xxx.xxx.xxx.xxx:61610?sync=true&codec=#hl7codec")
.unmarshal(hl7)
.choice()
.when(header("CamelHL7TriggerEvent").isEqualTo("A31"))
.process(new Processor() {
public void process(Exchange exchange) throws Exception {
Message msg = exchange.getIn();
ADT_A01 adta01=(ADT_A01)msg.getBody();
MSH msh = adta01.getMSH();
String Sending_Application = msh.getMsh3_SendingApplication().getNamespaceID().getValue();
StringBuffer ColumnNames = new StringBuffer();
ColumnNames.append("'");
ColumnNames.append(Sending_Application);
String InsertStmt = "Insert into HL7_MSH_Ver23 values (" ColumnNames.toString()")";
exchange.getIn().setBody(constant(InsertStmt));
}
})
.to("jdbc:testdb")
.setBody(constant("select top 10 * from HL7_MSH_Ver23"))
.to("jdbc:testdb")
.marshal(xstream)
.to("file:target/dboutput?fileName=dbout-$.xml")
.otherwise()
.marshal(hl7)
.to("file:target/messages/others")
.end()
.setBody(constant("MSA|AA|"))
.convertBodyTo(String.class)
.marshal();
}
}
-
2.7.1.fuse-00-43 | No complete message in this packet
14:10:02,299 | DEBUG | rIoProcessor-9.1 | ExecutorFilter | 124 - org.apache.servicemix.bundles.mina - 1.1.7.3 | Launching thread for /151.46.220.183:1183
14:10:02,299 | DEBUG | - MinaThreadPool | MinaConsumer | 123 - org.apache.camel.camel-mina - 2.7.1.fuse-00-43 | Received body: MSH|~\&|ULTRAGENDAPRO|B|||20111021090729.271||ADTA31|634547848495993671|T|2.3|||NE|AL||ASCII
EVN|A31|20111021090729.271|||13909xxxcav^^^^1^^^^^ghgcav
PID||14995388|T2237536|MERIDENMER|qwertyp^^Mr||19800101000000.000|M|^^^^^PG||23 Wedderburn ^GATENorth Yorkshire^HG2 |||||M||||||||||GB||||
PD1|||CATHERINE STREET SURGERY^^1|G3250183
PV1||E
14:10:02,299 | DEBUG | - MinaThreadPool | DefaultModelClassFactory | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | Trying to load: ca.uhn.hl7v2.model.v23.message.ADT_A01
14:10:02,299 | DEBUG | - MinaThreadPool | DefaultModelClassFactory | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | Loaded: ca.uhn.hl7v2.model.v23.message.ADT_A01 class: class ca.uhn.hl7v2.model.v23.message.ADT_A01
14:10:02,299 | INFO | - MinaThreadPool | Parser | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | Instantiating msg of class ca.uhn.hl7v2.model.v23.message.ADT_A01
14:10:02,299 | DEBUG | - MinaThreadPool | PipeParser | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | Parsing segment MSH
14:10:02,299 | DEBUG | - MinaThreadPool | MessageIterator | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | MessageIterator.hasNext() in direction MSH? true
14:10:02,299 | DEBUG | - MinaThreadPool | MessageIterator | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | MessageIterator.hasNext() in direction MSH? true
14:10:02,299 | DEBUG | - MinaThreadPool | PipeParser | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | PipeParser iterating message in direction MSH at MSH
14:10:02,299 | DEBUG | - MinaThreadPool | PipeParser | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | 2
14:10:02,299 | DEBUG | - MinaThreadPool | PipeParser | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | 1reps delimited by: ~
14:10:02,299 | DEBUG | - MinaThreadPool | PipeParser | 126 - org.apache.servicemix.bundles.hapi - 0.5.1.3 | Parsing field 2 repetition 0
14:10:02,299 | DEBUG | - MinaThreadPool | ChoiceProcessor | 76 - org.apache.camel.camel-core - 2.7.1.fuse-00-43 | #0 - header(CamelHL7TriggerEvent) == A31 matches: true for: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
14:10:02,299 | DEBUG | - MinaThreadPool | DefaultErrorHandler | 76 - org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Failed delivery for exchangeId: ID-GHG-KEW-SIT-CA-3102-1320928365174-9-414. On delivery attempt: 0 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
14:10:02,299 | ERROR | - MinaThreadPool | DefaultErrorHandler | 76 - org.apache.camel.camel-core - 2.7.1.fuse-00-43 | Failed delivery for exchangeId: ID-GHG-KEW-SIT-CA-3102-1320928365174-9-414. Exhausted after delivery attempt: 1 caught: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1155)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:271)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:53)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:70)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:314)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:70)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:314)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:106)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.component.mina.MinaConsumer$ReceiveHandler.messageReceived(MinaConsumer.java:117)[123:org.apache.camel.camel-mina:2.7.1.fuse-00-43]
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:220)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_27]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_27]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_27]
Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v23.segment.MSH.getMsh3_SendingApplication()Lca/uhn/hl7v2/model/v23/datatype/HD;
at camelhl7.MyRouteBuilder$1.process(MyRouteBuilder.java:64)[132:com.ghg.camelhl7.app1.hl7_jdbc:1.0.0.SNAPSHOT]
at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
... 57 more
14:10:02,315 | DEBUG | - MinaThreadPool | 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[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8] Exception: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
14:10:02,315 | DEBUG | - MinaThreadPool | 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[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8] Exception: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
14:10:02,315 | DEBUG | - MinaThreadPool | MinaConsumer | 123 - org.apache.camel.camel-mina - 2.7.1.fuse-00-43 | Writing body: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
14:10:02,315 | WARN | - MinaThreadPool | MinaHelper | 123 - org.apache.camel.camel-mina - 2.7.1.fuse-00-43 | Cannot write body: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8] using session: (SOCKET, R: /151.46.220.183:1183, L: /151.46.220.183:61610, S: /151.46.220.183:61610)
14:10:02,315 | DEBUG | - MinaThreadPool | MinaConsumer | 123 - org.apache.camel.camel-mina - 2.7.1.fuse-00-43 | Closing session as an exception was thrown from MINA
14:10:02,315 | WARN | - MinaThreadPool | MinaConsumer$ReceiveHandler | 124 - org.apache.servicemix.bundles.mina - 1.1.7.3 | /151.46.220.183:1183 Unexpected exception from exceptionCaught handler.
org.apache.camel.CamelException: org.apache.mina.filter.codec.ProtocolEncoderException: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
at org.apache.camel.component.mina.MinaConsumer$ReceiveHandler.exceptionCaught(MinaConsumer.java:95)[123:org.apache.camel.camel-mina:2.7.1.fuse-00-43]
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.exceptionCaught(AbstractIoFilterChain.java:564)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.callNextExceptionCaught(AbstractIoFilterChain.java:345)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:53)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.exceptionCaught(AbstractIoFilterChain.java:643)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:224)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.filter.executor.ExecutorFilter$ProcessEventsRunnable.run(ExecutorFilter.java:264)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)[:1.6.0_27]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)[:1.6.0_27]
at java.lang.Thread.run(Thread.java:662)[:1.6.0_27]
Caused by: org.apache.mina.filter.codec.ProtocolEncoderException: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
at org.apache.mina.filter.codec.ProtocolCodecFilter.filterWrite(ProtocolCodecFilter.java:224)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(AbstractIoFilterChain.java:361)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.access$1300(AbstractIoFilterChain.java:53)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filterWrite(AbstractIoFilterChain.java:659)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.filter.executor.ExecutorFilter.filterWrite(ExecutorFilter.java:236)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(AbstractIoFilterChain.java:361)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.access$1300(AbstractIoFilterChain.java:53)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.filterWrite(AbstractIoFilterChain.java:659)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.filterWrite(AbstractIoFilterChain.java:587)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.callPreviousFilterWrite(AbstractIoFilterChain.java:361)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.fireFilterWrite(AbstractIoFilterChain.java:355)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.transport.socket.nio.SocketSessionImpl.write0(SocketSessionImpl.java:166)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.BaseIoSession.write(BaseIoSession.java:177)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.BaseIoSession.write(BaseIoSession.java:168)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.camel.component.mina.MinaHelper.writeBody(MinaHelper.java:48)[123:org.apache.camel.camel-mina:2.7.1.fuse-00-43]
at org.apache.camel.component.mina.MinaConsumer$ReceiveHandler.messageReceived(MinaConsumer.java:156)[123:org.apache.camel.camel-mina:2.7.1.fuse-00-43]
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.messageReceived(AbstractIoFilterChain.java:570)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.callNextMessageReceived(AbstractIoFilterChain.java:299)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.access$1100(AbstractIoFilterChain.java:53)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain$EntryImpl$1.messageReceived(AbstractIoFilterChain.java:648)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.filter.executor.ExecutorFilter.processEvent(ExecutorFilter.java:220)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
... 4 more
Caused by: org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange: Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(ObjectHelper.java:1155)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.java:271)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:53)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:70)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:314)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:99)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.fabric.FabricTraceProcessor.process(FabricTraceProcessor.java:70)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler(RedeliveryErrorHandler.java:314)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:209)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DefaultChannel.process(DefaultChannel.java:269)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:125)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProcessor.java:102)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:80)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.processNext(DelegateAsyncProcessor.java:98)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:89)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:73)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:106)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:85)[76:org.apache.camel.camel-core:2.7.1.fuse-00-43]
at org.apache.camel.component.mina.MinaConsumer$ReceiveHandler.messageReceived(MinaConsumer.java:117)[123:org.apache.camel.camel-mina:2.7.1.fuse-00-43]
... 9 more
Caused by: java.lang.NoSuchMethodError: ca.uhn.hl7v2.model.v23.segment.MSH.getMsh3_SendingApplication()Lca/uhn/hl7v2/model/v23/datatype/HD;
at camelhl7.MyRouteBuilder$1.process(MyRouteBuilder.java:64)[132:com.ghg.camelhl7.app1.hl7_jdbc:1.0.0.SNAPSHOT]
at org.apache.camel.impl.converter.AsyncProcessorTypeConverter$ProcessorToAsyncProcessorBridge.process(AsyncProcessorTypeConverter.java:50)
... 57 more
14:10:02,315 | DEBUG | - MinaThreadPool | MinaConsumer | 123 - org.apache.camel.camel-mina - 2.7.1.fuse-00-43 | Closing session as an exception was thrown from MINA
14:10:02,315 | WARN | - MinaThreadPool | MinaConsumer$ReceiveHandler | 124 - org.apache.servicemix.bundles.mina - 1.1.7.3 | /151.46.220.183:1183 Unexpected exception from exceptionCaught handler.
org.apache.camel.CamelException: org.apache.camel.CamelExchangeException: Cannot write body. Exchange[Message: ca.uhn.hl7v2.model.v23.message.ADT_A01@1da1fb8]
at org.apache.camel.component.mina.MinaConsumer$ReceiveHandler.exceptionCaught(MinaConsumer.java:95)[123:org.apache.camel.camel-mina:2.7.1.fuse-00-43]
at org.apache.mina.common.support.AbstractIoFilterChain$TailFilter.exceptionCaught(AbstractIoFilterChain.java:564)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.callNextExceptionCaught(AbstractIoFilterChain.java:345)[124:org.apache.servicemix.bundles.mina:1.1.7.3]
at org.apache.mina.common.support.AbstractIoFilterChain.access$1000(AbstractIoFilterChain.java:53)[124:org.apache.servicemix.bun