Mirror of Apache ActiveMQ
Go to file
Hiram R. Chirino 2984963912 If you have a multi-threaded client which share 1 connection to the broker it is possible you may have seen errors like:
2007-12-05 14:14:52,606 [VMTransport] ERROR - org.apache.activemq.broker.TransportConnection.Service - Async error occurred: java.lang.IllegalStateException: Cannot lookup a connection that had not been registered: ID:bubba-38184-1196882086290-2:1
java.lang.IllegalStateException: Cannot lookup a connection that had not been registered: ID:bubba-38184-1196882086290-2:1
at org.apache.activemq.broker.SingleTransportConnectionStateRegister.lookupConnectionState(SingleTransportConnectionStateRegister.java:113)
at org.apache.activemq.broker.TransportConnection.lookupConnectionState(TransportConnection.java:1313)
at org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:538)
at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:64)
at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:281)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:178)
at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:100)
at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:67)
at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:202)
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:118)
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:42)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)


root cause is that the client side has multiple threads calling close() on consumer/session and the connection objects. If the timing of those concurrent calls was just right, it is possible for the client to send the connection close message followed by a session or consumer close message which is invalid and would result in IllegalStateException reported by the broker.

- Simplified the ActiveMQConnection and TransportConnection shutdown so that this does does not happen.


git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@602529 13f79535-47bb-0310-9956-ffa450edef68
2007-12-08 18:56:11 +00:00
activemq-all Created an activemq-all.jar bundle 2007-07-13 05:45:09 +00:00
activemq-book Updated the pom version from 4.2-SNAPSHOT to 5.0-SNAPSHOT 2007-06-08 13:55:40 +00:00
activemq-console Added the ASL to a bunch of property files. 2007-09-27 13:35:43 +00:00
activemq-core If you have a multi-threaded client which share 1 connection to the broker it is possible you may have seen errors like: 2007-12-08 18:56:11 +00:00
activemq-fileserver Adding missing headers 2007-11-12 15:09:51 +00:00
activemq-jaas AMQ-1429: Package ActiveMQ as OSGi bundles instead of plain jars 2007-09-20 14:16:12 +00:00
activemq-jpa-store implement acknowledgeReference() for TopicReferenceStore 2007-10-15 19:29:59 +00:00
activemq-openwire-generator ActiveMQ is out of the incubator.. no need for DISCLAIMER.txt anymore 2007-09-20 14:13:23 +00:00
activemq-optional Rolled back HttpTransportFactory to fix compile issue 2007-09-28 22:00:03 +00:00
activemq-perftest ActiveMQ is out of the incubator.. no need for DISCLAIMER.txt anymore 2007-09-20 14:13:23 +00:00
activemq-ra ActiveMQ is out of the incubator.. no need for DISCLAIMER.txt anymore 2007-09-20 14:13:23 +00:00
activemq-rar ActiveMQ is out of the incubator.. no need for DISCLAIMER.txt anymore 2007-09-20 14:13:23 +00:00
activemq-repository-builder Updated the pom version from 4.2-SNAPSHOT to 5.0-SNAPSHOT 2007-06-08 13:55:40 +00:00
activemq-soaktest ActiveMQ is out of the incubator.. no need for DISCLAIMER.txt anymore 2007-09-20 14:13:23 +00:00
activemq-systest ActiveMQ is out of the incubator.. no need for DISCLAIMER.txt anymore 2007-09-20 14:13:23 +00:00
activemq-test-atomikos Last set of checkstyle violation fixes 2007-08-12 05:27:21 +00:00
activemq-tooling Adding missing headers 2007-11-12 15:09:51 +00:00
activemq-web Added the ASL to a bunch of property files. 2007-09-27 13:35:43 +00:00
activemq-web-console updates for https://issues.apache.org/activemq/browse/AMQ-1358 2007-10-18 09:09:12 +00:00
activemq-web-demo Glen Mazza pointed out a little typo 2007-11-29 15:51:48 +00:00
activemq-xmpp Added the ASL to a bunch of property files. 2007-09-27 13:35:43 +00:00
assembly Adding missing headers 2007-11-12 15:09:51 +00:00
etc/css Adding missing headers 2007-11-12 15:09:51 +00:00
KEYS Added my gpg public key to the key file. If you are going to be doing releases, you should do the same. 2006-02-16 04:07:41 +00:00
LICENSE.txt did some more svn:eol-style property setting 2006-02-21 23:28:33 +00:00
NOTICE.txt Set the eol-style 2006-11-14 21:02:18 +00:00
README.txt Fix incubator links in the README 2007-02-07 00:09:05 +00:00
doap.rdf updated DOAP file post-graduation 2007-02-12 11:50:26 +00:00
pom.xml upgraded to 1.2.0 release of camel 2007-10-19 12:32:51 +00:00

README.txt

Welcome to Apache ActiveMQ 
=================== 
Apache ActiveMQ is a high performance Apache 2.0 licensed Message Broker and JMS 1.1 implementation.


Getting Started
===============
To help you get started, try the following links:-

Getting Started
http://activemq.apache.org/getting-started.html

Building
http://activemq.apache.org/getting-started.html#GettingStarted-WindowsSourceInstallation
http://activemq.apache.org/getting-started.html#GettingStarted-UnixSourceInstallation

Examples
http://activemq.apache.org/examples.html

We welcome contributions of all kinds, for details of how you can help
http://activemq.apache.org/contributing.html

Please refer to the website for details of finding the issue tracker, email lists, wiki or IRC channel
http://activemq.apache.org/

Please help us make Apache ActiveMQ better - we appreciate any feedback you may have.
Enjoy!

------------------------
The Apache ActiveMQ team