[jboss-jira] [JBoss JIRA] Commented: (JBMESSAGING-1278) Dead lock on Message Bridge when TargetConnection fails

Clebert Suconic (JIRA) jira-events at lists.jboss.org
Wed Apr 23 19:37:10 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBMESSAGING-1278?page=comments#action_12410406 ] 
            
Clebert Suconic commented on JBMESSAGING-1278:
----------------------------------------------

I have been trying without much (any) success to replicate this issue.


I have been playing with a testcase, but the dead lock never happens. It is aways using a different thread on remoting to close the connection, however I do see the possibility of this happening.


I'm changing our code to close Connection on a different thread, and I will keep the testcase I have produced.

> Dead lock on Message Bridge when TargetConnection fails
> -------------------------------------------------------
>
>                 Key: JBMESSAGING-1278
>                 URL: http://jira.jboss.com/jira/browse/JBMESSAGING-1278
>             Project: JBoss Messaging
>          Issue Type: Bug
>          Components: Messaging Core
>    Affects Versions: 1.4.1.CR1
>            Reporter: Clebert Suconic
>         Assigned To: Clebert Suconic
>             Fix For: Stable branch
>
>
> Thread-278" prio=10 tid=0x092e4800 nid=0x6b6b waiting for monitor entry [0xc4fc4000..0xc4fc4e30]
>    java.lang.Thread.State: BLOCKED (on object monitor)
> 	at org.jboss.remoting.Connect0xce8b25e0ionValidator.doStop(ConnectionValidator.java:526)
> 	- waiting to lock <0xce8b25e0> (a java.lang.Object)
> 	at org.jboss.remoting.ConnectionValidator.stop(ConnectionValidator.java:252)
> 	at org.jboss.remoting.ConnectionValidator.removeConnectionListener(ConnectionValidator.java:344)
> 	- locked <0xce89f508> (a java.util.ArrayList)
> 	at org.jboss.remoting.Client.removeConnectionListener(Client.java:398)
> 	at org.jboss.jms.client.remoting.JMSRemotingConnection.removeConnectionListener(JMSRemotingConnection.java:493)
> 	- locked <0xce8b18c8> (a org.jboss.jms.client.remoting.JMSRemotingConnection)
> 	at org.jboss.jms.client.container.ConnectionAspect.handleClose(ConnectionAspect.java:184)
> 	at sun.reflect.GeneratedMethodAccessor134.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.jboss.aop.advice.PerInstanceAdvice.invoke(PerInstanceAdvice.java:121)
> 	at org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
> 	at org.jboss.jms.client.container.FailoverValveInterceptor.invoke(FailoverValveInterceptor.java:92)
> 	at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
> 	at org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
> 	at org.jboss.jms.client.container.ClosedInterceptor.invoke(ClosedInterceptor.java:170)
> 	at org.jboss.aop.advice.PerInstanceInterceptor.invoke(PerInstanceInterceptor.java:105)
> 	at org.jboss.jms.client.delegate.ClientConnectionDelegate$close_N4742752445160157748.invokeNext(ClientConnectionDelegate$close_N4742752445160157748.java)
> 	at org.jboss.jms.client.delegate.ClientConnectionDelegate.close(ClientConnectionDelegate.java)
> 	at org.jboss.jms.client.JBossConnection.close(JBossConnection.java:132)
> 	at org.jboss.jms.server.bridge.Bridge.cleanup(Bridge.java:1098)
> 	at org.jboss.jms.server.bridge.Bridge.access$1100(Bridge.java:66)
> 	at org.jboss.jms.server.bridge.Bridge$FailureHandler.run(Bridge.java:1496)
> 	at java.lang.Thread.run(Thread.java:619)
> "Timer-4" daemon prio=10 tid=0xc6ccc800 nid=0x2bd6 waiting for monitor entry [0xc5fdb000..0xc5fdbeb0]
>    java.lang.Thread.State: BLOCKED (on object monitor)
> 	at org.jboss.remoting.ConnectionValidator.notifyListeners(ConnectionValidator.java:553)
> 	- waiting to lock <0xce89f508> (a java.util.ArrayList)
> 	at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:286)
> 	- locked <0xce8b25e0> (a java.lang.Object)
> 	at java.util.TimerThread.mainLoop(Timer.java:512)
> 	at java.util.TimerThread.run(Timer.java:462)

-- 
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