javax.jms.JMSException: Peer (vm://localhost#1) disposed.

MuleSoft JIRA | Andrew Perepelytsya | 10 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Must be another quirk with AMQ 4.1.x This error is reproduced only if you employ JMS endpoints. To do that, copy the _test-data/out/BusinessException.xml_ into _test-data/in/_ directory. Now stop Mule (Ctrl-C). There's some shutdown deadlock in AMQ, provided. Wrapper eventually kills it after around 10 seconds because JVM didn't respond. Also, after sending a number of BusinessException.xml messages, shutdown revealed the following stacktrace: {code} ERROR 2007-04-12 21:45:50,437 [Thread-0] org.mule.providers.jms.activemq.ActiveMqJmsConnector: Failed to close jms session consumer javax.jms.JMSException: Peer (vm://localhost#1) disposed. at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:58) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1153) at org.apache.activemq.ActiveMQSession.close(ActiveMQSession.java:516) at org.mule.providers.jms.JmsConnector.close(JmsConnector.java:978) at org.mule.providers.jms.JmsConnector.closeQuietly(JmsConnector.java:992) at org.mule.providers.jms.SingleJmsMessageReceiver.closeConsumer(SingleJmsMessageReceiver.java:165) at org.mule.providers.jms.SingleJmsMessageReceiver.doDisconnect(SingleJmsMessageReceiver.java:73) at org.mule.providers.AbstractMessageReceiver.disconnect(AbstractMessageReceiver.java:439) at org.mule.providers.AbstractMessageReceiver.stop(AbstractMessageReceiver.java:471) at org.mule.providers.AbstractConnector.stopConnector(AbstractConnector.java:429) at org.mule.MuleManager.stopConnectors(MuleManager.java:1003) at org.mule.MuleManager.stop(MuleManager.java:971) at org.mule.MuleManager.dispose(MuleManager.java:419) at org.mule.MuleManager$ShutdownThread.run(MuleManager.java:1642) Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed. at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:86) at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:43) at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1151) ... 12 more ERROR 2007-04-12 21:45:50,484 [Thread-0] org.mule.providers.jms.activemq.ActiveMqJmsConnector: Failed to close jms session consumer javax.jms.JMSException: Peer (vm://localhost#1) disposed. at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:58) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1153) at org.apache.activemq.ActiveMQSession.close(ActiveMQSession.java:516) at org.mule.providers.jms.JmsConnector.close(JmsConnector.java:978) at org.mule.providers.jms.JmsConnector.closeQuietly(JmsConnector.java:992) at org.mule.providers.jms.SingleJmsMessageReceiver.closeConsumer(SingleJmsMessageReceiver.java:165) at org.mule.providers.jms.SingleJmsMessageReceiver.doDisconnect(SingleJmsMessageReceiver.java:73) at org.mule.providers.AbstractMessageReceiver.disconnect(AbstractMessageReceiver.java:439) at org.mule.providers.AbstractMessageReceiver.stop(AbstractMessageReceiver.java:471) at org.mule.providers.AbstractConnector.stopConnector(AbstractConnector.java:429) at org.mule.MuleManager.stopConnectors(MuleManager.java:1003) at org.mule.MuleManager.stop(MuleManager.java:971) at org.mule.MuleManager.dispose(MuleManager.java:419) at org.mule.MuleManager$ShutdownThread.run(MuleManager.java:1642) Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed. at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:86) at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:43) at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1151) ... 12 more {code} In this case there's no deadlock.

    MuleSoft JIRA | 10 years ago | Andrew Perepelytsya
    javax.jms.JMSException: Peer (vm://localhost#1) disposed.
  2. 0

    Must be another quirk with AMQ 4.1.x This error is reproduced only if you employ JMS endpoints. To do that, copy the _test-data/out/BusinessException.xml_ into _test-data/in/_ directory. Now stop Mule (Ctrl-C). There's some shutdown deadlock in AMQ, provided. Wrapper eventually kills it after around 10 seconds because JVM didn't respond. Also, after sending a number of BusinessException.xml messages, shutdown revealed the following stacktrace: {code} ERROR 2007-04-12 21:45:50,437 [Thread-0] org.mule.providers.jms.activemq.ActiveMqJmsConnector: Failed to close jms session consumer javax.jms.JMSException: Peer (vm://localhost#1) disposed. at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:58) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1153) at org.apache.activemq.ActiveMQSession.close(ActiveMQSession.java:516) at org.mule.providers.jms.JmsConnector.close(JmsConnector.java:978) at org.mule.providers.jms.JmsConnector.closeQuietly(JmsConnector.java:992) at org.mule.providers.jms.SingleJmsMessageReceiver.closeConsumer(SingleJmsMessageReceiver.java:165) at org.mule.providers.jms.SingleJmsMessageReceiver.doDisconnect(SingleJmsMessageReceiver.java:73) at org.mule.providers.AbstractMessageReceiver.disconnect(AbstractMessageReceiver.java:439) at org.mule.providers.AbstractMessageReceiver.stop(AbstractMessageReceiver.java:471) at org.mule.providers.AbstractConnector.stopConnector(AbstractConnector.java:429) at org.mule.MuleManager.stopConnectors(MuleManager.java:1003) at org.mule.MuleManager.stop(MuleManager.java:971) at org.mule.MuleManager.dispose(MuleManager.java:419) at org.mule.MuleManager$ShutdownThread.run(MuleManager.java:1642) Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed. at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:86) at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:43) at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1151) ... 12 more ERROR 2007-04-12 21:45:50,484 [Thread-0] org.mule.providers.jms.activemq.ActiveMqJmsConnector: Failed to close jms session consumer javax.jms.JMSException: Peer (vm://localhost#1) disposed. at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:58) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1153) at org.apache.activemq.ActiveMQSession.close(ActiveMQSession.java:516) at org.mule.providers.jms.JmsConnector.close(JmsConnector.java:978) at org.mule.providers.jms.JmsConnector.closeQuietly(JmsConnector.java:992) at org.mule.providers.jms.SingleJmsMessageReceiver.closeConsumer(SingleJmsMessageReceiver.java:165) at org.mule.providers.jms.SingleJmsMessageReceiver.doDisconnect(SingleJmsMessageReceiver.java:73) at org.mule.providers.AbstractMessageReceiver.disconnect(AbstractMessageReceiver.java:439) at org.mule.providers.AbstractMessageReceiver.stop(AbstractMessageReceiver.java:471) at org.mule.providers.AbstractConnector.stopConnector(AbstractConnector.java:429) at org.mule.MuleManager.stopConnectors(MuleManager.java:1003) at org.mule.MuleManager.stop(MuleManager.java:971) at org.mule.MuleManager.dispose(MuleManager.java:419) at org.mule.MuleManager$ShutdownThread.run(MuleManager.java:1642) Caused by: org.apache.activemq.transport.TransportDisposedIOException: Peer (vm://localhost#1) disposed. at org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:86) at org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:43) at org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60) at org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1151) ... 12 more {code} In this case there's no deadlock.

    MuleSoft JIRA | 10 years ago | Andrew Perepelytsya
    javax.jms.JMSException: Peer (vm://localhost#1) disposed.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Why my ActiveMQ is shutting down my Tomcat?

    Stack Overflow | 2 years ago | Edenshaw
    javax.jms.JMSException: Peer (vm://localhost#1) disposed.

    4 unregistered visitors
    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.apache.activemq.transport.TransportDisposedIOException

      Peer (vm://localhost#1) disposed.

      at org.apache.activemq.transport.vm.VMTransport.oneway()
    2. ActiveMQ :: Broker
      VMTransport.oneway
      1. org.apache.activemq.transport.vm.VMTransport.oneway(VMTransport.java:86)
      1 frame
    3. AMQ HTTP
      ResponseCorrelator.oneway
      1. org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:43)
      2. org.apache.activemq.transport.ResponseCorrelator.oneway(ResponseCorrelator.java:60)
      2 frames
    4. ActiveMQ :: Core
      ActiveMQSession.close
      1. org.apache.activemq.ActiveMQConnection.asyncSendPacket(ActiveMQConnection.java:1151)
      2. org.apache.activemq.ActiveMQSession.close(ActiveMQSession.java:516)
      2 frames
    5. org.mule.providers
      AbstractConnector.stopConnector
      1. org.mule.providers.jms.JmsConnector.close(JmsConnector.java:978)
      2. org.mule.providers.jms.JmsConnector.closeQuietly(JmsConnector.java:992)
      3. org.mule.providers.jms.SingleJmsMessageReceiver.closeConsumer(SingleJmsMessageReceiver.java:165)
      4. org.mule.providers.jms.SingleJmsMessageReceiver.doDisconnect(SingleJmsMessageReceiver.java:73)
      5. org.mule.providers.AbstractMessageReceiver.disconnect(AbstractMessageReceiver.java:439)
      6. org.mule.providers.AbstractMessageReceiver.stop(AbstractMessageReceiver.java:471)
      7. org.mule.providers.AbstractConnector.stopConnector(AbstractConnector.java:429)
      7 frames
    6. Mule Core
      MuleManager$ShutdownThread.run
      1. org.mule.MuleManager.stopConnectors(MuleManager.java:1003)
      2. org.mule.MuleManager.stop(MuleManager.java:971)
      3. org.mule.MuleManager.dispose(MuleManager.java:419)
      4. org.mule.MuleManager$ShutdownThread.run(MuleManager.java:1642)
      4 frames