You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Alex_ynr <su...@gmail.com> on 2007/10/10 15:02:27 UTC

Async error occurred: java.lang.IllegalStateException: Cannot add a consumer to a session that had not been registered:

We slightly discussed this issue in another thread (about a different issue)
so in order to not hijack it, I created a new one.

This error comes up when trying to set up a duplex networkConnector between
2 ActiveMQ brokers.

In this specific case, I am running Fuse 3.3.

Clean install on both machines, set up activemq peristence to mysql and ran
both brokers with the default settings. Both come up with no errors at all.

As soon as I add the networkConnector from one to the other:

<amq:networkConnector  uri="static://(failover:tcp://X.X.X.X:61616)"
duplex="true" dynamicOnly="false" networkTTL="4"/>

(IP hidden)
I get the error above on the broker initiating the connection and: "Network
connection between vm://broker1#0 and tcp:///X.X.X.X:50451 shutdown due to a
remote error: java.io.EOFException" on the other broker.

Following these 2 errors, broker 1 tries to reconnect and I get a whole
bunch of:

- Async error occurred: javax.jms.InvalidClientIDException: Broker: broker1-
Client: NC_broker2_inboundbroker1 already connected from vm://broker1#0

and similar errors on both Brokers...

Any ideas?
-- 
View this message in context: http://www.nabble.com/Async-error-occurred%3A-java.lang.IllegalStateException%3A-Cannot-add-a-consumer-to-a-session-that-had-not-been-registered%3A-tf4600612s2354.html#a13135327
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Async error occurred: java.lang.IllegalStateException: Cannot add a consumer to a session that had not been registered:

Posted by Alex_ynr <su...@gmail.com>.
Cool, that's great!

Do you know of a workaround in the meantime? 


rajdavies wrote:
> 
> I'm in the middle of fixing this
> On Oct 10, 2007, at 2:02 PM, Alex_ynr wrote:
> 
>>
>> We slightly discussed this issue in another thread (about a  
>> different issue)
>> so in order to not hijack it, I created a new one.
>>
>> This error comes up when trying to set up a duplex networkConnector  
>> between
>> 2 ActiveMQ brokers.
>>
>> In this specific case, I am running Fuse 3.3.
>>
>> Clean install on both machines, set up activemq peristence to mysql  
>> and ran
>> both brokers with the default settings. Both come up with no errors  
>> at all.
>>
>> As soon as I add the networkConnector from one to the other:
>>
>> <amq:networkConnector  uri="static://(failover:tcp://X.X.X.X:61616)"
>> duplex="true" dynamicOnly="false" networkTTL="4"/>
>>
>> (IP hidden)
>> I get the error above on the broker initiating the connection and:  
>> "Network
>> connection between vm://broker1#0 and tcp:///X.X.X.X:50451 shutdown  
>> due to a
>> remote error: java.io.EOFException" on the other broker.
>>
>> Following these 2 errors, broker 1 tries to reconnect and I get a  
>> whole
>> bunch of:
>>
>> - Async error occurred: javax.jms.InvalidClientIDException: Broker:  
>> broker1-
>> Client: NC_broker2_inboundbroker1 already connected from vm:// 
>> broker1#0
>>
>> and similar errors on both Brokers...
>>
>> Any ideas?
>> -- 
>> View this message in context: http://www.nabble.com/Async-error- 
>> occurred%3A-java.lang.IllegalStateException%3A-Cannot-add-a- 
>> consumer-to-a-session-that-had-not-been-registered%3A- 
>> tf4600612s2354.html#a13135327
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Async-error-occurred%3A-java.lang.IllegalStateException%3A-Cannot-add-a-consumer-to-a-session-that-had-not-been-registered%3A-tf4600612s2354.html#a13136171
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Async error occurred: java.lang.IllegalStateException: Cannot add a consumer to a session that had not been registered:

Posted by Rob Davies <ra...@gmail.com>.
I'm in the middle of fixing this
On Oct 10, 2007, at 2:02 PM, Alex_ynr wrote:

>
> We slightly discussed this issue in another thread (about a  
> different issue)
> so in order to not hijack it, I created a new one.
>
> This error comes up when trying to set up a duplex networkConnector  
> between
> 2 ActiveMQ brokers.
>
> In this specific case, I am running Fuse 3.3.
>
> Clean install on both machines, set up activemq peristence to mysql  
> and ran
> both brokers with the default settings. Both come up with no errors  
> at all.
>
> As soon as I add the networkConnector from one to the other:
>
> <amq:networkConnector  uri="static://(failover:tcp://X.X.X.X:61616)"
> duplex="true" dynamicOnly="false" networkTTL="4"/>
>
> (IP hidden)
> I get the error above on the broker initiating the connection and:  
> "Network
> connection between vm://broker1#0 and tcp:///X.X.X.X:50451 shutdown  
> due to a
> remote error: java.io.EOFException" on the other broker.
>
> Following these 2 errors, broker 1 tries to reconnect and I get a  
> whole
> bunch of:
>
> - Async error occurred: javax.jms.InvalidClientIDException: Broker:  
> broker1-
> Client: NC_broker2_inboundbroker1 already connected from vm:// 
> broker1#0
>
> and similar errors on both Brokers...
>
> Any ideas?
> -- 
> View this message in context: http://www.nabble.com/Async-error- 
> occurred%3A-java.lang.IllegalStateException%3A-Cannot-add-a- 
> consumer-to-a-session-that-had-not-been-registered%3A- 
> tf4600612s2354.html#a13135327
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>