Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1215 Resteasy 3 intermittent testsuite failures
  3. RESTEASY-1216

org.jboss.resteasy.test.xxe.TestXXE.testXXEWithExpansion fails due to IO error: java.net.SocketException

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Major Major
    • 3.0.13.Final
    • 3.0.12.Final
    • None
    • None

      org.jboss.resteasy.test.xxe.TestXXE.testXXEWithExpansion fails due to IO error: java.net.SocketException: Socket is closed in processing a request from /127.0.0.1:8081 / java.net.Socket

      Running org.jboss.resteasy.test.xxe.TestXXE
      KEEPALIVE!: true
      [Tue Aug 11 08:28:48 UTC 2015] Servlet for path '/' already defined and no default will be used.
      [Tue Aug 11 08:28:48 UTC 2015] TJWS httpd localhost - SimpleAcceptor ServerSocket[addr=localhost/127.0.0.1,localport=8081] is listening.
      <?xml version="1.0"?>
      <!DOCTYPE foo
      [<!ENTITY xxe SYSTEM "src/test/java/org/jboss/resteasy/test/xxe/testpasswd">
      ]>
      <search><user>&xxe;</user></search>
      name: search
      name: user
      name: xxe
      null
      result: null
      [Embedded Container Stop]
      [Tue Aug 11 08:28:48 UTC 2015] Accept: java.net.SocketException: Socket closed
      KEEPALIVE!: true
      [Tue Aug 11 08:28:48 UTC 2015] Servlet for path '/' already defined and no default will be used.
      [Tue Aug 11 08:28:48 UTC 2015] TJWS httpd localhost - SimpleAcceptor ServerSocket[addr=localhost/127.0.0.1,localport=8081] is listening.
      <?xml version="1.0"?>
      <!DOCTYPE foo
      [<!ENTITY xxe SYSTEM "src/test/java/org/jboss/resteasy/test/xxe/testpasswd">
      ]>
      <search><user>&xxe;</user></search>
      [Tue Aug 11 08:28:48 UTC 2015] IO error: java.net.SocketException: Socket is closed in processing a request from /127.0.0.1:8081 / java.net.Socket
      [Embedded Container Stop]
      [Tue Aug 11 08:28:48 UTC 2015] Accept: java.net.SocketException: Socket closed
      Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.024 sec <<< FAILURE! - in org.jboss.resteasy.test.xxe.TestXXE
      testXXEWithExpansion(org.jboss.resteasy.test.xxe.TestXXE)  Time elapsed: 0.013 sec  <<< ERROR!
      org.apache.http.NoHttpResponseException: localhost:8081 failed to respond
      	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
      	at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
      	at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260)
      	at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:283)
      	at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:251)
      	at org.apache.http.impl.conn.ManagedClientConnectionImpl.receiveResponseHeader(ManagedClientConnectionImpl.java:197)
      	at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)
      	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
      	at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:685)
      	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:487)
      	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
      	at org.jboss.resteasy.client.core.executors.ApacheHttpClient4Executor.execute(ApacheHttpClient4Executor.java:199)
      	at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:46)
      	at org.jboss.resteasy.plugins.interceptors.encoding.AcceptEncodingGZIPInterceptor.execute(AcceptEncodingGZIPInterceptor.java:40)
      	at org.jboss.resteasy.core.interception.ClientExecutionContextImpl.proceed(ClientExecutionContextImpl.java:52)
      	at org.jboss.resteasy.client.ClientRequest.execute(ClientRequest.java:444)
      	at org.jboss.resteasy.client.ClientRequest.httpMethod(ClientRequest.java:685)
      	at org.jboss.resteasy.client.ClientRequest.post(ClientRequest.java:569)
      	at org.jboss.resteasy.test.xxe.TestXXE.testXXEWithExpansion(TestXXE.java:108)
      

      https://s3.amazonaws.com/archive.travis-ci.org/jobs/75052064/log.txt

              weli@redhat.com Weinan Li
              chaowan@redhat.com Chao Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: