Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-15738

JMS Integration with Tibco causes deadlock while using DefaultMessageListenerContainer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.2.7
    • Fix Version/s: 4.3.10, 5.0 RC3
    • Component/s: JMS
    • Labels:
    • Last commented by a User:
      true

      Description

      I am facing this issue while using
      Spring-jms version 4.1.6
      tibjms version 6.3 (Tibco jar)

      When using a DefaultMessageListenerContainer, if there is an exception on established connection we intermittently get this deadlock issue.

      Please find following stack trace for more information.

      "clientResponseListener-16" - Thread [email protected]
      java.lang.Thread.State: BLOCKED
      at org.springframework.jms.connection.SingleConnectionFactory$SharedConnectionInvocationHandler.localStop(SingleConnectionFactory.java:640)

      • waiting to lock <1768ffa4> (a java.lang.Object) owned by "TIBCO EMS TCPLink Reader (Server-999487)" [email protected]
        at org.springframework.jms.connection.SingleConnectionFactory$SharedConnectionInvocationHandler.invoke(SingleConnectionFactory.java:573)
        at com.sun.proxy.$Proxy54.stop(Unknown Source)
        at org.springframework.jms.connection.SingleConnectionFactory$SharedConnectionInvocationHandler.localStop(SingleConnectionFactory.java:644)
      • locked <1ea19285> (a java.lang.Object)
        at org.springframework.jms.connection.SingleConnectionFactory$SharedConnectionInvocationHandler.invoke(SingleConnectionFactory.java:577)
        at com.sun.proxy.$Proxy54.close(Unknown Source)
        at org.springframework.jms.connection.ConnectionFactoryUtils.releaseConnection(ConnectionFactoryUtils.java:80)
        at org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:395)
      • locked <78213c8c> (a java.lang.Object)
        at org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:909)
        at org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:884)
        at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1055)
      • locked <5f74909f> (a java.lang.Object)
        at java.lang.Thread.run(Thread.java:745)

      Locked ownable synchronizers:

      • None

      "TIBCO EMS TCPLink Reader (Server-999487)" - Thread [email protected]
      java.lang.Thread.State: BLOCKED
      at org.springframework.jms.connection.SingleConnectionFactory$AggregatedExceptionListener.onException(SingleConnectionFactory.java:670)

      • waiting to lock <1ea19285> (a java.lang.Object) owned by "clientResponseListener-16" [email protected]
        at org.springframework.jms.connection.SingleConnectionFactory$AggregatedExceptionListener.onException(SingleConnectionFactory.java:671)
      • locked <1768ffa4> (a java.lang.Object)
        at com.tibco.tibjms.TibjmsConnection._invokeOnExceptionCallback(TibjmsConnection.java:2054)
        at com.tibco.tibjms.TibjmsConnection._onDisconnected(TibjmsConnection.java:2394)
        at com.tibco.tibjms.TibjmsConnection$ServerLinkEventHandler.onEventDisconnected(TibjmsConnection.java:349)
        at com.tibco.tibjms.TibjmsxLinkTcp$LinkReader.work(TibjmsxLinkTcp.java:330)
        at com.tibco.tibjms.TibjmsxLinkTcp$LinkReader.run(TibjmsxLinkTcp.java:259)

      Locked ownable synchronizers:

      • None

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              tanup02 Anup Tagalpallewar
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 45 weeks, 4 days ago