Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Frequently one encounters the following types of errors when the correct hostname is not set on the machine.

Code Block
titleError 1: Error caused by java.net.UnknownHostException: GEJUM-SOAServer02: GEJUM-SOAServer02
Failed to lookup manageable properties. Cannot load environment specific properties. Reason Lookup failed for
object named :: PLAYERTRACKING2__1_0__OASISDB__MANAGEABLEPROPERTIES.
Reason : fiorano.jms.common.ConnectionFailedException: Kernel I/O error occurred
:: Failed to establish connection with URL:http://localhost:1867;http://10.160.128.73:1867;http://127.0.0.1:1867 and
underlying cause:KERNEL_IO_ERROR

12/07/2015 03:00:47 : SEVERE : Error doing lookup for configuration
Code Block
titleThe above error is caused by:
java.net.UnknownHostException: GEJUM-SOAServer02: GEJUM-SOAServer02
Code Block
titleError 2:2.1: Error occured when the correct hostname is not set in the FES machine and FPS is started
Trying to connect to JMS Provider [Name: FES - Primary URL: http://localhost:1847]

The above kind of error occurs While the error above can be seen on the console, if the user checks the esberr.log file of the peer server in runtime data, the following error can be seen:

Code Block
title2.2: Error displayed in the esberr.log file when the correct hostname is not set in the FES machine and FPS is started
fiorano.

...

 

tifosi.common.TifosiException: GET_TOPIC_CONNECTION_FACTORY_ERROR   :: URL =   http://localhost:1847 :: 
 at fiorano.tifosi.provider.fioranoMQ.FioranoProvider.getTopicConnectionFactory(FioranoProvider.java:113)
 at fiorano.tifosi.tr.JMSConnection.createTopicConnection(JMSConnection.java:315)
 at fiorano.tifosi.tr.JMSConnectionManager.createTopicConnection(JMSConnectionManager.java:298)

Caused by: javax.naming.NamingException: Lookup failed for TCF named :: SERVICEPROVIDERPEERTCF. Reason : fiorano.jms.common.ConnectionFailedException: Kernel I/O error occurred :: Failed to establish connection with URL:http://localhost:1847;http://localhost:1848 and underlying cause:KERNEL_IO_ERROR [Root exception is fiorano.jms.common.ConnectionFailedException: Kernel I/O error occurred :: Failed to establish connection with URL:http://localhost:1847;http://localhost:1848 and underlying cause:KERNEL_IO_ERROR]
Caused by: fiorano.jms.common.ConnectionFailedException: Kernel I/O error occurred :: Failed to establish connection with URL:http://localhost:1847;http://localhost:1848 and underlying cause:KERNEL_IO_ERROR
 at fiorano.jms.runtime.krpc.tcp.FioranoTCPConnectionHelper.a(FioranoTCPConnectionHelper.java:787)
 at fiorano.jms.runtime.krpc.tcp.FioranoTCPConnectionHelper.a(FioranoTCPConnectionHelper.java:276)
Caused by: java.net.UnknownHostException: santosh: santosh: Name or service not known
 at java.net.InetAddress.getLocalHost(InetAddress.java:1466)
 at fiorano.jms.runtime.krpc.tcp.FioranoTCPConnectionHelper.a(FioranoTCPConnectionHelper.java:485)

Caused by: java.net.UnknownHostException: santosh: Name or service not known
 at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
 at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:894)
Code Block
title3: occur while adding Breakpoint from eStudio
javax.naming.NamingException: Lookup failed for object named :: PRIMARYQCF. Reason : fiorano.jms.common.ConnectionFailedException: Kernel I/O error occurred :: Failed_to_establish_connection_with_cause::_ {http://localhost.localdomain:1848;http://192.168.xxx.xxx:1847\};
Tip
titleSolution

Check whether hostname -i command in the terminal / command prompt gives the correct in-use IP address of the host, if it does not, you need to modify the hosts file.

The hosts file is used by the operating system to map hostnames to IP addresses. To set the hostname, one needs to modify the hosts file

...

which contains lines of text consisting of an IP address in the first text field followed by one or

...

more host names. Follow the steps below to modify the file.

For Linux

To edit the hosts file present in the etc folder, perform the following actions:

  1. To open the /etc/hosts file, open the terminal, switch to superuser and use the command:

    Code Block
    gedit /etc/hosts
  2. In the hosts file that gets opened, locate your old hostname, which resembles one of the below lines:
    1. <ip_address> <your-old-hostname> <your-old-hostname>.<domain>
    2. <ip_address> <your-old-hostname>
       
  3. Replace the old hostname with the correct hostname and save the hosts file.
  4. In the terminal, type the following:

    Code Block
    hostname <new hostname>
  5. To see if the hostname has been set properly, use the following command:

    Code Block
    hostname -a

...

  1. Click on the Start button, right-click Computer, and then select Properties option.
  2. Under the Computer name tab click Change settings button.
  3. In the Computer description text field,  type the correct hostname, and then click OK. If the computer is part of a domain,  provide the name and password of an account that has permission to rename the computer in the domain.
  4. Restart the system once it prompts to do so.
  5. After it restarts, to check the hostname,

    1. open command prompt by going to Start > Run and Enter "cmd".

    2. check the hostname by executing the following command:

      Code Block
      hostname

Anchor
_

...

If the user gets the following exceptions while adding Breakpoint from eStudio:

Code Block
javax.naming.NamingException: Lookup failed for object named :: PRIMARYQCF. Reason : fiorano.jms.common.ConnectionFailedException: Kernel I/O error occurred :: Failed_to_establish_connection_with_cause::_ {http://localhost.localdomain:1848;http://192.168.xxx.xxx:1847\};

Check whether 'hostname -i' gives the correct in-use IP address of the host, if it does not, modify /etc/hosts file to correct it.

Anchor
_Toc364086626
_Toc364086626
Anchor
_Toc372741808
_Toc372741808
Peer on Multi-homed machine

...

Adaptavist ThemeBuilder EngineAtlassian Confluence