IBM Support

Appliance cannot connect to localhost: java.net.UnknownHostException

Troubleshooting


Problem

Users of WebSphere Cast Iron might see the following error message on the System > Connectors page of the Web Management Console: "Error while fetching connector information" Additionally users might be able to publish projects to the appliance but not deploy them. The projects remain stuck in the deploying state. The log file /var/log/maestro.out has repeated occurrences of: java.net.UnknownHostException: xxx.com: xxx.com at java.net.InetAddress.getLocalHost(InetAddress.java:1496) The log file /var/log/wmc.out has repeated occurrences of: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: xx.xx.xx.xx; nested exception is: java.net.ConnectException: Connection refused] at java.lang.Throwable.(Throwable.java:67) at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:244) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:260) at com.approuter.nmc.platform.BasePlatformHost.getJMXConnector(BasePlatformHost.java:79) at com.approuter.nmc.actions.dashboard.PerformanceTracker.getMBeanServerConnection(PerformanceTracker.java:192) at com.approuter.nmc.actions.dashboard.PerformanceTracker.addOrchestrationStats(PerformanceTracker.java:278) at com.approuter.nmc.actions.dashboard.PerformanceTracker.getApplianceUtilization(PerformanceTracker.java:255) at com.approuter.nmc.actions.dashboard.PerformanceTracker$1.run(PerformanceTracker.java:102) at java.util.Timer$TimerImpl.run(Timer.java:291)

Resolving The Problem

These symptoms are a result of the appliance not being able to resolve its own hostname to an IP address. The problem can be resolved by doing either of the following:

  • Add an entry for the appliance's hostname to the DNS server that is used by the appliance.
  • Use the command line interface command net add etchost address <ipaddr> hostname <name> [alias <name>] to permanently update the /etc/hosts file on the appliance.
    Note: if you edit the file manually instead, the change will be lost the next time the appliance is rebooted.
[{"Product":{"code":"SSGR73","label":"IBM Cast Iron Cloud Integration"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"}],"Version":"6.0.0.2","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

More support for:
IBM Cast Iron Cloud Integration

Software version:
6.0.0.2

Operating system(s):
Linux

Document number:
161323

Modified date:
15 June 2018

UID

swg21501971

Manage My Notification Subscriptions