org.mule.umo.transformer.TransformerException: The Session is closed (javax.jms.IllegalStateException)

Mirth Project | Marcus Malcom | 5 years ago
  1. 0

    [MIRTH-1947] JMS Connection not reconnecting properly if the session is closed - Mirth Project

    mirthcorp.com | 11 months ago
    org.mule.umo.transformer.TransformerException: The Session is closed (javax.jms.IllegalStateException)
  2. 0

    The JMS session is being closed; however, the JMS Transformer is not retrying to connect. Here's the stack trace we're getting: ERROR 2011-09-16 08:12:09,504 [_vmConnector#9904205.b091c4d2-073e-4c90-b9c5-af14aeb154c5.receiver.1] org.mule.impl.DefaultComponentExceptionStrategy: Caught exception in Exception Strategy for: b091c4d2-073e-4c90-b9c5-af14aeb154c5: org.mule.umo.transformer.TransformerException: The Session is closed (javax.jms.IllegalStateException) org.mule.umo.transformer.TransformerException: The Session is closed (javax.jms.IllegalStateException) at com.mirth.connect.connectors.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:157) at com.mirth.connect.connectors.jms.transformers.MessageObjectToJMSMessage.doTransform(MessageObjectToJMSMessage.java:39) at com.mirth.connect.connectors.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:127) at com.mirth.connect.connectors.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:252) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:164) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:191) ..... Caused by: javax.jms.IllegalStateException: The Session is closed at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:659) at org.apache.activemq.ActiveMQSession.configureMessage(ActiveMQSession.java:647) at org.apache.activemq.ActiveMQSession.createTextMessage(ActiveMQSession.java:377) at com.mirth.connect.connectors.jms.JmsMessageUtils.getMessageForObject(JmsMessageUtils.java:55) at com.mirth.connect.connectors.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:116) ... 27 more

    Mirth Project | 5 years ago | Marcus Malcom
    org.mule.umo.transformer.TransformerException: The Session is closed (javax.jms.IllegalStateException)
  3. 0

    The JMS session is being closed; however, the JMS Transformer is not retrying to connect. Here's the stack trace we're getting: ERROR 2011-09-16 08:12:09,504 [_vmConnector#9904205.b091c4d2-073e-4c90-b9c5-af14aeb154c5.receiver.1] org.mule.impl.DefaultComponentExceptionStrategy: Caught exception in Exception Strategy for: b091c4d2-073e-4c90-b9c5-af14aeb154c5: org.mule.umo.transformer.TransformerException: The Session is closed (javax.jms.IllegalStateException) org.mule.umo.transformer.TransformerException: The Session is closed (javax.jms.IllegalStateException) at com.mirth.connect.connectors.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:157) at com.mirth.connect.connectors.jms.transformers.MessageObjectToJMSMessage.doTransform(MessageObjectToJMSMessage.java:39) at com.mirth.connect.connectors.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:127) at com.mirth.connect.connectors.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:252) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:164) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:191) ..... Caused by: javax.jms.IllegalStateException: The Session is closed at org.apache.activemq.ActiveMQSession.checkClosed(ActiveMQSession.java:659) at org.apache.activemq.ActiveMQSession.configureMessage(ActiveMQSession.java:647) at org.apache.activemq.ActiveMQSession.createTextMessage(ActiveMQSession.java:377) at com.mirth.connect.connectors.jms.JmsMessageUtils.getMessageForObject(JmsMessageUtils.java:55) at com.mirth.connect.connectors.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:116) ... 27 more

    Mirth Project | 5 years ago | Marcus Malcom
    org.mule.umo.transformer.TransformerException: The Session is closed (javax.jms.IllegalStateException)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Running the errorhandler example from trunk fails giving me the following stacktrace: {code} org.mule.umo.transformer.TransformerException: The transformer "XMLToExceptionBean" does not support source type "java.io.File". Endpoint is "file://./test-data/in" at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:237) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:342) at org.mule.impl.MuleEventContext.getTransformedMessage(MuleEventContext.java:93) at org.mule.impl.model.resolvers.DynamicEntryPoint.invoke(DynamicEntryPoint.java:179) at org.mule.impl.DefaultLifecycleAdapter.intercept(DefaultLifecycleAdapter.java:194) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:70) at org.mule.interceptors.TimerInterceptor.intercept(TimerInterceptor.java:40) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:65) at org.mule.interceptors.EnvelopeInterceptor.intercept(EnvelopeInterceptor.java:41) at org.mule.interceptors.InterceptorStack$Invoc.execute(InterceptorStack.java:65) at org.mule.interceptors.InterceptorStack.intercept(InterceptorStack.java:45) at org.mule.impl.InterceptorsInvoker.execute(InterceptorsInvoker.java:47) at org.mule.impl.model.DefaultMuleProxy.run(DefaultMuleProxy.java:467) at org.mule.impl.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) {code} If I turn on debug logging I see two incoming messages for just one exception file copied over? See attached log.

    MuleSoft JIRA | 9 years ago | Dirk Olmes
    org.mule.umo.transformer.TransformerException: The transformer "XMLToExceptionBean" does not support source type "java.io.File". Endpoint is "file://./test-data/in"
  6. 0

    SmtpMimeFunctionalTestCase SmtpFunctionalTestCase SmtpsFunctionalTestCase Fail with a similar error: ================================================================================ = Testing: send (org.mule.providers.email.functional.SmtpsFunctionalTestCase) = ================================================================================ [08-23 22:04:51] ERROR DefaultExceptionStrategy [main]: ******************************************************************************** Message : The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" Type : org.mule.umo.transformer.TransformerException Code : MULE_ERROR-65054 Transformer : EmailMessageToString{this=d61aef, name='inbound.transformer', ignoreBadInput=false, returnClass=class java.lang.String, sourceTypes=[class javax.mail.Message]} JavaDoc : http://mule.mulesource.org/docs/apidocs/org/mule/umo/transformer/TransformerException.html ******************************************************************************** Exception stack is: 1. The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" (org.mule.umo.transformer.TransformerException) org.mule.transformers.AbstractTransformer:244 (http://mule.mulesource.org/docs/apidocs/org/mule/umo/transformer/TransformerException.html) ******************************************************************************** Root Exception stack trace: org.mule.umo.transformer.TransformerException: The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439" at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:244) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:342) at org.mule.providers.email.SmtpMessageDispatcher.doDispatch(SmtpMessageDispatcher.java:86) at org.mule.providers.email.SmtpMessageDispatcher.doSend(SmtpMessageDispatcher.java:124) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:270) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1640) at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:874) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:326) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:209) at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:120) at org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:66) at org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:70) at org.mule.routing.outbound.OutboundRouterCollection$1.doInTransaction(OutboundRouterCollection.java:68) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:42) at org.mule.routing.outbound.OutboundRouterCollection.route(OutboundRouterCollection.java:73) at org.mule.routing.inbound.ForwardingConsumer.process(ForwardingConsumer.java:51) at org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:98) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:622) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:360) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:289) at org.mule.providers.vm.VMMessageReceiver.onCall(VMMessageReceiver.java:111) at org.mule.providers.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:197) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:270) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1640) at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:874) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:326) at org.mule.extras.client.MuleClient.send(MuleClient.java:741) at org.mule.extras.client.MuleClient.send(MuleClient.java:718) at org.mule.extras.client.MuleClient.send(MuleClient.java:671) at org.mule.providers.email.functional.AbstractEmailFunctionalTestCase.doSend(AbstractEmailFunctionalTestCase.java:108) at org.mule.providers.email.functional.SmtpsFunctionalTestCase.testSend(SmtpsFunctionalTestCase.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at junit.textui.TestRunner.doRun(TestRunner.java:121) at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:65) at junit.textui.TestRunner.doRun(TestRunner.java:114) at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) ******************************************************************************** junit.framework.AssertionFailedError: did not receive 1 mail expected:<1> but was:<0> at org.mule.providers.email.functional.AbstractEmailFunctionalTestCase.doSend(AbstractEmailFunctionalTestCase.java:114) at org.mule.providers.email.functional.SmtpsFunctionalTestCase.testSend(SmtpsFunctionalTestCase.java:23) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCase.java:208) at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.java:178) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90) Process finished with exit code -1

    MuleSoft JIRA | 9 years ago | Andrew Perepelytsya
    org.mule.umo.transformer.TransformerException: The transformer "inbound.transformer" does not support source type "java.lang.String". Endpoint is "smtps://localhost:65439"

    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.umo.transformer.TransformerException

      The Session is closed (javax.jms.IllegalStateException)

      at com.mirth.connect.connectors.jms.transformers.AbstractJmsTransformer.transformToMessage()
    2. com.mirth.connect
      JmsMessageDispatcher.doSend
      1. com.mirth.connect.connectors.jms.transformers.AbstractJmsTransformer.transformToMessage(AbstractJmsTransformer.java:157)
      2. com.mirth.connect.connectors.jms.transformers.MessageObjectToJMSMessage.doTransform(MessageObjectToJMSMessage.java:39)
      3. com.mirth.connect.connectors.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:127)
      4. com.mirth.connect.connectors.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:252)
      4 frames
    3. org.mule.providers
      AbstractMessageDispatcher.send
      1. org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:164)
      1 frame
    4. org.mule.impl
      MuleSession.sendEvent
      1. org.mule.impl.MuleSession.sendEvent(MuleSession.java:191)
      1 frame