Hi,
I am running webMethods Integration Server 4.6 and Trading
Networks 4.6 on Solaris 8 system using JDK 1.3.1_01 in my
development environment. I have been having problems lately
were my DNS lookups in the IS 4.6 server just starts failing
for no apparent reason (No changes that I know of have been made to TN or IS 4.6). Name resolution works fine on the
Solaris box and I can even run a simple java program that
does DNS lookups out side of webMethods. If I run the code
inside of webMethods it fails. If I shut down the IS 4.6
server and start it back up again the problem goes away for
awhile and then eventually comes back.
Has anyone had this problem? An insight into this problem
would be helpful.
Thanks,
Duain
Here is the error I receive:
com.wm.app.b2b.server.ServiceException:
java.net.UnknownHostException: www.yahoo.com
at testing.testlookup(testing.java:320)
at java.lang.reflect.Method.invoke(Native Method)
at
com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
at
com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
at
com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:480)
at
com.wm.app.b2b.server.HTTPInvokeHandler.process(HTTPInvokeHandler.java:168)
at
com.wm.app.b2b.server.HTTPDispatch.run(HTTPDispatch.java:457)
at
com.wm.util.pool.PooledThread.run(C:/NT/Perforce/basis/4.1.0-terra/module/core/source/com/wm/util/pool/PooledThread.java:103)
at java.lang.Thread.run(Thread.java:484)
Here is the sample code I run inside of IS 4.6 that does a
DNS lookup:
public static final void testlookup( IData pipeline ) throws
ServiceException
{
IDataCursor idc = pipeline.getCursor();
String s = null,localhost=null;
if (idc.first(“strHost”))
{
s = (String) idc.getValue();
}
InetAddress host=null;
try{
//localhost=InetAddressInpl.getHostByAddr().getHostName();
host=InetAddress.getByName(s);
}catch(Exception e){
System.out.println(“Duain=”+e);
throw new ServiceException(e);
}
String hostname=host.getHostName();
String strAdd=host.getHostAddress();
idc.insertAfter(“hostname”, hostname);
idc.insertAfter(“Address”, strAdd);
//idc.insertAfter(“localhost”, localhost);
return;
}