I believe it is asking the TCP/IP stack what its local host name is... I have no idea why it wouldn't know...
The bottom call stack segment has this:
--
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:1048)
at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1468)
at java.net.InetAddress.getLocalHost(InetAddress.java:1686)
--
The top thing there (lookupAllHostAddr) is going out of Java (native method), probably to call some C API that ultimately calls TCP/IP...but I'm out of my neighborhood now...
I asked around and got a suggestion to collect the TCP/IP Resolver trace...
Original Message:
Sent: Mon April 03, 2023 10:06 AM
From: Dan Kalmar
Subject: EDC9503I A non-recoverable error occurred when attempting to resolve the name or address.
Does it say anywhere what the local host name is ? (the one it is trying to resolve)
------------------------------
Dan Kalmar
Original Message:
Sent: Mon April 03, 2023 08:16 AM
From: David Follis
Subject: EDC9503I A non-recoverable error occurred when attempting to resolve the name or address.
Looking at the source for JsonLogHandler (https://github.com/OpenLiberty/open-liberty/blob/integration/dev/com.ibm.ws.logging/src/com/ibm/ws/logging/internal/impl/JsonLogHandler.java) it would appear we're doing this:
InetAddress.getLocalHost().getCanonicalHostName();
and from the call stack it looks like getLocalHost is the bit that is throwing the error.
The doc for that says it throws an unknown host exception "if the local host name could not be resolved into an address."
I don't know what could cause that though...
------------------------------
David Follis
WebSphere z/OS and Java Batch Architect
IBM
Poughkeepsie NY
845-435-5462
Original Message:
Sent: Sun April 02, 2023 01:06 AM
From: Dan Kalmar
Subject: EDC9503I A non-recoverable error occurred when attempting to resolve the name or address.
I have also uploaded a more detailed "trace.log" file showing the error
------------------------------
Dan Kalmar
Original Message:
Sent: Fri March 31, 2023 09:49 AM
From: David Follis
Subject: EDC9503I A non-recoverable error occurred when attempting to resolve the name or address.
The 'Caused by" is usually part of a call stack that would show what code is throwing the exception and what called it, etc. That would, probably, help a lot in figuring out what host name it is trying to resolve. Do you still have it?
------------------------------
David Follis
WebSphere Java Batch Architect
IBM
Poughkeepsie NY
845-435-5462
Original Message:
Sent: Sat February 18, 2023 03:08 PM
From: Dan Kalmar
Subject: EDC9503I A non-recoverable error occurred when attempting to resolve the name or address.
Getting this error when Liberty starts up in a CICS 5.6 region.
In the liberty log this message appears:
Caused by: java.net.UnknownHostException: : : EDC9503I A non-recoverable error occurred when attempting to resolve the name or address.
It does not say what host name is causing the problem.
The server starts up and is usable despite this error
------------------------------
Dan Kalmar
------------------------------