activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Justin Pitts (JIRA)" <j...@apache.org>
Subject [jira] Created: (AMQ-2199) Race condition during broker start on brokerid
Date Wed, 08 Apr 2009 03:17:36 GMT
Race condition during broker start on brokerid
----------------------------------------------

                 Key: AMQ-2199
                 URL: https://issues.apache.org/activemq/browse/AMQ-2199
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.2.0, 5.1.0
         Environment: Debian 5 x86 / vmware esx
            Reporter: Justin Pitts


I have a configuration where I first start application A with an embedded broker that not
initiating any broker-to-broker connections.
Then, in rapid succession, I start applications B, C, and D, all with embedded brokers that
are initiating broker-to-broker connections only to A. Often, this is all on the same machine.

I commonly - but not always - see the following: (this stack trace is 5.1. I have seen this
issue on 5.2 also)

java.lang.NullPointerException
        at org.apache.activemq.network.DemandForwardingBridgeSupport.contains(DemandForwardingBridgeSupport.java:748)
        at org.apache.activemq.network.DemandForwardingBridgeSupport.serviceRemoteConsumerAdvisory(DemandForwardingBridgeSupport.java:471)
        at org.apache.activemq.network.DemandForwardingBridgeSupport.serviceRemoteCommand(DemandForwardingBridgeSupport.java:416)
        at org.apache.activemq.network.DemandForwardingBridgeSupport$2.onCommand(DemandForwardingBridgeSupport.java:154)
        at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:104)
        at org.apache.activemq.transport.TransportFilter.onCommand(TransportFilter.java:68)
        at org.apache.activemq.transport.WireFormatNegotiator.onCommand(WireFormatNegotiator.java:143)
        at org.apache.activemq.transport.InactivityMonitor.onCommand(InactivityMonitor.java:206)
        at org.apache.activemq.transport.TransportSupport.doConsume(TransportSupport.java:84)
        at org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:196)
        at org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:183)
        at java.lang.Thread.run(Thread.java:619) 

The brokerId field is null. I don't see where localBrokerPath[0] is ever set to anything but
null.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message