Issue Details (XML | Word | Printable)

Key: MULE-2696
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Daniel Feist
Reporter: Travis Carlson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Mule

LoanBroker ESB throws org.apache.activemq.transport.TransportDisposedIOException when exiting

Created: 16/Nov/07 09:36 AM   Updated: 29/Apr/08 10:25 PM
Component/s: Examples / Tutorials
Affects Version/s: 1.4.3, 2.0.0-M2
Fix Version/s: 2.0.0-RC1

Time Tracking:
Not Specified

Issue Links:
Related

Labels:
User impact: High
Log Output:
[1] make a loan request
[2] send 100 random requests
[3] send X random requests
[q] quit

Please make your selection:
q
Exiting now
ERROR 2007-11-16 12:29:08,680 [jmsConnector.dispatcher.8] org.mule.providers.jms.activemq.ActiveMQJmsConnector: Failed to close jms message producer
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.asyncSendPacket(ActiveMQSession.java:1648)
        at org.apache.activemq.ActiveMQMessageProducer.close(ActiveMQMessageProducer.java:315)
        at org.mule.providers.jms.JmsConnector.close(JmsConnector.java:538)
        at org.mule.providers.jms.JmsConnector.closeQuietly(JmsConnector.java:552)
        at org.mule.providers.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:301)
        at org.mule.providers.jms.JmsMessageDispatcher.doDispatch(JmsMessageDispatcher.java:63)
        at org.mule.providers.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:579)
        at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Thread.java:534)
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)
        ... 11 more
ERROR 2007-11-16 12:29:08,685 [jmsConnector.dispatcher.8] org.mule.providers.jms.activemq.ActiveMQJmsConnector: Failed to close jms message consumer
javax.jms.JMSException: Peer (vm://localhost#1) disposed.
        at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:58)
        at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1181)
        at org.apache.activemq.ActiveMQSession.syncSendPacket(ActiveMQSession.java:1660)
        at org.apache.activemq.ActiveMQMessageConsumer.close(ActiveMQMessageConsumer.java:541)
        at org.mule.providers.jms.JmsConnector.close(JmsConnector.java:570)
        at org.mule.providers.jms.JmsConnector.closeQuietly(JmsConnector.java:584)
        at org.mule.providers.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:302)
        at org.mule.providers.jms.JmsMessageDispatcher.doDispatch(JmsMessageDispatcher.java:63)
        at org.mule.providers.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:579)
        at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Thread.java:534)
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.asyncRequest(ResponseCorrelator.java:69)
        at org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:74)
        at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1171)
        ... 11 more
INFO 2007-11-16 12:29:08,686 [jmsConnector.dispatcher.8] org.mule.providers.jms.activemq.ActiveMQJmsConnector: Faled to delete a temporary queue {0} Reason: Peer (vm://localhost#1) disposed.
ERROR 2007-11-16 12:29:08,686 [jmsConnector.dispatcher.8] 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.apache.activemq.ActiveMQQueueSession.close(ActiveMQQueueSession.java:68)
        at org.mule.providers.jms.JmsConnector.close(JmsConnector.java:602)
        at org.mule.providers.jms.JmsConnector.closeQuietly(JmsConnector.java:616)
        at org.mule.providers.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:323)
        at org.mule.providers.jms.JmsMessageDispatcher.doDispatch(JmsMessageDispatcher.java:63)
        at org.mule.providers.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:579)
        at org.mule.impl.work.WorkerContext.run(WorkerContext.java:310)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
        at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
        at java.lang.Thread.run(Thread.java:534)
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)
        ... 11 more
<-- Wrapper Stopped


 Description  « Hide
Looks pretty similar to MULE-1875, but the exception is different and it now occurs when running the example itself, not just the test case.

 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Daniel Feist added a comment - 16/Nov/07 04:20 PM
User experiencing same problem with his own config file here: http://www.nabble.com/javax.jms.JMSException:-Peer-(vm:--localhost-1)-disposed-t4479930.html

Travis Carlson added a comment - 19/Nov/07 06:08 AM
User has reported this error against Mule 1.4 ("Environment: Windows-XP, Mule1.4, Apache Activemq1.0")

Travis Carlson added a comment - 19/Nov/07 06:10 AM
What I find odd is that the exception occurs within JmsConnector.closeQuietly().
I thought the purpose of the closeQuietly() method was to "quietly" swallow any exception while closing?

Andrew Perepelytsya added a comment - 19/Nov/07 08:27 AM
Travis, double-check the code, the error is just logged.

Travis Carlson added a comment - 19/Nov/07 09:34 AM
Just built the distro from trunk to see if the same behavior occurs there, but the example doesn't even start up (MULE-2707) so that wasn't very helpful.

Daniel Feist added a comment - 22/Nov/07 06:37 AM
I still get MULE-1875 when running test case.

But i can't reproduce this error with the loanbroker example in the distribution. I'm at r9808 on Mac OS X and java version "1.4.2_16".


Travis Carlson added a comment - 22/Nov/07 10:29 AM
I can't reproduce it either. Must have gotten fixed in trunk (1.x).