java.lang.UnsupportedOperationException: Data types of class java.lang.String are not supported.

MuleSoft JIRA | Dan Diephouse | 8 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    If we don't auto transform we get: Feb 18, 2009 8:57:24 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:183) at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:54) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449) at org.mule.transport.cxf.transport.MuleUniversalConduit.dispatchMuleMessage(MuleUniversalConduit.java:194) at org.mule.transport.cxf.transport.MuleUniversalConduit$1.handleMessage(MuleUniversalConduit.java:142) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispatcher.java:194) at org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:128) at org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatcher.java:218) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:637) Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686) at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095) at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:83) ... 16 more DEBUG 2009-02-18 08:57:24,545 [jmsConnector.dispatcher.1] org.mule.transformer.simple.ObjectToString: Object after transform: DEBUG 2009-02-18 08:57:24,545 [jmsConnector.dispatcher.1] org.mule.transformer.simple.ObjectToString: The transformed object is of expected type. Type is: String ERROR 2009-02-18 08:57:24,554 [connector.cxf.0.dispatcher.1] org.mule.DefaultExceptionStrategy: Caught exception in Exception Strategy: Data types of class java.lang.String are not supported. java.lang.UnsupportedOperationException: Data types of class java.lang.String are not supported. at org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:127) at org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:117) at org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:113) at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:113) at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.mule.transport.cxf.transport.MuleUniversalConduit$2.write(MuleUniversalConduit.java:162) at org.mule.transformer.simple.ObjectToString.doTransform(ObjectToString.java:83) at org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:254) at org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:189) at org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:138) at org.mule.DefaultMuleMessage.getPayloadAsString(DefaultMuleMessage.java:313) at org.mule.DefaultMuleMessage.getPayloadAsString(DefaultMuleMessage.java:286) at org.mule.routing.outbound.AbstractOutboundRouter.dispatch(AbstractOutboundRouter.java:77) at org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:72) at org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:69) at org.mule.routing.outbound.DefaultOutboundRouterCollection$1.doInTransaction(DefaultOutboundRouterCollection.java:64) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:45) at org.mule.routing.outbound.DefaultOutboundRouterCollection.route(DefaultOutboundRouterCollection.java:69) at org.mule.service.AbstractService.sendToOutboundRouter(AbstractService.java:903) at org.mule.model.seda.SedaService.doSend(SedaService.java:235) at org.mule.service.AbstractService.sendEvent(AbstractService.java:506) at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:354) at org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:220) at org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:180) at org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:365) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:253) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:176) at org.mule.transport.vm.VMMessageReceiver.onCall(VMMessageReceiver.java:107) at org.mule.transport.vm.VMMessageDispatcher$2.doInTransaction(VMMessageDispatcher.java:125) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99) at org.mule.transport.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:128) at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:168) at org.mule.transport.AbstractConnector.send(AbstractConnector.java:1927) at org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:77) at org.mule.transport.cxf.transport.MuleUniversalConduit.sendStream(MuleUniversalConduit.java:268) at org.mule.transport.cxf.transport.MuleUniversalConduit.dispatchMuleMessage(MuleUniversalConduit.java:182) at org.mule.transport.cxf.transport.MuleUniversalConduit$1.handleMessage(MuleUniversalConduit.java:142) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispatcher.java:194) at org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:128) at org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatcher.java:218) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:637) ERROR 2009-02-18 08:57:24,568 [jmsConnector.dispatcher.1] org.mule.DefaultExceptionStrategy: ******************************************************************************** Message : Message is not a JMS message, it is of type "Class". Check the transformer for this Connector "jmsConnector". Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://queue2, connector=ActiveMQJmsConnector{this=10bf989e, started=true, initialised=true, name='jmsConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides=null}, transformer=[ObjectToString{this=531daf46, name='ObjectToString', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class java.lang.Object, class [B, class java.io.InputStream, interface org.mule.api.transport.OutputHandler]}], name='endpoint.jms.queue2', properties={}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=false, initialState=started, remoteSync=false, remoteSyncTimeout=10000, endpointEncoding=UTF-8}. Message payload is of type: String Type : org.mule.api.transport.DispatchException Code : MULE_ERROR-42999 Payload : JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.html ******************************************************************************** Exception stack is: 1. Message is not a JMS message, it is of type "Class". Check the transformer for this Connector "jmsConnector". Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://queue2, connector=ActiveMQJmsConnector{this=10bf989e, started=true, initialised=true, name='jmsConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides=null}, transformer=[ObjectToString{this=531daf46, name='ObjectToString', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class java.lang.Object, class [B, class java.io.InputStream, interface org.mule.api.transport.OutputHandler]}], name='endpoint.jms.queue2', properties={}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=false, initialState=started, remoteSync=false, remoteSyncTimeout=10000, endpointEncoding=UTF-8}. Message payload is of type: String (org.mule.api.transport.DispatchException) org.mule.transport.jms.JmsMessageDispatcher:142 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.html) ******************************************************************************** Root Exception stack trace: org.mule.api.transport.DispatchException: Message is not a JMS message, it is of type "Class". Check the transformer for this Connector "jmsConnector". Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://queue2, connector=ActiveMQJmsConnector{this=10bf989e, started=true, initialised=true, name='jmsConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides=null}, transformer=[ObjectToString{this=531daf46, name='ObjectToString', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class java.lang.Object, class [B, class java.io.InputStream, interface org.mule.api.transport.OutputHandler]}], name='endpoint.jms.queue2', properties={}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=false, initialState=started, remoteSync=false, remoteSyncTimeout=10000, endpointEncoding=UTF-8}. Message payload is of type: String at org.mule.transport.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:142) at org.mule.transport.jms.JmsMessageDispatcher.doDispatch(JmsMessageDispatcher.java:64) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:637) ********************************************************************************

    MuleSoft JIRA | 8 years ago | Dan Diephouse
    java.lang.UnsupportedOperationException: Data types of class java.lang.String are not supported.
  2. 0

    If we don't auto transform we get: Feb 18, 2009 8:57:24 AM org.apache.cxf.phase.PhaseInterceptorChain doIntercept INFO: Interceptor has thrown exception, unwinding now org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:183) at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:54) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:449) at org.mule.transport.cxf.transport.MuleUniversalConduit.dispatchMuleMessage(MuleUniversalConduit.java:194) at org.mule.transport.cxf.transport.MuleUniversalConduit$1.handleMessage(MuleUniversalConduit.java:142) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispatcher.java:194) at org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:128) at org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatcher.java:218) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:637) Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:686) at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134) at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040) at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069) at com.ctc.wstx.sr.BasicStreamReader.nextTag(BasicStreamReader.java:1095) at org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handleMessage(ReadHeadersInterceptor.java:83) ... 16 more DEBUG 2009-02-18 08:57:24,545 [jmsConnector.dispatcher.1] org.mule.transformer.simple.ObjectToString: Object after transform: DEBUG 2009-02-18 08:57:24,545 [jmsConnector.dispatcher.1] org.mule.transformer.simple.ObjectToString: The transformed object is of expected type. Type is: String ERROR 2009-02-18 08:57:24,554 [connector.cxf.0.dispatcher.1] org.mule.DefaultExceptionStrategy: Caught exception in Exception Strategy: Data types of class java.lang.String are not supported. java.lang.UnsupportedOperationException: Data types of class java.lang.String are not supported. at org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:127) at org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:117) at org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:113) at org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:113) at org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.mule.transport.cxf.transport.MuleUniversalConduit$2.write(MuleUniversalConduit.java:162) at org.mule.transformer.simple.ObjectToString.doTransform(ObjectToString.java:83) at org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:254) at org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:189) at org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:138) at org.mule.DefaultMuleMessage.getPayloadAsString(DefaultMuleMessage.java:313) at org.mule.DefaultMuleMessage.getPayloadAsString(DefaultMuleMessage.java:286) at org.mule.routing.outbound.AbstractOutboundRouter.dispatch(AbstractOutboundRouter.java:77) at org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:72) at org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:69) at org.mule.routing.outbound.DefaultOutboundRouterCollection$1.doInTransaction(DefaultOutboundRouterCollection.java:64) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:45) at org.mule.routing.outbound.DefaultOutboundRouterCollection.route(DefaultOutboundRouterCollection.java:69) at org.mule.service.AbstractService.sendToOutboundRouter(AbstractService.java:903) at org.mule.model.seda.SedaService.doSend(SedaService.java:235) at org.mule.service.AbstractService.sendEvent(AbstractService.java:506) at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:354) at org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:220) at org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:180) at org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:365) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:253) at org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:176) at org.mule.transport.vm.VMMessageReceiver.onCall(VMMessageReceiver.java:107) at org.mule.transport.vm.VMMessageDispatcher$2.doInTransaction(VMMessageDispatcher.java:125) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99) at org.mule.transport.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:128) at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:168) at org.mule.transport.AbstractConnector.send(AbstractConnector.java:1927) at org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:77) at org.mule.transport.cxf.transport.MuleUniversalConduit.sendStream(MuleUniversalConduit.java:268) at org.mule.transport.cxf.transport.MuleUniversalConduit.dispatchMuleMessage(MuleUniversalConduit.java:182) at org.mule.transport.cxf.transport.MuleUniversalConduit$1.handleMessage(MuleUniversalConduit.java:142) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296) at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242) at org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispatcher.java:194) at org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:128) at org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatcher.java:218) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:637) ERROR 2009-02-18 08:57:24,568 [jmsConnector.dispatcher.1] org.mule.DefaultExceptionStrategy: ******************************************************************************** Message : Message is not a JMS message, it is of type "Class". Check the transformer for this Connector "jmsConnector". Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://queue2, connector=ActiveMQJmsConnector{this=10bf989e, started=true, initialised=true, name='jmsConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides=null}, transformer=[ObjectToString{this=531daf46, name='ObjectToString', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class java.lang.Object, class [B, class java.io.InputStream, interface org.mule.api.transport.OutputHandler]}], name='endpoint.jms.queue2', properties={}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=false, initialState=started, remoteSync=false, remoteSyncTimeout=10000, endpointEncoding=UTF-8}. Message payload is of type: String Type : org.mule.api.transport.DispatchException Code : MULE_ERROR-42999 Payload : JavaDoc : http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.html ******************************************************************************** Exception stack is: 1. Message is not a JMS message, it is of type "Class". Check the transformer for this Connector "jmsConnector". Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://queue2, connector=ActiveMQJmsConnector{this=10bf989e, started=true, initialised=true, name='jmsConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides=null}, transformer=[ObjectToString{this=531daf46, name='ObjectToString', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class java.lang.Object, class [B, class java.io.InputStream, interface org.mule.api.transport.OutputHandler]}], name='endpoint.jms.queue2', properties={}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=false, initialState=started, remoteSync=false, remoteSyncTimeout=10000, endpointEncoding=UTF-8}. Message payload is of type: String (org.mule.api.transport.DispatchException) org.mule.transport.jms.JmsMessageDispatcher:142 (http://www.mulesource.org/docs/site/current2/apidocs/org/mule/api/transport/DispatchException.html) ******************************************************************************** Root Exception stack trace: org.mule.api.transport.DispatchException: Message is not a JMS message, it is of type "Class". Check the transformer for this Connector "jmsConnector". Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://queue2, connector=ActiveMQJmsConnector{this=10bf989e, started=true, initialised=true, name='jmsConnector', disposed=false, numberOfConcurrentTransactedReceivers=4, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides=null}, transformer=[ObjectToString{this=531daf46, name='ObjectToString', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class java.lang.Object, class [B, class java.io.InputStream, interface org.mule.api.transport.OutputHandler]}], name='endpoint.jms.queue2', properties={}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null, synchronous=false, initialState=started, remoteSync=false, remoteSyncTimeout=10000, endpointEncoding=UTF-8}. Message payload is of type: String at org.mule.transport.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:142) at org.mule.transport.jms.JmsMessageDispatcher.doDispatch(JmsMessageDispatcher.java:64) at org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:637) ********************************************************************************

    MuleSoft JIRA | 8 years ago | Dan Diephouse
    java.lang.UnsupportedOperationException: Data types of class java.lang.String are not supported.

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Data types of class java.lang.String are not supported.

      at org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write()
    2. Apache CXF Core
      PhaseInterceptorChain.doIntercept
      1. org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:127)
      2. org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:117)
      3. org.apache.cxf.databinding.stax.StaxDataBinding$XMLStreamDataWriter.write(StaxDataBinding.java:113)
      4. org.apache.cxf.interceptor.AbstractOutDatabindingInterceptor.writeParts(AbstractOutDatabindingInterceptor.java:113)
      5. org.apache.cxf.interceptor.BareOutInterceptor.handleMessage(BareOutInterceptor.java:68)
      6. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
      6 frames
    3. org.mule.transport
      MuleUniversalConduit$2.write
      1. org.mule.transport.cxf.transport.MuleUniversalConduit$2.write(MuleUniversalConduit.java:162)
      1 frame
    4. Mule Core
      DefaultMuleSession.sendEvent
      1. org.mule.transformer.simple.ObjectToString.doTransform(ObjectToString.java:83)
      2. org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:254)
      3. org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:189)
      4. org.mule.DefaultMuleMessage.getPayload(DefaultMuleMessage.java:138)
      5. org.mule.DefaultMuleMessage.getPayloadAsString(DefaultMuleMessage.java:313)
      6. org.mule.DefaultMuleMessage.getPayloadAsString(DefaultMuleMessage.java:286)
      7. org.mule.routing.outbound.AbstractOutboundRouter.dispatch(AbstractOutboundRouter.java:77)
      8. org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:72)
      9. org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:69)
      10. org.mule.routing.outbound.DefaultOutboundRouterCollection$1.doInTransaction(DefaultOutboundRouterCollection.java:64)
      11. org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:45)
      12. org.mule.routing.outbound.DefaultOutboundRouterCollection.route(DefaultOutboundRouterCollection.java:69)
      13. org.mule.service.AbstractService.sendToOutboundRouter(AbstractService.java:903)
      14. org.mule.model.seda.SedaService.doSend(SedaService.java:235)
      15. org.mule.service.AbstractService.sendEvent(AbstractService.java:506)
      16. org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:354)
      16 frames
    5. org.mule.routing
      DefaultInboundRouterCollection.route
      1. org.mule.routing.inbound.DefaultInboundRouterCollection.send(DefaultInboundRouterCollection.java:220)
      2. org.mule.routing.inbound.DefaultInboundRouterCollection.route(DefaultInboundRouterCollection.java:180)
      2 frames
    6. Mule Core
      AbstractMessageReceiver.routeMessage
      1. org.mule.transport.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:365)
      2. org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:253)
      3. org.mule.transport.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:176)
      3 frames
    7. VM Transport
      VMMessageDispatcher$2.doInTransaction
      1. org.mule.transport.vm.VMMessageReceiver.onCall(VMMessageReceiver.java:107)
      2. org.mule.transport.vm.VMMessageDispatcher$2.doInTransaction(VMMessageDispatcher.java:125)
      2 frames
    8. Mule Core
      TransactionTemplate.execute
      1. org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99)
      1 frame
    9. VM Transport
      VMMessageDispatcher.doSend
      1. org.mule.transport.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:128)
      1 frame
    10. Mule Core
      DefaultOutboundEndpoint.send
      1. org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:168)
      2. org.mule.transport.AbstractConnector.send(AbstractConnector.java:1927)
      3. org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:77)
      3 frames
    11. org.mule.transport
      MuleUniversalConduit$1.handleMessage
      1. org.mule.transport.cxf.transport.MuleUniversalConduit.sendStream(MuleUniversalConduit.java:268)
      2. org.mule.transport.cxf.transport.MuleUniversalConduit.dispatchMuleMessage(MuleUniversalConduit.java:182)
      3. org.mule.transport.cxf.transport.MuleUniversalConduit$1.handleMessage(MuleUniversalConduit.java:142)
      3 frames
    12. Apache CXF Core
      ClientImpl.invoke
      1. org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
      2. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
      3. org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
      3 frames
    13. org.mule.transport
      CxfMessageDispatcher.doDispatch
      1. org.mule.transport.cxf.CxfMessageDispatcher.doSendWithClient(CxfMessageDispatcher.java:194)
      2. org.mule.transport.cxf.CxfMessageDispatcher.doSend(CxfMessageDispatcher.java:128)
      3. org.mule.transport.cxf.CxfMessageDispatcher.doDispatch(CxfMessageDispatcher.java:218)
      3 frames
    14. Mule Core
      WorkerContext.run
      1. org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:273)
      2. org.mule.work.WorkerContext.run(WorkerContext.java:310)
      2 frames
    15. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
      2 frames
    16. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:637)
      1 frame