Solved

AS 400 error

Posted on 2014-09-10
4
449 Views
Last Modified: 2014-09-12
Hi,
within AS 400, I did get this error

2014-09-11 11:54:58,204 - Testing server shutting down, initialisation failed  
java.net.UnknownHostException: COMP.SRV01: Host COMP.SRV01 not found
 at java.lang.Throwable.<init>(Throwable.java:195)                              
 at java.lang.Exception.<init>(Exception.java:41)                              
 at java.io.IOException.<init>(IOException.java:40)                            
 at java.io.IOException.<init>(IOException.java:40)                            
 at java.net.InetAddress.getLocalHost(InetAddress.java:1251)                    
 at com.misys.meridian.runtime.server.TestingServer.<init>(TestingServer.java:
 at com.misys.meridian.runtime.server.TestingServer.main(TestingServer.java:22
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 at java.lang.reflect.Method.invoke(Method.java:324)                            
 at com.misys.meridian.utilities.classpath.TestingClassRunner.run(TestingClass
 at com.misys.meridian.utilities.classpath.TestingClassRunner.run(TestingClass
 at com.misys.meridian.runtime.server.StartServer.main(StartServer.java:17)    

and want to know what I should check within AS 400? How to know which java version is being used there and what is the real reason of problem?
0
Comment
Question by:HuaMinChen
  • 2
4 Comments
 
LVL 11

Expert Comment

by:Radek Baranowski
ID: 40316629
you are probably missing an entry in your system's HOST TABLE.

here's an article about adding entries to this table (system can resolve host's up ip address based on that)
http://www.midrangenews.com/view?id=1417

hope this helps
0
 
LVL 34

Accepted Solution

by:
Gary Patterson earned 500 total points
ID: 40316878
On the IBM i command line enter these commands:

call qcmd
ping 'COMP.SRV1'

If name resolution is properly configured, the PING command will be able to resolve the address of COMP.SRV1.  If not, you'll get an error - typically "Unknown host".

Manually maintaining the IBM i host table is a -terrible- (though unfortunately common) way to resolve hostnames on IBM i.  It is hard to maintain, and the root cause of many problems that I've diagnosed over the years.

Why is the host table bad?  Because it is static.

Most systems rely on DNS to resolve system names and FQDNs into IP addresses.  So if a network administrator needs to change the IP address of a device, all they have to do is update DNS, and all the systems in the network that need to reach that host will get the new address - EXCEPT ones that have configured the old address statically in their HOSTS table.  Suddenly any services or programs that need to reach the changed host with fail, and programmers, system administrators, and network administrators will have to figure out that it was due to a static host name mapping in the IBM i HOSTS table.

A much better method (and the one most commonly used by just about every other system in the world) is to properly configure DNS using the CHGTCPDMN command to point your IBM i to a DNS server in your organization that can resolve the name "COMP.SRV01".  

You should probably get assistance from your network administrator or IBM i system administrator, since the wrong setting can have serious consequences.

However, Radek's fundamental point is correct - this looks like a name resolution issue.

And you asked about Java version.  

You can get the java version on IBM i just like on any other platform, with the "java -version" command.  From the IBM i command line, start a qshell session:

QSH

And then enter the command:

java -version
0
 
LVL 10

Author Comment

by:HuaMinChen
ID: 40318430
Many thanks all.

Gary,
when using "CHGTCPDMN" to adjust anything, is it better to have any backup to the system before that? Appreciated a lot.
0
 
LVL 34

Assisted Solution

by:Gary Patterson
Gary Patterson earned 500 total points
ID: 40319077
No, it is just a simple settings change, but it can have a significant impact if you make a mistake.  I strongly suggest you get an experienced system administrator or network administrator involved to help you configure it properly and test it - particularly if this is a production system.

I suggest that you make a record of the existing setting before making any changes, just in case you need to revert.

Odds are there are no DNS servers configured.  If that is the case, then adding local DNS servers is pretty low risk.  Once you add local DNS servers, if they are reachable from your IBM i system (no firewall preventing access to them for example), you should be able to ping servers in the local network by name from the IBM i.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

As the title indicates, I have done this before. It chills me everytime I update the OS on my phone, (http://www.experts-exchange.com/articles/18084/Upgrading-to-Android-5-0-Lollipop.html) because one time I did this and I essentially had a bricked …
Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now