title: unable to send message to external web application using camel
body: <p>My requirement is to recieve a message a json object from a webapplication and route it (Json object) to another web application ,I am using camel for this purpose,in what should be a fairly simple process is now giving me sleepless nights,My camel route is given as below</p>
  
  <pre><code>                 &lt;camel:route&gt;
          &lt;camel:from uri="cxfrs://bean://lmrServer" /&gt;
          &lt;camel:to uri="log:output?showAll=true"/&gt;
               &lt;setHeader headerName="CamelHttpMethod"&gt;
           &lt;constant&gt;POST&lt;/constant&gt;
          &lt;/setHeader&gt; 
      &lt;camel:to uri="cxfrs:http://localhost:8080/RESTfulExample/rest/message"/&gt; 
  </code></pre>
  
  <p>Now below is my error stack,where I can see the json object in the message body,can some please let me know where Iam wrong,it would be of great help..Thanks in advance..</p>
  
  <pre><code>[               qtp177816476-20] output                         INFO  Exchange[I
  d:ID-UKCNU1161RK1-53103-1382261880815-0-1, ExchangePattern:InOut, Properties:{Ca
  melToEndpoint=log://output?showAll=true, CamelCreatedTimestamp=Sun Oct 20 10:38:
  32 BST 2013}, Headers:{breadcrumbId=ID-UKCNU1161RK1-53103-1382261880815-0-2, Cam
  elHttpPath=/lmr/register, CamelAcceptContentType=*/*, CamelCxfRsOperationResourc
  eInfoStack=[org.apache.cxf.jaxrs.model.MethodInvocationInfo@7bfd523d], CamelHttp
  Uri=/jkdlrn/lmr/register, connection=keep-alive, content-type=application/json,
  Host=localhost:8081, Content-Length=67, CamelCxfRsResponseGenericType=void, Came
  lHttpCharacterEncoding=ISO-8859-1, CamelCxfMessage=org.apache.cxf.message.XMLMes
  sage@c6298812, CamelHttpMethod=POST, User-Agent=Apache-HttpClient/4.2.5 (java 1.
  5), CamelCxfRsResponseClass=void, operationName=register}, BodyType:org.apache.c
  xf.message.MessageContentsList, Body:[MemberApplication [name=xyz, organization=
  avc, nic=xyz, employeeId=5920]], Out: null]
  [               qtp177816476-20] DefaultErrorHandler            ERROR Failed del
  ivery for (MessageId: ID-UKCNU1161RK1-53103-1382261880815-0-2 on ExchangeId: ID-
  UKCNU1161RK1-53103-1382261880815-0-1). Exhausted after delivery attempt: 1 caugh
  t: org.apache.camel.CamelExecutionException: Exception occurred during execution
   on the exchange: Exchange[Message: [MemberApplication [name=xyz, organization=a
  vc, nic=xyz, employeeId=5920]]]
  org.apache.camel.CamelExecutionException: Exception occurred during execution on
   the exchange: Exchange[Message: [MemberApplication [name=xyz, organization=avc,
   nic=xyz, employeeId=5920]]]
          at org.apache.camel.util.ObjectHelper.wrapCamelExecutionException(Object
  Helper.java:1287)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.impl.DefaultExchange.setException(DefaultExchange.ja
  va:282)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncP
  rocessorBridge.process(AsyncProcessorConverterHelper.java:64)[camel-core-2.10.3.
  jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelp
  er.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProc
  essor.java:122)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.j
  ava:298)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:1
  17)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelp
  er.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(Delegat
  eAsyncProcessor.java:99)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsy
  ncProcessor.java:90)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.management.InstrumentationProcessor.process(Instrume
  ntationProcessor.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelp
  er.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(Delegat
  eAsyncProcessor.java:99)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsy
  ncProcessor.java:90)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.interceptor.TraceInterceptor.process(Trace
  Interceptor.java:91)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelp
  er.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.RedeliveryErrorHandler.processErrorHandler
  (RedeliveryErrorHandler.java:334)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryE
  rrorHandler.java:220)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.RouteContextProcessor.processNext(RouteCon
  textProcessor.java:45)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsy
  ncProcessor.java:90)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.interceptor.DefaultChannel.process(Default
  Channel.java:303)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelp
  er.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.Pipeline.process(Pipeline.java:117)[camel-
  core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[camel-c
  ore-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.RouteContextProcessor.processNext(RouteCon
  textProcessor.java:45)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsy
  ncProcessor.java:90)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.UnitOfWorkProcessor.processAsync(UnitOfWor
  kProcessor.java:150)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.UnitOfWorkProcessor.process(UnitOfWorkProc
  essor.java:117)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.RouteInflightRepositoryProcessor.processNe
  xt(RouteInflightRepositoryProcessor.java:48)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsy
  ncProcessor.java:90)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelp
  er.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(Delegat
  eAsyncProcessor.java:99)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsy
  ncProcessor.java:90)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.management.InstrumentationProcessor.process(Instrume
  ntationProcessor.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.asyncInvoke(CxfRsIn
  voker.java:87)[camel-cxf-2.10.3.jar:2.10.3]
          at org.apache.camel.component.cxf.jaxrs.CxfRsInvoker.performInvocation(C
  xfRsInvoker.java:57)[camel-cxf-2.10.3.jar:2.10.3]
          at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
  .java:89)[cxf-rt-core-2.5.0.jar:2.5.0]
          at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:166)[cxf-r
  t-frontend-jaxrs-2.5.0.jar:2.5.0]
          at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:93)[cxf-rt
  -frontend-jaxrs-2.5.0.jar:2.5.0]
          at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInv
  okerInterceptor.java:58)[cxf-rt-core-2.5.0.jar:2.5.0]
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:47
  1)[:1.7.0_25]
          at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1
  .7.0_25]
          at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_25]
          at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecu
  tor.java:37)[cxf-rt-core-2.5.0.jar:2.5.0]
          at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(Se
  rviceInvokerInterceptor.java:106)[cxf-rt-core-2.5.0.jar:2.5.0]
          at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseIntercept
  orChain.java:263)[cxf-api-2.5.0.jar:2.5.0]
          at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainIniti
  ationObserver.java:123)[cxf-rt-core-2.5.0.jar:2.5.0]
          at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.serviceReque
  st(JettyHTTPDestination.java:323)[cxf-rt-transports-http-jetty-2.5.0.jar:2.5.0]
          at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(Je
  ttyHTTPDestination.java:289)[cxf-rt-transports-http-jetty-2.5.0.jar:2.5.0]
          at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTP
  Handler.java:72)[cxf-rt-transports-http-jetty-2.5.0.jar:2.5.0]
          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandl
  er.java:943)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandle
  r.java:879)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.j
  ava:117)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(Cont
  extHandlerCollection.java:250)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
  
          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper
  .java:110)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.server.Server.handle(Server.java:349)[jetty-server-
  7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.
  java:441)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpCo
  nnection.java:936)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:801)[jett
  y-http-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:224)
  [jetty-http-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnecti
  on.java:51)[jetty-server-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEn
  dPoint.java:586)[jetty-io-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEnd
  Point.java:44)[jetty-io-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPoo
  l.java:598)[jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
          at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool
  .java:533)[jetty-util-7.5.4.v20111024.jar:7.5.4.v20111024]
          at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
  [               qtp177816476-20] WebApplicationExceptionMapper  WARN  WebApplica
  tionException has been caught : org/apache/cxf/service/factory/ReflectionService
  FactoryBean
  </code></pre>
  
  <p>I have  a feeling that its because of the jars so below is my pom.xml</p>
  
  <pre><code>&lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;camel.version&gt;2.10.3&lt;/camel.version&gt;
          &lt;json.version&gt;1.8.5&lt;/json.version&gt;
          &lt;cxf.version&gt;2.5.0&lt;/cxf.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-core&lt;/artifactId&gt;
              &lt;version&gt;${camel.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-spring&lt;/artifactId&gt;
              &lt;version&gt;${camel.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-jetty&lt;/artifactId&gt;
              &lt;version&gt;${camel.version}&lt;/version&gt;
          &lt;/dependency&gt; 
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-cxf&lt;/artifactId&gt;
              &lt;version&gt;${camel.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-script&lt;/artifactId&gt;
              &lt;version&gt;${camel.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-jaxb&lt;/artifactId&gt;
              &lt;version&gt;${camel.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
      &lt;artifactId&gt;camel-cache&lt;/artifactId&gt;
      &lt;version&gt;2.12.1&lt;/version&gt;
  &lt;/dependency&gt;
  
          &lt;!-- JSON --&gt;
      &lt;dependency&gt;
              &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-mapper-asl&lt;/artifactId&gt;
              &lt;version&gt;${json.version}&lt;/version&gt;
          &lt;/dependency&gt; 
          &lt;dependency&gt;
      &lt;groupId&gt;org.codehaus.jackson&lt;/groupId&gt;
      &lt;artifactId&gt;jackson-jaxrs&lt;/artifactId&gt;
      &lt;version&gt;${json.version}&lt;/version&gt;
  &lt;/dependency&gt;
  
  
  
          &lt;!-- CXF --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-rt-frontend-jaxrs&lt;/artifactId&gt;
              &lt;version&gt;${cxf.version}&lt;/version&gt;
          &lt;/dependency&gt;
            &lt;dependency&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-rt-transports-http-jetty&lt;/artifactId&gt;
              &lt;version&gt;${cxf.version}&lt;/version&gt;
          &lt;/dependency&gt;  
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-rt-ws-policy&lt;/artifactId&gt;
              &lt;version&gt;${cxf.version}&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.cxf&lt;/groupId&gt;
              &lt;artifactId&gt;cxf-rt-ws-addr&lt;/artifactId&gt;
              &lt;version&gt;${cxf.version}&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- logging --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-api&lt;/artifactId&gt;
              &lt;version&gt;1.6.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
              &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
              &lt;version&gt;1.6.6&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;log4j&lt;/groupId&gt;
              &lt;artifactId&gt;log4j&lt;/artifactId&gt;
              &lt;version&gt;1.2.17&lt;/version&gt;
          &lt;/dependency&gt;
  
          &lt;!-- testing --&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
              &lt;artifactId&gt;camel-test-spring&lt;/artifactId&gt;
              &lt;version&gt;2.10.3&lt;/version&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
  
  
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
  
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.5.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-resources-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;encoding&gt;UTF-8&lt;/encoding&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
              &lt;!-- allows the route to be ran via 'mvn camel:run' --&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.camel&lt;/groupId&gt;
                  &lt;artifactId&gt;camel-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.10.3&lt;/version&gt;
              &lt;/plugin&gt;
              &lt;!-- -jetty --&gt;
   &lt;plugin&gt;
              &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
              &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;${camel.version}&lt;/version&gt;
              &lt;configuration&gt;
                &lt;connectors&gt;
                  &lt;connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"&gt;
                    &lt;port&gt;8081&lt;/port&gt;
                  &lt;/connector&gt;
                &lt;/connectors&gt;
                &lt;stopPort&gt;18080&lt;/stopPort&gt;
              &lt;/configuration&gt;
            &lt;/plugin&gt;
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  &lt;/project&gt;
  </code></pre>
  
  <p>Ok, @Pith now I made the changes suggested by you, now its throwing the below error</p>
  
  <pre><code>el 2.10.3 (CamelContext: camel-1) started in 0.498 seconds
  [              qtp1431523121-14] output                         INFO  Exchange[E
  xchangePattern:InOut, BodyType:org.apache.cxf.message.MessageContentsList, Body:
  [{"name":"xyz", "organization":"avc", "nic":"xyz", "employeeId":"5920"}]]
  [              qtp1431523121-14] BusApplicationContext          INFO  Refreshing
   org.apache.cxf.bus.spring.BusApplicationContext@1ccffe62: startup date [Tue Oct
   22 15:46:42 BST 2013]; parent: org.springframework.context.support.ClassPathXml
  ApplicationContext@4642ebd
  [              qtp1431523121-14] DefaultErrorHandler            ERROR Failed del
  ivery for (MessageId: ID-UKCNU1161RK1-52360-1382453193775-0-2 on ExchangeId: ID-
  UKCNU1161RK1-52360-1382453193775-0-1). Exhausted after delivery attempt: 1 caugh
  t: java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.apach
  e.cxf.message.MessageContentsList
  java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.apache.c
  xf.message.MessageContentsList
          at org.apache.camel.component.cxf.jaxrs.DefaultCxfRsBinding.bindCamelMes
  sageBodyToRequestBody(DefaultCxfRsBinding.java:166)[camel-cxf-2.10.3.jar:2.10.3]
  
          at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeHttpClient(C
  xfRsProducer.java:143)[camel-cxf-2.10.3.jar:2.10.3]
          at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProdu
  cer.java:87)[camel-cxf-2.10.3.jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncP
  rocessorBridge.process(AsyncProcessorConverterHelper.java:61)[camel-core-2.10.3.
  jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelp
  er.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.SendProcessor$2.doInAsyncProducer(SendProc
  essor.java:122)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.impl.ProducerCache.doInAsyncProducer(ProducerCache.j
  ava:298)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:1
  17)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelp
  er.java:73)[camel-core-2.10.3.jar:2.10.3]
          at org.apache.camel.processor.DelegateAsyncProcessor.processNext(Delegat
  </code></pre>
  
  <p>changes I made in my camel -context is the below</p>
  
  <pre><code>&lt;dataFormats&gt;
          &lt;json library="Jackson" unmarshalTypeName="org.payment.camel.example.MemberApplication" id="jack"/&gt;
      &lt;/dataFormats&gt;
  </code></pre>
  
  <p>MemberApplication is just a pojo class implementing Serializable..Can some one point me out where I am wrong.</p>