WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

On wlp22.0.0.8 or later, a web service request started to fail with "java.net.SocketException: Unexpected end of file from server" occasionally.

  • 1.  On wlp22.0.0.8 or later, a web service request started to fail with "java.net.SocketException: Unexpected end of file from server" occasionally.

    Posted Sun August 27, 2023 09:10 PM
    The error looks like the response data is malformed, but I'm sure this is like a timing issue.

    Error Stack:
    ```
    Caused by: java.net.SocketException: Unexpected end of file from server
    at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:884)
    at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:709)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1619)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1524)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:491)
    at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:424)
    at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream$2.run(URLConnectionHTTPConduit.java:420)
    at java.security.AccessController.doPrivileged(AccessController.java:747)
    at org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream.getResponseCode(URLConnectionHTTPConduit.java:420)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.doProcessResponseCode(HTTPConduit.java:1659)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1687)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1632)
    at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1424)
    ... 41 more
    ```

    * Topology *
    WebService requester/wlp --- forward proxy(IHS) --- WebService provider/wlp


    ------------------------------
    Yoshiki Yamada
    IBM Japan
    ------------------------------


  • 2.  RE: On wlp22.0.0.8 or later, a web service request started to fail with "java.net.SocketException: Unexpected end of file from server" occasionally.
    Best Answer

    Posted Sun August 27, 2023 09:10 PM
    This is a known issue fixed in
    https://github.com/OpenLiberty/open-liberty/issues/25866


    ------------------------------
    Yoshiki Yamada
    IBM Japan
    ------------------------------