Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7225

Security demos throw SocketTimeoutException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.0.12
    • None
    • Samples, STS
    • None
    • Linux RedHat7.2/JDK8

    • Unknown

    Description

      Couple of cxf 3.0.12 security demos are throwing following similar exception on Linux with JDK 8
      e.g this is STS demo client -

      client:
      [java] Invoking greetMe...
      [java] Jan 19, 2017 4:54:43 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
      [java] WARNING: Interceptor for

      {http://docs.oasis-open.org/ws-sx/ws-trust/200512/}

      SecurityTokenService#

      {http://docs.oasis-open.org/ws-sx/ws-trust/200512/}

      Issue has thrown exception, unwinding now
      [java] org.apache.cxf.interceptor.Fault: Could not send Message.
      [java] at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
      [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
      [java] at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
      [java] at org.apache.cxf.ws.security.trust.AbstractSTSClient.issue(AbstractSTSClient.java:849)
      [java] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:61)
      [java] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:55)
      [java] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:51)
      [java] at org.apache.cxf.ws.security.policy.interceptors.IssuedTokenInterceptorProvider$IssuedTokenOutInterceptor.getTokenFromSTS(IssuedTokenInterceptorProvider.java:397)
      [java] at org.apache.cxf.ws.security.policy.interceptors.IssuedTokenInterceptorProvider$IssuedTokenOutInterceptor.issueToken(IssuedTokenInterceptorProvider.java:531)
      [java] at org.apache.cxf.ws.security.policy.interceptors.IssuedTokenInterceptorProvider$IssuedTokenOutInterceptor.handleMessage(IssuedTokenInterceptorProvider.java:165)
      [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
      [java] at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
      [java] at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
      [java] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138)
      [java] at com.sun.proxy.$Proxy35.greetMe(Unknown Source)
      [java] at demo.wssec.client.Client.main(Client.java:77)
      [java] Caused by: java.net.SocketTimeoutException: SocketTimeoutException invoking http://localhost:8080/SecurityTokenService/UT: Read timed out
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1377)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1361)
      [java] at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
      [java] at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651)
      [java] at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
      [java] ... 21 more
      [java] Caused by: java.net.SocketTimeoutException: Read timed out
      [java] at java.net.SocketInputStream.socketRead0(Native Method)
      [java] at java.net.SocketInputStream.read(SocketInputStream.java:152)
      [java] at java.net.SocketInputStream.read(SocketInputStream.java:122)
      [java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
      [java] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
      [java] at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
      [java] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
      [java] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
      [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1324)
      [java] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
      [java] at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:332)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1581)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1610)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1551)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1348)
      [java] ... 24 more
      [java]
      [java] Jan 19, 2017 4:54:43 PM org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging
      [java] WARNING: Interceptor for

      {http://apache.org/hello_world_soap_http}

      SOAPService#

      {http://apache.org/hello_world_soap_http}

      greetMe has thrown exception, unwinding now
      [java] org.apache.cxf.interceptor.Fault: Could not send Message.
      [java] at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
      [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
      [java] at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
      [java] at org.apache.cxf.ws.security.trust.AbstractSTSClient.issue(AbstractSTSClient.java:849)
      [java] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:61)
      [java] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:55)
      [java] at org.apache.cxf.ws.security.trust.STSClient.requestSecurityToken(STSClient.java:51)
      [java] at org.apache.cxf.ws.security.policy.interceptors.IssuedTokenInterceptorProvider$IssuedTokenOutInterceptor.getTokenFromSTS(IssuedTokenInterceptorProvider.java:397)
      [java] at org.apache.cxf.ws.security.policy.interceptors.IssuedTokenInterceptorProvider$IssuedTokenOutInterceptor.issueToken(IssuedTokenInterceptorProvider.java:531)
      [java] at org.apache.cxf.ws.security.policy.interceptors.IssuedTokenInterceptorProvider$IssuedTokenOutInterceptor.handleMessage(IssuedTokenInterceptorProvider.java:165)
      [java] at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
      [java] at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
      [java] at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
      [java] at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
      [java] at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:138)
      [java] at com.sun.proxy.$Proxy35.greetMe(Unknown Source)
      [java] at demo.wssec.client.Client.main(Client.java:77)
      [java] Caused by: java.net.SocketTimeoutException: SocketTimeoutException invoking http://localhost:8080/SecurityTokenService/UT: Read timed out
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.mapException(HTTPConduit.java:1377)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1361)
      [java] at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
      [java] at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:651)
      [java] at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
      [java] ... 21 more
      [java] Caused by: java.net.SocketTimeoutException: Read timed out
      [java] at java.net.SocketInputStream.socketRead0(Native Method)
      [java] at java.net.SocketInputStream.read(SocketInputStream.java:152)
      [java] at java.net.SocketInputStream.read(SocketInputStream.java:122)
      [java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
      [java] at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
      [java] at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
      [java] at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)
      [java] at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)
      [java] at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1324)
      [java] at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
      [java] at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:332)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1581)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1610)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1551)
      [java] at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1348)
      [java] ... 24 more
      [java]
      [java] Invocation failed with the following: java.net.SocketTimeoutException: SocketTimeoutException invoking http://localhost:8080/SecurityTokenService/UT: Read timed out
      [java]
      BUILD SUCCESSFUL
      Total time: 1 minute 45 seconds

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            gpache Guopu Wu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: