[jboss-jira] [JBoss JIRA] Closed: (JBREM-106) Adding a second push listener in a colocated config breaks both listeners
David Lloyd (JIRA)
jira-events at lists.jboss.org
Wed Sep 26 05:31:06 EDT 2007
[ http://jira.jboss.com/jira/browse/JBREM-106?page=all ]
David Lloyd closed JBREM-106.
-----------------------------
> Adding a second push listener in a colocated config breaks both listeners
> -------------------------------------------------------------------------
>
> Key: JBREM-106
> URL: http://jira.jboss.com/jira/browse/JBREM-106
> Project: JBoss Remoting
> Issue Type: Bug
> Components: callbacks
> Affects Versions: 1.2.0 final
> Environment: JDK 1.4.2_06
> Reporter: Ovidiu Feodorov
> Assigned To: Tom Elrod
> Attachments: MultipleListenersCoLocatedBug.java
>
>
> Adding a second push listener to a target server breaks the first listener (actually both of them). The bug shows up in a colocated environment, where the client, the callback server and the target server are in the same VM.
> I have attached a class (MultipleListenersColocatedBug.java) that compiled and ran demonstrates the bug. The main() method code and comments are self explanatory.
> Cause:
> Because of the colocated configuration, the ServerInvokerCallbackHandler corresponding to the first listener (that is correctly registered) uses a LocalClientInvoker to push callbacks to the callback server.
> When the second listener is registered, Client.addListener(InvokerCallbackHandler, InvokerLocator, Object) creates, connects and *disconnects* a client to ADDCLIENTLISTENER to the callback server.
> The temporary client uses the *same* LocalClientInvoker as the first ServerInvokerCallbackHandler. When the temporary client is disconnected, the ServerInvokerCallbackHandler's LocalClientInvoker is left dangling, hence the exception:
> Caused by: org.jboss.remoting.HandleCallbackException: Can not handle callback since can not connect to client invoker.
> at org.jboss.remoting.ServerInvokerCallbackHandler.handleCallback(ServerInvokerCallbackHandler.java:378)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list