IBM Support

IV92781: INCORRECT ERROR REPORTED FROM JAVA.NET.SOCKETINPUTSTREAM.READ() AND JAVA.NET.SOCKETOUTPUTSTREAM.WRITE()

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: "java/net/SocketException" "Unrecognized Windows
    Sockets error: 0: recv failed" received
     at java/net/SocketInputStream.socketRead0(Nativ Method)
     at java/net/SocketInputStream.socketRead(Bytecode PC:8)
     at java/net/SocketInputStream.read(Bytecode PC:79)
     at java/net/SocketInputStream.read(Bytecode PC:11)
     at java/io/BufferedInputStream.fill(Bytecode PC:214(Compiled
    Code))
     at java/io/BufferedInputStream.read(Bytecode PC:12(Compiled
    Code))
    and
    "java/net/SocketException" "Unrecognized Windows Sockets error:
    0: socket write error" received
     at java/net/SocketOutputStream.socketWrite0(Native Method)
     at java/net/SocketOutputStream.socketWrite(Bytecode PC:44)
     at java/net/SocketOutputStream.write(Bytecode PC:4)
    .
    When socket errors such as "Connection reset by peer" or
    "Connection timed out" occur, JDK incorrectly reports the error
    as "Unrecognized Windows Sockets error: 0", on Windows platform.
    

Local fix

Problem summary

  • The errno can be overwritten by the status code of the
    succeeding system call and it can result in an incorrect error
    number if WSAGetLastError() is used to print the errno
    later after another system call instead
    of saving the errno immediately after the system call.
    

Problem conclusion

  • The JDK has been updated to save the errno immediately after the
    system call for later use.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV92781

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2017-01-25

  • Closed date

    2017-03-31

  • Last modified date

    2017-03-31

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSNVBF","label":"Runtimes for Java Technology"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
22 February 2022