Informix Error -4996: Unknown host name or port number
Cause and resolution
Unknown host name or port number
Ensure that the web service publisher has: 1) Set the environment variables FGLD_HOSTNAME and FGLD_PORTNUMBER 2) Run the fgld on the FGLD_PORTNUMBER specified 3) Run Axis2C on the same terminal where fgld is running
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-4996 fires when the web-service publisher's host name or port number can't be resolved — per the official guidance, this covers a checklist of three configuration/runtime requirements.
FGLD_HOSTNAMEandFGLD_PORTNUMBERenvironment variables aren't set, per the official guidance — the first named requirement.fgldisn't running on the port specified byFGLD_PORTNUMBER, per the official guidance — the second named requirement.- Axis2C isn't running on the same terminal where
fgldis running, per the official guidance — the third named requirement.
Solutions / Resolution
- Set the
FGLD_HOSTNAMEandFGLD_PORTNUMBERenvironment variables, per the official guidance. - Run
fgldon theFGLD_PORTNUMBERspecified, per the official guidance. - Run Axis2C on the same terminal where
fgldis running, per the official guidance.
Examples
Checking the fgld environment variables
$ echo $FGLD_HOSTNAME $FGLD_PORTNUMBER
Diagnostic Checks
- Check
FGLD_HOSTNAME/FGLD_PORTNUMBER, confirmfgldis running on that port, and confirm Axis2C is running on the same terminal asfgld.
Related Errors / Related Topics
- -4997 — "Port number (%s) must be in the range 1024 - 65535." A related
fgldconfiguration error, about the port number's validity rather than host/port resolution. - -4986 — "Communication between fgld daemon and application server was closed." A
related
fgldconnectivity error, about a connection being interrupted after being established, rather than host/port resolution failing outright.
The web-service publisher's host name or port number couldn't be resolved — check
FGLD_HOSTNAME/FGLD_PORTNUMBER, and confirm fgld and Axis2C are running correctly.