JBoss deadlocks between MicroRemoteClientInvoker.establishLease and Client.notifyListeners

Solution Verified - Updated -

Issue

  • JBoss becomes unresponsive with threads deadlocked like the following:
"Thread-1":
    at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:507)
    - waiting to lock <0xfffffd7cb87677c0> (a java.lang.Object)
    at org.jboss.remoting.Client.setupClientLease(Client.java:2056)
    - locked <0xfffffd7cb8443b08> (a java.lang.Object)
    at org.jboss.remoting.Client.connect(Client.java:1918)
    at org.jboss.remoting.Client.connect(Client.java:737)
    at org.jboss.jms.client.remoting.JMSRemotingConnection$1.run(JMSRemotingConnection.java:374)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.jboss.jms.client.remoting.JMSRemotingConnection.start(JMSRemotingConnection.java:368)
    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.org$jboss$jms$client$delegate$ClientConnectionFactoryDelegate$createConnectionDelegate$aop(ClientConnectionFactoryDelegate.java:175)
    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.invokeTarget(ClientConnectionFactoryDelegate$createConnectionDelegate_N3019492359065420858.java)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:111)
    at org.jboss.jms.client.container.StateCreationAspect.handleCreateConnectionDelegate(StateCreationAspect.java:80)
    at org.jboss.aop.advice.org.jboss.jms.client.container.StateCreationAspect_z_handleCreateConnectionDelegate_132715097.invoke(StateCreationAspect_z_handleCreateConnectionDelegate_132715097.java)
    at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)
    at org.jboss.jms.client.delegate.ClientConnectionFactoryDelegate.createConnectionDelegate(ClientConnectionFactoryDelegate.java)
    at org.jboss.jms.client.JBossConnectionFactory.createConnectionInternal(JBossConnectionFactory.java:205)
    at org.jboss.jms.client.JBossConnectionFactory.createTopicConnection(JBossConnectionFactory.java:115)
        ...
    at java.lang.Thread.run(Thread.java:662)
"Timer-1":
    at org.jboss.remoting.Client.notifyListeners(Client.java:1873)
    - waiting to lock <0xfffffd7cb8443b08> (a java.lang.Object)
    at org.jboss.remoting.LeasePinger.stopPing(LeasePinger.java:134)
    at org.jboss.remoting.MicroRemoteClientInvoker.terminateLease(MicroRemoteClientInvoker.java:434)
    - locked <0xfffffd7cb87677c0> (a java.lang.Object)
    at org.jboss.remoting.ConnectionValidator$WaitOnConnectionCheckTimerTask.run(ConnectionValidator.java:1081)
    at java.util.TimerThread.mainLoop(Timer.java:512)
    at java.util.TimerThread.run(Timer.java:462)

Environment

  • JBoss Enterprise Application Platform (EAP)
  • JBoss SOA-P 5.3.0 and earlier

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content