Uploaded image for project: 'WildFly EJB HTTP Client'
  1. WildFly EJB HTTP Client
  2. WEJBHTTP-29

WildFlyClientInputStream hangs on close

    XMLWordPrintable

Details

    Description

      When dealing with an exception returned as a response from the server, WildFlyResponseClient hangs and the EJB client never receives the response:

      "XNIO-1 task-8" #20 daemon prio=5 os_prio=0 tid=0x00007ff268159800 nid=0x6a71 in Object.wait() [0x00007ff25fbfa000]
         java.lang.Thread.State: WAITING (on object monitor)
         JavaThread state: _thread_blocked
      Thread: 0x00007ff268159800  [0x6a71] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
         JavaThread state: _thread_blocked
      	at java.lang.Object.wait(Native Method)
      	- waiting on <0x00000007706d9f48> (a java.lang.Object)
      	at java.lang.Object.wait(Object.java:502)
      	at org.wildfly.httpclient.common.WildflyClientInputStream.close(WildflyClientInputStream.java:189)
      	- locked <0x00000007706d9f48> (a java.lang.Object)
      	at org.wildfly.httpclient.common.HttpTargetContext$1$1.lambda$completed$4(HttpTargetContext.java:268)
      	at org.wildfly.httpclient.common.HttpTargetContext$1$1$$Lambda$82/41196682.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      
         Locked ownable synchronizers:
      	- <0x0000000770633d88> (a java.util.concurrent.ThreadPoolExecutor$Worker)
      
      "XNIO-1 I/O-1" #11 daemon prio=5 os_prio=0 tid=0x00007ff2dc8ac000 nid=0x6a53 runnable [0x00007ff2c813c000]
         java.lang.Thread.State: RUNNABLE
         JavaThread state: _thread_blocked
      Thread: 0x00007ff2dc8ac000  [0x6a53] State: _call_back _has_called_back 1 _at_poll_safepoint 0
         JavaThread state: _thread_blocked
      	at org.wildfly.httpclient.common.WildflyClientInputStream$1.handleEvent(WildflyClientInputStream.java:47)
      	at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      	at io.undertow.server.protocol.framed.AbstractFramedStreamSourceChannel$1.run(AbstractFramedStreamSourceChannel.java:282)
      	at io.undertow.server.protocol.framed.AbstractFramedChannel$3.run(AbstractFramedChannel.java:231)
      	at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:592)
      	at org.xnio.nio.WorkerThread.run(WorkerThread.java:472)
      
         Locked ownable synchronizers:
      	- None
      "main" #1 prio=5 os_prio=0 tid=0x00007ff2dc052800 nid=0x6a39 in Object.wait() [0x00007ff2e4a32000]
         java.lang.Thread.State: WAITING (on object monitor)
         JavaThread state: _thread_blocked
      Thread: 0x00007ff2dc052800  [0x6a39] State: _at_safepoint _has_called_back 0 _at_poll_safepoint 0
         JavaThread state: _thread_blocked
      	at java.lang.Object.wait(Native Method)
      	- waiting on <0x0000000774120920> (a java.lang.Object)
      	at java.lang.Object.wait(Object.java:502)
      	at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:891)
      	- locked <0x0000000774120920> (a java.lang.Object)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:177)
      	at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
      	at com.sun.proxy.$Proxy2.remove(Unknown Source)
      	at xx.xxx.xx.xxxxxxxxxx.HttpConnectionReproducerClient.main(HttpConnectionReproducerClient.java:48)
      
         Locked ownable synchronizers:
      	- None
      

      Attachments

        Issue Links

          Activity

            People

              sdouglas1@redhat.com Stuart Douglas
              flaviarnn Flavia Rainone
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: