org.mule.api.transport.DispatchException: Failed to r oute event via endpoint: DefaultOutboundEndpoint{endpointUri=tcp://localhost:555 5, connector=TcpConnector { name=connector.tcp.0 lifecycle=start this=1e78c96 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[tcp] serviceOverrides=<none> } , name='endpoint.tcp.localhost.5555', mep=REQUEST_RESPONSE, properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, deleteUnaccept edMessages=false, initialState=started, responseTimeout=10000, endpointEncoding= UTF-8, disableTransportTransformer=false}. Message payload is of type: byte[]

MuleSoft JIRA | Daniel Zapata | 6 years ago
  1. 0

    Steps to reproduce: * Go to the loanbroker example directory and run 'mvn -DskipTests' (due to MULE-5017) * Run loanbroker-server.bat * Select option 1 * In a separate console, run loanbroker-client.bat * Select option 1 and answer the questions You will see this on the client console: Please make your selection: 1 Enter your name: DZ Enter loan Amount: 12121 Enter loan Duration in months: 12 Exception in thread "main" org.mule.api.transport.DispatchException: Failed to r oute event via endpoint: DefaultOutboundEndpoint{endpointUri=tcp://localhost:555 5, connector=TcpConnector { name=connector.tcp.0 lifecycle=start this=1e78c96 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[tcp] serviceOverrides=<none> } , name='endpoint.tcp.localhost.5555', mep=REQUEST_RESPONSE, properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, deleteUnaccept edMessages=false, initialState=started, responseTimeout=10000, endpointEncoding= UTF-8, disableTransportTransformer=false}. Message payload is of type: byte[] at org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatch er.java:422) at org.mule.module.client.RemoteDispatcher.doToRemote(RemoteDispatcher.j ava:336) at org.mule.module.client.RemoteDispatcher.dispatchRemote(RemoteDispatch er.java:251) at org.mule.example.loanbroker.AbstractLoanBrokerApp.request(AbstractLoa nBrokerApp.java:183) at org.mule.example.loanbroker.AbstractLoanBrokerApp.run(AbstractLoanBro kerApp.java:89) at org.mule.example.loanbroker.LoanBrokerApp.main(LoanBrokerApp.java:31) Caused by: org.mule.api.transformer.TransformerException: The object transformed is of type: "SimpleDataType{type=org.mule.transport.NullPayload, mimeType='*/*' }", but the expected return type is "SimpleDataType{type=org.mule.api.MuleMessag e, mimeType='*/*'}" at org.mule.transformer.AbstractTransformer.checkReturnClass(AbstractTra nsformer.java:130) at org.mule.transformer.AbstractTransformer.transform(AbstractTransforme r.java:408) at org.mule.transformer.AbstractTransformer.transform(AbstractTransforme r.java:348) at org.mule.transformer.wire.TransformerPairWireFormat.read(TransformerP airWireFormat.java:62) at org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatch er.java:410) ... 5 more You will see the following stack trace on the server console: ERROR 2010-08-16 17:51:51,843 [CreditAgencyGatewayService.2] org.mule.retry.noti fiers.ConnectNotifier: Failed to connect/reconnect: endpoint.outbound.ejb://loca lhost:1099/local/CreditAgency. Root Exception was: javax.naming.NameNotFoundExce ption: Name "local/CreditAgency" not found.. Type: class javax.naming.NameNotFou ndException ERROR 2010-08-16 17:51:51,843 [CreditAgencyGatewayService.2] org.mule.exception. DefaultServiceExceptionStrategy: ******************************************************************************** Message : Remote EJBObject lookup failed for 'ejb://localhost:1099 /local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (jav ax.naming.NameNotFoundException) org.openejb.core.ivm.naming.IvmContext:184 (http://java.sun.com/j2ee/sdk_1.3/t echdocs/api/javax/naming/NameNotFoundException.html) 2. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (java.rmi.RemoteException) org.mule.transport.ejb.EjbConnector:60 (null) 3. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (org.mule.retry.RetryPolicyExhaustedException) org.mule.retry.policies.AbstractPolicyTemplate:105 (http://www.mulesource.org/ docs/site/current2/apidocs/org/mule/retry/RetryPolicyExhaustedException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. at org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184) at org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147) at javax.naming.InitialContext.lookup(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for ev erything) ******************************************************************************** ERROR 2010-08-16 17:51:51,875 [CreditAgencyGatewayService.2] org.mule.exception. DefaultServiceExceptionStrategy: ******************************************************************************** Message : Remote EJBObject lookup failed for 'ejb://localhost:1099 /local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (jav ax.naming.NameNotFoundException) org.openejb.core.ivm.naming.IvmContext:184 (http://java.sun.com/j2ee/sdk_1.3/t echdocs/api/javax/naming/NameNotFoundException.html) 2. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (java.rmi.RemoteException) org.mule.transport.ejb.EjbConnector:60 (null) 3. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (org.mule.retry.RetryPolicyExhaustedException) org.mule.retry.policies.AbstractPolicyTemplate:105 (http://www.mulesource.org/ docs/site/current2/apidocs/org/mule/retry/RetryPolicyExhaustedException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. at org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184) at org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147) at javax.naming.InitialContext.lookup(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for ev erything) ********************************************************************************

    MuleSoft JIRA | 6 years ago | Daniel Zapata
    org.mule.api.transport.DispatchException: Failed to r oute event via endpoint: DefaultOutboundEndpoint{endpointUri=tcp://localhost:555 5, connector=TcpConnector { name=connector.tcp.0 lifecycle=start this=1e78c96 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[tcp] serviceOverrides=<none> } , name='endpoint.tcp.localhost.5555', mep=REQUEST_RESPONSE, properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, deleteUnaccept edMessages=false, initialState=started, responseTimeout=10000, endpointEncoding= UTF-8, disableTransportTransformer=false}. Message payload is of type: byte[]
  2. 0

    Steps to reproduce: * Go to the loanbroker example directory and run 'mvn -DskipTests' (due to MULE-5017) * Run loanbroker-server.bat * Select option 1 * In a separate console, run loanbroker-client.bat * Select option 1 and answer the questions You will see this on the client console: Please make your selection: 1 Enter your name: DZ Enter loan Amount: 12121 Enter loan Duration in months: 12 Exception in thread "main" org.mule.api.transport.DispatchException: Failed to r oute event via endpoint: DefaultOutboundEndpoint{endpointUri=tcp://localhost:555 5, connector=TcpConnector { name=connector.tcp.0 lifecycle=start this=1e78c96 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[tcp] serviceOverrides=<none> } , name='endpoint.tcp.localhost.5555', mep=REQUEST_RESPONSE, properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, deleteUnaccept edMessages=false, initialState=started, responseTimeout=10000, endpointEncoding= UTF-8, disableTransportTransformer=false}. Message payload is of type: byte[] at org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatch er.java:422) at org.mule.module.client.RemoteDispatcher.doToRemote(RemoteDispatcher.j ava:336) at org.mule.module.client.RemoteDispatcher.dispatchRemote(RemoteDispatch er.java:251) at org.mule.example.loanbroker.AbstractLoanBrokerApp.request(AbstractLoa nBrokerApp.java:183) at org.mule.example.loanbroker.AbstractLoanBrokerApp.run(AbstractLoanBro kerApp.java:89) at org.mule.example.loanbroker.LoanBrokerApp.main(LoanBrokerApp.java:31) Caused by: org.mule.api.transformer.TransformerException: The object transformed is of type: "SimpleDataType{type=org.mule.transport.NullPayload, mimeType='*/*' }", but the expected return type is "SimpleDataType{type=org.mule.api.MuleMessag e, mimeType='*/*'}" at org.mule.transformer.AbstractTransformer.checkReturnClass(AbstractTra nsformer.java:130) at org.mule.transformer.AbstractTransformer.transform(AbstractTransforme r.java:408) at org.mule.transformer.AbstractTransformer.transform(AbstractTransforme r.java:348) at org.mule.transformer.wire.TransformerPairWireFormat.read(TransformerP airWireFormat.java:62) at org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatch er.java:410) ... 5 more You will see the following stack trace on the server console: ERROR 2010-08-16 17:51:51,843 [CreditAgencyGatewayService.2] org.mule.retry.noti fiers.ConnectNotifier: Failed to connect/reconnect: endpoint.outbound.ejb://loca lhost:1099/local/CreditAgency. Root Exception was: javax.naming.NameNotFoundExce ption: Name "local/CreditAgency" not found.. Type: class javax.naming.NameNotFou ndException ERROR 2010-08-16 17:51:51,843 [CreditAgencyGatewayService.2] org.mule.exception. DefaultServiceExceptionStrategy: ******************************************************************************** Message : Remote EJBObject lookup failed for 'ejb://localhost:1099 /local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (jav ax.naming.NameNotFoundException) org.openejb.core.ivm.naming.IvmContext:184 (http://java.sun.com/j2ee/sdk_1.3/t echdocs/api/javax/naming/NameNotFoundException.html) 2. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (java.rmi.RemoteException) org.mule.transport.ejb.EjbConnector:60 (null) 3. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (org.mule.retry.RetryPolicyExhaustedException) org.mule.retry.policies.AbstractPolicyTemplate:105 (http://www.mulesource.org/ docs/site/current2/apidocs/org/mule/retry/RetryPolicyExhaustedException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. at org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184) at org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147) at javax.naming.InitialContext.lookup(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for ev erything) ******************************************************************************** ERROR 2010-08-16 17:51:51,875 [CreditAgencyGatewayService.2] org.mule.exception. DefaultServiceExceptionStrategy: ******************************************************************************** Message : Remote EJBObject lookup failed for 'ejb://localhost:1099 /local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (jav ax.naming.NameNotFoundException) org.openejb.core.ivm.naming.IvmContext:184 (http://java.sun.com/j2ee/sdk_1.3/t echdocs/api/javax/naming/NameNotFoundException.html) 2. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (java.rmi.RemoteException) org.mule.transport.ejb.EjbConnector:60 (null) 3. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (org.mule.retry.RetryPolicyExhaustedException) org.mule.retry.policies.AbstractPolicyTemplate:105 (http://www.mulesource.org/ docs/site/current2/apidocs/org/mule/retry/RetryPolicyExhaustedException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. at org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184) at org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147) at javax.naming.InitialContext.lookup(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for ev erything) ********************************************************************************

    MuleSoft JIRA | 6 years ago | Daniel Zapata
    org.mule.api.transport.DispatchException: Failed to r oute event via endpoint: DefaultOutboundEndpoint{endpointUri=tcp://localhost:555 5, connector=TcpConnector { name=connector.tcp.0 lifecycle=start this=1e78c96 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[tcp] serviceOverrides=<none> } , name='endpoint.tcp.localhost.5555', mep=REQUEST_RESPONSE, properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, deleteUnaccept edMessages=false, initialState=started, responseTimeout=10000, endpointEncoding= UTF-8, disableTransportTransformer=false}. Message payload is of type: byte[]
  3. 0

    HTTP Outbound Endpoint Exception on incorrect Path at the end of Flow

    Stack Overflow | 3 years ago | Tuno
    org.mule.api.transport.DispatchException: Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=http://www.myhost.com:80/SOMESERVICE.asmx?wsdl, connector=HttpConnector { name=connector.http.mule.default lifecycle=start this=6215723d numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[http] serviceOverrides=<none> } , name='endpoint.http.www.myhost.com.80.SOMESERVICE.asmx.wsdl', mep=REQUEST_RESPONSE, properties={wsdl=, http.method=GET}, transactionConfig=Transaction{factory=null, action=INDIFFERENT, timeout=0}, deleteUnacceptedMessages=false, initialState=started, responseTimeout=10000, endpointEncoding=UTF-8, disableTransportTransformer=false}. Message payload is of type: GetMethod
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    When load testing Mule I'm getting sporadic NPEs from muleClient.send(..) with the stack trace shown below. This seems to be due to JmsConnector.java:521 calling isTransacted() on endpoint.getTransactionConfig(), which is null. I'm not sure why it's only null sporadically, but either way a check for null should be made, since ImmutableEndpoint.getTransactionConfig is documented to potentially return null. Also FYI, when calling muleClient.sendAsync(..) instead of muleClient.send(..) no error appears when a handful of messages get lost. JMS Connector contains the following line: public Session getSession(ImmutableEndpoint endpoint) throws JMSException { final boolean topic = getTopicResolver().isTopic(endpoint); return getSession(endpoint.getTransactionConfig().isTransacted(), topic); } [2008/Nov/24 14:20:42.661] [ActiveMQ Session Task] ERROR XXXX.java:135 Exception sending mule persistState message: org.mule.transport.jms.JmsMessageAdapter/org.mule.transport.jms.JmsMessageAdapter@4e1d4ae9{id=ID:xxxxx.com-37991-1227565039260-2:0:695:1:1, payload=org.apache. activemq.command.ActiveMQTextMessage, correlationId=21c44142-ba76-11dd-a216-99d931504bf1, correlationGroup=-1, correlationSeq=-1, encoding=UTF-8, excepti onPayload=null} org.mule.api.transport.DispatchException: Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://mule.xxxxxx.in?connector=xxxxServiceMqConnector, connector=ActiveMQJmsConnector{this=246adb31, started=true, initialised=true, name='stateServiceMqConnector', disposed=false, numberOfConcurrentTransactedReceivers=1, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides={message.receiver=org.mule.transport.jms.MultiConsumerJmsMessageReceiver}}, transformer=[ObjectToJMSMessage{this=4808e0e1, name='null', ignoreBadInput=false, returnClass= interface javax.jms.Message, sourceTypes=[]}], name='endpoint.jms.mule.xxxx.in', properties={connector=xxxxServiceMqConnector}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null,synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8}. Message payload is of type: HashMap at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:195) at org.mule.transport.AbstractConnector.send(AbstractConnector.java:1910) at org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:77) at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:327) at org.mule.module.client.MuleClient.send(MuleClient.java:650) at org.mule.module.client.MuleClient.send(MuleClient.java:627) at org.mule.module.client.MuleClient.send(MuleClient.java:580) at xxxxxx at xxxxxx at org.mule.transformer.AbstractMessageAwareTransformer.doTransform(AbstractMessageAwareTransformer.java:68) at org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:254) at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:608) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:568) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:561) at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:316) at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:311) at org.mule.component.simple.PassThroughComponent.doInvoke(PassThroughComponent.java:27) at org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:125) at org.mule.component.AbstractComponent.invoke(AbstractComponent.java:153) at org.mule.service.AbstractService.invokeComponent(AbstractService.java:932) at org.mule.model.seda.SedaService.doSend(SedaService.java:229) at org.mule.service.AbstractService.sendEvent(AbstractService.java:505) 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.AbstractReceiverWorker$1.doInTransaction(AbstractReceiverWorker.java:114) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99) at org.mule.transport.AbstractReceiverWorker.doRun(AbstractReceiverWorker.java:131) at org.mule.transport.AbstractReceiverWorker.run(AbstractReceiverWorker.java:62) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at org.mule.work.SyncWorkExecutor.doExecute(SyncWorkExecutor.java:41) at org.mule.work.MuleWorkManager.executeWork(MuleWorkManager.java:269) at org.mule.work.MuleWorkManager.doWork(MuleWorkManager.java:157) at org.mule.transport.jms.MultiConsumerJmsMessageReceiver$SubReceiver.onMessage(MultiConsumerJmsMessageReceiver.java:281) at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:967) at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:122) at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:192) at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122) at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.mule.api.transformer.TransformerException: null (java.lang.NullPointerException) (org.mule.api.transformer.TransformerException) at org.mule.transport.jms.transformers.ObjectToJMSMessage.transform(ObjectToJMSMessage.java:61) at org.mule.transformer.AbstractMessageAwareTransformer.doTransform(AbstractMessageAwareTransformer.java:68) at org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:254) at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:608) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:568) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:561) at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:316) at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:311) at org.mule.transport.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:143) at org.mule.transport.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:359) at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:168) ... 43 more Caused by: org.mule.api.transformer.TransformerException: null (java.lang.NullPointerException) at org.mule.transport.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:79) at org.mule.transport.jms.transformers.ObjectToJMSMessage.transform(ObjectToJMSMessage.java:50) ... 53 more Caused by: java.lang.NullPointerException at org.mule.transport.jms.JmsConnector.getSession(JmsConnector.java:521) at org.mule.transport.jms.transformers.AbstractJmsTransformer.getSession(AbstractJmsTransformer.java:201) at org.mule.transport.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:65) ... 54 more

    MuleSoft JIRA | 8 years ago | Bill Graham
    org.mule.api.transport.DispatchException: Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://mule.xxxxxx.in?connector=xxxxServiceMqConnector, connector=ActiveMQJmsConnector{this=246adb31, started=true, initialised=true, name='stateServiceMqConnector', disposed=false, numberOfConcurrentTransactedReceivers=1, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides={message.receiver=org.mule.transport.jms.MultiConsumerJmsMessageReceiver}}, transformer=[ObjectToJMSMessage{this=4808e0e1, name='null', ignoreBadInput=false, returnClass= interface javax.jms.Message, sourceTypes=[]}], name='endpoint.jms.mule.xxxx.in', properties={connector=xxxxServiceMqConnector}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null,synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8}. Message payload is of type: HashMap
  6. 0

    When load testing Mule I'm getting sporadic NPEs from muleClient.send(..) with the stack trace shown below. This seems to be due to JmsConnector.java:521 calling isTransacted() on endpoint.getTransactionConfig(), which is null. I'm not sure why it's only null sporadically, but either way a check for null should be made, since ImmutableEndpoint.getTransactionConfig is documented to potentially return null. Also FYI, when calling muleClient.sendAsync(..) instead of muleClient.send(..) no error appears when a handful of messages get lost. JMS Connector contains the following line: public Session getSession(ImmutableEndpoint endpoint) throws JMSException { final boolean topic = getTopicResolver().isTopic(endpoint); return getSession(endpoint.getTransactionConfig().isTransacted(), topic); } [2008/Nov/24 14:20:42.661] [ActiveMQ Session Task] ERROR XXXX.java:135 Exception sending mule persistState message: org.mule.transport.jms.JmsMessageAdapter/org.mule.transport.jms.JmsMessageAdapter@4e1d4ae9{id=ID:xxxxx.com-37991-1227565039260-2:0:695:1:1, payload=org.apache. activemq.command.ActiveMQTextMessage, correlationId=21c44142-ba76-11dd-a216-99d931504bf1, correlationGroup=-1, correlationSeq=-1, encoding=UTF-8, excepti onPayload=null} org.mule.api.transport.DispatchException: Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://mule.xxxxxx.in?connector=xxxxServiceMqConnector, connector=ActiveMQJmsConnector{this=246adb31, started=true, initialised=true, name='stateServiceMqConnector', disposed=false, numberOfConcurrentTransactedReceivers=1, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides={message.receiver=org.mule.transport.jms.MultiConsumerJmsMessageReceiver}}, transformer=[ObjectToJMSMessage{this=4808e0e1, name='null', ignoreBadInput=false, returnClass= interface javax.jms.Message, sourceTypes=[]}], name='endpoint.jms.mule.xxxx.in', properties={connector=xxxxServiceMqConnector}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null,synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8}. Message payload is of type: HashMap at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:195) at org.mule.transport.AbstractConnector.send(AbstractConnector.java:1910) at org.mule.endpoint.DefaultOutboundEndpoint.send(DefaultOutboundEndpoint.java:77) at org.mule.DefaultMuleSession.sendEvent(DefaultMuleSession.java:327) at org.mule.module.client.MuleClient.send(MuleClient.java:650) at org.mule.module.client.MuleClient.send(MuleClient.java:627) at org.mule.module.client.MuleClient.send(MuleClient.java:580) at xxxxxx at xxxxxx at org.mule.transformer.AbstractMessageAwareTransformer.doTransform(AbstractMessageAwareTransformer.java:68) at org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:254) at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:608) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:568) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:561) at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:316) at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:311) at org.mule.component.simple.PassThroughComponent.doInvoke(PassThroughComponent.java:27) at org.mule.component.AbstractComponent.invokeInternal(AbstractComponent.java:125) at org.mule.component.AbstractComponent.invoke(AbstractComponent.java:153) at org.mule.service.AbstractService.invokeComponent(AbstractService.java:932) at org.mule.model.seda.SedaService.doSend(SedaService.java:229) at org.mule.service.AbstractService.sendEvent(AbstractService.java:505) 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.AbstractReceiverWorker$1.doInTransaction(AbstractReceiverWorker.java:114) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:99) at org.mule.transport.AbstractReceiverWorker.doRun(AbstractReceiverWorker.java:131) at org.mule.transport.AbstractReceiverWorker.run(AbstractReceiverWorker.java:62) at org.mule.work.WorkerContext.run(WorkerContext.java:310) at org.mule.work.SyncWorkExecutor.doExecute(SyncWorkExecutor.java:41) at org.mule.work.MuleWorkManager.executeWork(MuleWorkManager.java:269) at org.mule.work.MuleWorkManager.doWork(MuleWorkManager.java:157) at org.mule.transport.jms.MultiConsumerJmsMessageReceiver$SubReceiver.onMessage(MultiConsumerJmsMessageReceiver.java:281) at org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:967) at org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:122) at org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:192) at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:122) at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:43) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: org.mule.api.transformer.TransformerException: null (java.lang.NullPointerException) (org.mule.api.transformer.TransformerException) at org.mule.transport.jms.transformers.ObjectToJMSMessage.transform(ObjectToJMSMessage.java:61) at org.mule.transformer.AbstractMessageAwareTransformer.doTransform(AbstractMessageAwareTransformer.java:68) at org.mule.transformer.AbstractTransformer.transform(AbstractTransformer.java:254) at org.mule.DefaultMuleMessage.applyAllTransformers(DefaultMuleMessage.java:608) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:568) at org.mule.DefaultMuleMessage.applyTransformers(DefaultMuleMessage.java:561) at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:316) at org.mule.DefaultMuleEvent.transformMessage(DefaultMuleEvent.java:311) at org.mule.transport.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:143) at org.mule.transport.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:359) at org.mule.transport.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:168) ... 43 more Caused by: org.mule.api.transformer.TransformerException: null (java.lang.NullPointerException) at org.mule.transport.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:79) at org.mule.transport.jms.transformers.ObjectToJMSMessage.transform(ObjectToJMSMessage.java:50) ... 53 more Caused by: java.lang.NullPointerException at org.mule.transport.jms.JmsConnector.getSession(JmsConnector.java:521) at org.mule.transport.jms.transformers.AbstractJmsTransformer.getSession(AbstractJmsTransformer.java:201) at org.mule.transport.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:65) ... 54 more

    MuleSoft JIRA | 8 years ago | Bill Graham
    org.mule.api.transport.DispatchException: Failed to route event via endpoint: DefaultOutboundEndpoint{endpointUri=jms://mule.xxxxxx.in?connector=xxxxServiceMqConnector, connector=ActiveMQJmsConnector{this=246adb31, started=true, initialised=true, name='stateServiceMqConnector', disposed=false, numberOfConcurrentTransactedReceivers=1, createMultipleTransactedReceivers=true, connected=true, supportedProtocols=[jms], serviceOverrides={message.receiver=org.mule.transport.jms.MultiConsumerJmsMessageReceiver}}, transformer=[ObjectToJMSMessage{this=4808e0e1, name='null', ignoreBadInput=false, returnClass= interface javax.jms.Message, sourceTypes=[]}], name='endpoint.jms.mule.xxxx.in', properties={connector=xxxxServiceMqConnector}, transactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, filter=null, deleteUnacceptedMessages=false, securityFilter=null,synchronous=true, initialState=started, remoteSync=false, remoteSyncTimeout=3000, endpointEncoding=UTF-8}. Message payload is of type: HashMap

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.mule.api.transport.DispatchException

      Failed to r oute event via endpoint: DefaultOutboundEndpoint{endpointUri=tcp://localhost:555 5, connector=TcpConnector { name=connector.tcp.0 lifecycle=start this=1e78c96 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[tcp] serviceOverrides=<none> } , name='endpoint.tcp.localhost.5555', mep=REQUEST_RESPONSE, properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, deleteUnaccept edMessages=false, initialState=started, responseTimeout=10000, endpointEncoding= UTF-8, disableTransportTransformer=false}. Message payload is of type: byte[]

      at org.mule.module.client.RemoteDispatcher.dispatchAction()
    2. Mule Client
      RemoteDispatcher.dispatchRemote
      1. org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatcher.java:422)
      2. org.mule.module.client.RemoteDispatcher.doToRemote(RemoteDispatcher.java:336)
      3. org.mule.module.client.RemoteDispatcher.dispatchRemote(RemoteDispatcher.java:251)
      3 frames
    3. org.mule.example
      LoanBrokerApp.main
      1. org.mule.example.loanbroker.AbstractLoanBrokerApp.request(AbstractLoanBrokerApp.java:183)
      2. org.mule.example.loanbroker.AbstractLoanBrokerApp.run(AbstractLoanBrokerApp.java:89)
      3. org.mule.example.loanbroker.LoanBrokerApp.main(LoanBrokerApp.java:31)
      3 frames