APAR status
Closed as program error.
Error description
Error Message: java.net.SocketException `No such device or address.(getFlags() failed)' . Stack Trace: Exception in thread "main" java.lang.RuntimeException: java.net.SocketException: EDC5138I No such device or address. (getFlags() failed) at com.ibm.test.TestClient.testNetworkIsUp(TestClient.java:46) at com.ibm.test.TestClient.main(TestClient.java:57) Caused by: java.net.SocketException: EDC5138I No such device or address. (getFlags() failed) at java.base/java.net.NetworkInterface.isUp0(Native Method) at java.base/java.net.NetworkInterface.isUp(NetworkInterface.java:4 46) at com.ibm.test.TestClient.testNetworkIsUp(TestClient.java:24) . N/A
Local fix
N/A
Problem summary
The issue is found when the network interface name is getting truncated because of insufficient length. This problem occurs only when the interface name has 16 characters. (We were decreasing the size by 1 while copying the interface name. The interface name can be of maximum length 16, but on Linux, they require a null terminating character, where as z/OS accepts 16 char without null-terminated char). Since the interface name is not copied properly it is not able to find the interface and ioctl() call returns -1 and it checks for IPv6 interface. As a result, a 'No such device or address' error is encountered with java.net.SocketException.
Problem conclusion
The code has been updated to provide the sufficient length to copy the interface name. . This APAR will be fixed in the following Releases: . IBM Semeru Runtimes 11 11.0.21.0 17 17.0.9.0 . Contact your IBM Product's Service Team for these Service Refreshes and Fix Packs. For those running stand-alone, information about the available maintenance can be found at: https://www.ibm.com/support/pages/java-sdk
Temporary fix
Comments
APAR Information
APAR number
IJ48842
Reported component name
OPENJDK CLASS L
Reported component ID
621800100
Reported release
B00
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2023-10-10
Closed date
2023-10-10
Last modified date
2023-10-10
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
OPENJDK CLASS L
Fixed component ID
621800100
Applicable component levels
[{"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:
11 October 2023