org.mule.transaction.IllegalTransactionStateException: Only a single resource can be bound to this type of transaction

MuleSoft JIRA | Justin Rowe | 10 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    As possible workaround for case 1784, I tried JMS connector bridging from Active MQ to Websphere MQ using JMS transaction, as described in the cookbook, but get the following error: Root Exception stack trace: org.mule.transaction.IllegalTransactionStateException: Only a single resource can be bound to this type of transaction at org.mule.transaction.AbstractSingleResourceTransaction.bindResource(AbstractSingleResourceTransaction.java:131) at org.mule.providers.jms.JmsTransaction.bindResource(JmsTransaction.java:58) at org.mule.providers.jms.JmsConnector.getSession(JmsConnector.java:470) at org.mule.providers.jms.JmsConnector.getSession(JmsConnector.java:435) at org.mule.providers.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:119) at org.mule.providers.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:316) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:224) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1605) at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:920) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:327) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:209) at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:121) at org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:67) at org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:81) at org.mule.routing.outbound.OutboundRouterCollection$1.doInTransaction(OutboundRouterCollection.java:66) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:40) at org.mule.routing.outbound.OutboundRouterCollection.route(OutboundRouterCollection.java:71) at org.mule.routing.inbound.ForwardingConsumer.process(ForwardingConsumer.java:51) at org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:86) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:575) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:317) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:252) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:245) at org.mule.providers.jms.TransactedJmsMessageReceiver.getMessages(TransactedJmsMessageReceiver.java:256) at org.mule.providers.TransactedPollingMessageReceiver$1.doInTransaction(TransactedPollingMessageReceiver.java:92) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:76) at org.mule.providers.TransactedPollingMessageReceiver.poll(TransactedPollingMessageReceiver.java:103) at org.mule.providers.jms.TransactedJmsMessageReceiver.poll(TransactedJmsMessageReceiver.java:163)

    MuleSoft JIRA | 10 years ago | Justin Rowe
    org.mule.transaction.IllegalTransactionStateException: Only a single resource can be bound to this type of transaction
  2. 0

    As possible workaround for case 1784, I tried JMS connector bridging from Active MQ to Websphere MQ using JMS transaction, as described in the cookbook, but get the following error: Root Exception stack trace: org.mule.transaction.IllegalTransactionStateException: Only a single resource can be bound to this type of transaction at org.mule.transaction.AbstractSingleResourceTransaction.bindResource(AbstractSingleResourceTransaction.java:131) at org.mule.providers.jms.JmsTransaction.bindResource(JmsTransaction.java:58) at org.mule.providers.jms.JmsConnector.getSession(JmsConnector.java:470) at org.mule.providers.jms.JmsConnector.getSession(JmsConnector.java:435) at org.mule.providers.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:119) at org.mule.providers.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:316) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:224) at org.mule.providers.AbstractConnector.send(AbstractConnector.java:1605) at org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:920) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:327) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:209) at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:121) at org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:67) at org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:81) at org.mule.routing.outbound.OutboundRouterCollection$1.doInTransaction(OutboundRouterCollection.java:66) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:40) at org.mule.routing.outbound.OutboundRouterCollection.route(OutboundRouterCollection.java:71) at org.mule.routing.inbound.ForwardingConsumer.process(ForwardingConsumer.java:51) at org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:86) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:575) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:317) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:252) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:245) at org.mule.providers.jms.TransactedJmsMessageReceiver.getMessages(TransactedJmsMessageReceiver.java:256) at org.mule.providers.TransactedPollingMessageReceiver$1.doInTransaction(TransactedPollingMessageReceiver.java:92) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:76) at org.mule.providers.TransactedPollingMessageReceiver.poll(TransactedPollingMessageReceiver.java:103) at org.mule.providers.jms.TransactedJmsMessageReceiver.poll(TransactedJmsMessageReceiver.java:163)

    MuleSoft JIRA | 10 years ago | Justin Rowe
    org.mule.transaction.IllegalTransactionStateException: Only a single resource can be bound to this type of transaction

    Root Cause Analysis

    1. org.mule.transaction.IllegalTransactionStateException

      Only a single resource can be bound to this type of transaction

      at org.mule.transaction.AbstractSingleResourceTransaction.bindResource()
    2. Mule Core
      AbstractSingleResourceTransaction.bindResource
      1. org.mule.transaction.AbstractSingleResourceTransaction.bindResource(AbstractSingleResourceTransaction.java:131)
      1 frame
    3. org.mule.providers
      AbstractConnector.send
      1. org.mule.providers.jms.JmsTransaction.bindResource(JmsTransaction.java:58)
      2. org.mule.providers.jms.JmsConnector.getSession(JmsConnector.java:470)
      3. org.mule.providers.jms.JmsConnector.getSession(JmsConnector.java:435)
      4. org.mule.providers.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:119)
      5. org.mule.providers.jms.JmsMessageDispatcher.doSend(JmsMessageDispatcher.java:316)
      6. org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:224)
      7. org.mule.providers.AbstractConnector.send(AbstractConnector.java:1605)
      7 frames
    4. org.mule.impl
      MuleSession.sendEvent
      1. org.mule.impl.ImmutableMuleEndpoint.send(ImmutableMuleEndpoint.java:920)
      2. org.mule.impl.MuleSession.sendEvent(MuleSession.java:327)
      3. org.mule.impl.MuleSession.sendEvent(MuleSession.java:209)
      3 frames
    5. Mule Core
      OutboundRouterCollection.route
      1. org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:121)
      2. org.mule.routing.outbound.FilteringOutboundRouter.route(FilteringOutboundRouter.java:67)
      3. org.mule.routing.outbound.OutboundPassThroughRouter.route(OutboundPassThroughRouter.java:81)
      4. org.mule.routing.outbound.OutboundRouterCollection$1.doInTransaction(OutboundRouterCollection.java:66)
      5. org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:40)
      6. org.mule.routing.outbound.OutboundRouterCollection.route(OutboundRouterCollection.java:71)
      6 frames
    6. org.mule.routing
      InboundRouterCollection.route
      1. org.mule.routing.inbound.ForwardingConsumer.process(ForwardingConsumer.java:51)
      2. org.mule.routing.inbound.InboundRouterCollection.route(InboundRouterCollection.java:86)
      2 frames
    7. org.mule.providers
      TransactedPollingMessageReceiver$1.doInTransaction
      1. org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:575)
      2. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:317)
      3. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:252)
      4. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:245)
      5. org.mule.providers.jms.TransactedJmsMessageReceiver.getMessages(TransactedJmsMessageReceiver.java:256)
      6. org.mule.providers.TransactedPollingMessageReceiver$1.doInTransaction(TransactedPollingMessageReceiver.java:92)
      6 frames
    8. Mule Core
      TransactionTemplate.execute
      1. org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:76)
      1 frame
    9. org.mule.providers
      TransactedJmsMessageReceiver.poll
      1. org.mule.providers.TransactedPollingMessageReceiver.poll(TransactedPollingMessageReceiver.java:103)
      2. org.mule.providers.jms.TransactedJmsMessageReceiver.poll(TransactedJmsMessageReceiver.java:163)
      2 frames