Solved

AS 400 error

Posted on 2014-09-10
4
463 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HTTPSessionBindingListernter not configured in deployment descriptor 2 52
print map entry 34 67
Problem with Filesystemobject or .NET version 3 57
difference of if loops 23 49
Just about everyone has an old PC laying around.  Ask anyone in the IT industry, whether they are a professional or play in it as a hobby.  From outdated Desktops to cheap "throwaway" laptops, they are all around and not as hard to "fix up" as you m…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

786 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