InetAddress UnknownHostException

Hello,
InetAddress.getLocalHost() is throwing a UnknownHostException when i'm running an app from within another app using Runtime.exec() and the command string "cmd /k appname". However it returns the hostname fine when the app is run from the command prompt!
I'm guessing it's a environment veraiable or another configuration problem but have not been able to figure of what to missing so far.
Any help would be appreicated

Fixed the problem,
requires SystemRoot to be set

Similar Messages

  • InetAddress.getLocalHost().getHostName()  throwing unknownHostException

    When i am executing this statement from a simple java program its working fine. But when I call the statement from JSP or servlet, its throwing UnknownhostException.
    I am using tomcat3.3.1 as web server running on Sun Solaris.
    Is there problem with setting of tomcat ???
    Please help me out.

    I tried nslookup at the shell prompt. It was showing unknown host for the ip address. I contacted our network people and came to know that the server is on internet and thats why it was not showing the local ip address host name in nslookup. Then I tried the internet ip address and host name of the server in the stetement and it worked out. Hope i am clear to u. Now the statement is running fine.
    Actually I was trying to send mail using Smtp class and while dong that it was throwing UnknownHostException. Then i found out the Intaddress.getLocalHost() was the stmt throwing this error. Now as I am giving the internet address for constructor of new SmtpClient() method, it is not giving this error and my mail is getting delivered. But it processis taking lot of time. It takes @ 15 minutes to send a mail.
    Can u help me out in this????
    Thanx for help.......

  • Inetaddress problems

    I need help using Inet address to make a internet usage log viewer. I have found a program to change IP addresses to a site URL. However it is not working correctly. help to rectify this problem will be greatly appreciated.
    Below is the code that i have thus far.
    import java.net.*;
    class Url001{
      public static void main(String[] args){
        try{
          System.out.println(
                  "Get and display IP address of URL by name");
          InetAddress address = InetAddress.getByName(
                                        "www.hotmail.com");
          System.out.println(address);
          System.out.println(
                        "Do reverse lookup on the IP address");
          //Extract the IP address from the string to the right
          // of the /.  Then provide the IP address as a string
          // to the getByName() method.
          int temp = address.toString().indexOf('/');
          address = InetAddress.getByName(
                         address.toString().substring(temp+1));
          System.out.println(address);
          System.out.println(
            "Get and display current IP address of LocalHost");
          address = InetAddress.getLocalHost();
          System.out.println(address);
          System.out.println(
                              "Do reverse lookup on current " +
                                    "IP address of LocalHost");
          temp = address.toString().indexOf('/');
          address = InetAddress.getByName(
                         address.toString().substring(temp+1));
          System.out.println(address);
          System.out.println(
                  "Get and display current name of LocalHost");
          System.out.println(address.getHostName());
          System.out.println(
            "Get and display current IP address of LocalHost");
          //Get IP address as an array of bytes.
          byte[] bytes = address.getAddress();
          //Convert IP address bytes to unsigned values
          // and display separated by spaces.
          for(int cnt = 0; cnt < bytes.length; cnt++){
            int uByte =
                bytes[cnt] < 0 ? bytes[cnt] + 256 : bytes[cnt];
            System.out.print(uByte + " ");
          }//end for loop
          System.out.println();
        }catch(UnknownHostException e){
          System.out.println(e);
          System.out.println("Must be online to run properly.");
        }//end catch
      }//end main
    }//end class Url001 and this is the Expected output
    Get and display IP address of URL by name
    www.hotmail.com/166.63.208.155
    Do reverse lookup on the IP address
    www.hotmail.com/166.63.208.155
    Get and display current IP address of LocalHost
    des-025/10.0.0.63
    Do reverse lookup on current IP address of LocalHost
    des-025/10.0.0.63
    Get and display current name of LocalHost
    des-025.tres-uk.co.uk
    Get and display current IP address of LocalHost
    10 0 0 63
    However this is the output that i am recieving
    Get and display IP address of URL by name
    www.hotmail.com/166.63.208.155
    Do reverse lookup on the IP address
    /166.63.208.155
    Get and display current IP address of LocalHost
    des-025/10.0.0.63
    Do reverse lookup on current IP address of LocalHost
    /10.0.0.63
    Get and display current name of LocalHost
    des-025.tres-uk.co.uk
    Get and display current IP address of LocalHost
    10 0 0 63
    Any help would be greatly recieved, Thank you for your time.
    Regards
    Timothy Jeffreys

    address = InetAddress.getByName(
    address.toString().substring(temp+1));
    System.out.println(address);
    in these lines u r extractin substrin starting from location of " / " (pointed by temp )....
    thats why yr getting this output
    /166.**.**.***
    instead of www.hotmaill.com/166.***.***.***

  • InetAddress.getLocalHost retrieving 127.0.0.1, not the actual IP Address

    I am using the following code :
    try{
              InetAddress iaddr = InetAddress.getLocalHost();
              String ipaddr = iaddr.getHostAddress();
              System.out.println("IP= "+ipaddr);
              }catch(UnknownHostException ex){
                   ex.getMessage();
    to get the IP address of the server on which this code is running.
    We are actually trying to set up different machines (other than the Production machine) for Failover of the Application. So, we need to get the IP address of the machine on which the application is running in the code.
    For one machine, the above code works perfectly OK.
    But, for the three Production machines, the IP address that we are retrieving using the getLocalHost function is fetching the localhost and not the IP address of the machine. That is instead of fetching the IP � a.b.c.d (I am not writing the actual IP in this mail :) ) ... it is fetching the localhost 127.0.0.1 .
    So we need to find out a way to fetch the actual IP address so that failover can work.
    FYI, all of the machines are Solaris machines.
    Regards,
    Anjan

    I am putting up the contents of the /etc/hosts files of the 3 machines I am using.
    @@@@ Machine #1 (Code running OK for this, retrieving a.b.c.155 for InetAddress.getLocalhost().getHostAddress()) @@@@
    Excerpt from /etc/hosts file :
    ==========================
    # Internet host table
    127.0.0.1 localhost
    a.b.c.155 rating-DR loghost
    ==========================
    Host name for Machine #1
    ===================
    bash>hostname
    rating-DR
    @@@@ Machine #2 (Code returning 127.0.0.1 in this server, for InetAddress.getLocalhost().getHostAddress()) @@@@
    Excerpt from /etc/hosts file :
    ==========================
    # Internet host table
    127.0.0.1 localhost
    a.b.c.235 rating1 rating1.xyz.com loghost
    a.b.c.239 rating2
    ==========================
    Hostname for Machine #2
    ===================
    bash>hostname
    rating1
    @@@@ Machine #3 (Code returning 127.0.0.1 in this server, for InetAddress.getLocalhost().getHostAddress()) @@@@
    Excerpt from /etc/hosts file :
    ==========================
    # Internet host table
    127.0.0.1 localhost
    a.b.c.239 rating2 rating2.xyz.com loghost
    192.168.210.235 rating1
    192.168.210.155 rating-DR rating-DR.fastlink.com.jo
    ==========================
    Hostname for Machine #3
    ===================
    bash>hostname
    rating2

  • Getting a netative value from InetAddress...

    I have an IP address that I am trying to convert to an InetAddress so I can pick out pieces of it. Unfortunately, when I use the following code, the first region of the IP address is a negative number... Am I doing something incorrectly? (I put in a dummy IP just for the sake of this post, BTW)
    InetAddress address = null;
    try {
    address = InetAddress.getByName("131.255.255.255");
    } catch (UnknownHostException uhe) {
    System.out.println("Unknown Host " + ip);
    System.out.println("address: " + address);
    System.out.println("address.getAddress()[0]: " + (address.getAddress()[0]));
    System.out.println("address.getAddress()[1]: " + (address.getAddress()[1]));
    System.out.println("address.getAddress()[2]: " + (address.getAddress()[2]));
    System.out.println("address.getAddress()[3]: " + (address.getAddress()[3]));
    This is the output:
    address: 131.255.255.255/131.255.255.255
    address.getAddress()[0]: -125
    address.getAddress()[1]: 255
    address.getAddress()[2]: 255
    address.getAddress()[3]: 255
    Why is this showing up as -125 and not 131?

    0000 .... 1000 0011 = 131 int
    cut to byte
    1000 0011 = -125
    prolly recast to int to get the right value...sorry, you know what I mean, not cast, since that'd keep the sign, put the 0's back

  • UnknownHostException during OBPM Enterprise Setup

    Hi,
    when trying to configure the OBPM Enterprise while doing the WLST Script I get an UnknownHostException even though I can connect via WebLogic Scripting Console using the same host, port, username and password. Do I need something special for OBPM here?
    I tried to use the hostname and the IP. Nslookup shows the correct domain resolution.
    [<I> 02/07/10 10:17:54] t3://xxx:7001
    [<I> 02/07/10 10:17:54] Connecting to t3://xxx:7001 with userid weblogic ...
    [<I> 02/07/10 10:17:54] This Exception occurred at Fri Jul 02 09:17:54 GMT 2010.
    [<I> 02/07/10 10:17:54] javax.naming.ServiceUnavailableException [Root exception is java.net.UnknownHostException: xxx]
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:34)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:787)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:366)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.Environment.getContext(Environment.java:315)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.Environment.getContext(Environment.java:285)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    [<I> 02/07/10 10:17:54]      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    [<I> 02/07/10 10:17:54]      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    [<I> 02/07/10 10:17:54]      at javax.naming.InitialContext.init(InitialContext.java:223)
    [<I> 02/07/10 10:17:54]      at javax.naming.InitialContext.<init>(InitialContext.java:197)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTHelper.java:520)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLSTHelper.java:573)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:313)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:61)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:147)
    [<I> 02/07/10 10:17:54]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [<I> 02/07/10 10:17:54]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [<I> 02/07/10 10:17:54]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [<I> 02/07/10 10:17:54]      at java.lang.reflect.Method.invoke(Method.java:597)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyMethod.__call__(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyObject.__call__(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyObject.invoke(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.pycode._pyx4.connect$1(<iostream>:16)
    [<I> 02/07/10 10:17:54]      at org.python.pycode._pyx4.call_function(<iostream>)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyTableCode.call(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyTableCode.call(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyTableCode.call(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyFunction.__call__(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.pycode._pyx15.initConfigToScriptRun$2(C:\Users\xx\.configWizard\tmp\config.py:57)
    [<I> 02/07/10 10:17:54]      at org.python.pycode._pyx15.call_function(C:\Users\xx\.configWizard\tmp\config.py)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyTableCode.call(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyTableCode.call(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyFunction.__call__(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.pycode._pyx15.f$0(C:\Users\xx\.configWizard\tmp\config.py:667)
    [<I> 02/07/10 10:17:54]      at org.python.pycode._pyx15.call_function(C:\Users\xx\.configWizard\tmp\config.py)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyTableCode.call(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.PyCode.call(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.core.Py.runCode(Unknown Source)
    [<I> 02/07/10 10:17:54]      at org.python.util.PythonInterpreter.execfile(Unknown Source)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLST.main(WLST.java:131)
    [<I> 02/07/10 10:17:54]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [<I> 02/07/10 10:17:54]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [<I> 02/07/10 10:17:54]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [<I> 02/07/10 10:17:54]      at java.lang.reflect.Method.invoke(Method.java:597)
    [<I> 02/07/10 10:17:54]      at weblogic.WLST.main(WLST.java:29)
    [<I> 02/07/10 10:17:54] Caused by: java.net.UnknownHostException: xxx
    [<I> 02/07/10 10:17:54]      at java.net.InetAddress.getAllByName0(InetAddress.java:1157)
    [<I> 02/07/10 10:17:54]      at java.net.InetAddress.getAllByName(InetAddress.java:1083)
    [<I> 02/07/10 10:17:54]      at java.net.InetAddress.getAllByName(InetAddress.java:1019)
    [<I> 02/07/10 10:17:54]      at weblogic.rjvm.RJVMFinder.getDnsEntries(RJVMFinder.java:422)
    [<I> 02/07/10 10:17:54]      at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:192)
    [<I> 02/07/10 10:17:54]      at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
    [<I> 02/07/10 10:17:54]      at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.WLInitialContextFactoryDelegate$1.run(WLInitialContextFactoryDelegate.java:345)
    [<I> 02/07/10 10:17:54]      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    [<I> 02/07/10 10:17:54]      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:340)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.Environment.getContext(Environment.java:315)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.Environment.getContext(Environment.java:285)
    [<I> 02/07/10 10:17:54]      at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
    [<I> 02/07/10 10:17:54]      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
    [<I> 02/07/10 10:17:54]      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
    [<I> 02/07/10 10:17:54]      at javax.naming.InitialContext.init(InitialContext.java:223)
    [<I> 02/07/10 10:17:54]      at javax.naming.InitialContext.<init>(InitialContext.java:198)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLSTHelper.populateInitialContext(WLSTHelper.java:520)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLSTHelper.initDeprecatedConnection(WLSTHelper.java:573)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:315)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:62)
    [<I> 02/07/10 10:17:54]      at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:148)
    [<I> 02/07/10 10:17:54]      ... 31 more
    [<I> 02/07/10 10:17:54] No server running at t3://xxx:7001 or the user/password is wrong

    Just corrected a similar problem, my host name was not in DNS (only in a local hosts file) and for some reason t3 doesn't seem to use those very well.
    To correct the connection edited the t3 parts in:
    <domain_home>/init-info/startscript.xml
    Took off the alias for the host and set "localhost" instead.
    Hope this helps.

  • UnknownHostException while trying to deploy web application

    Hi,
    I am using weblogic 6.1 SP1. And I have a simple web application which I try to
    deploy on weblogic. But when I try to deploy it, I get the following exception.
    <Apr 29, 2002 4:46:48 PM PDT> <Error> <HTTP> <[HelloPlanetServletClientWithEjbsWAR]
    Error reading Web application "D:\bea\wlserver6.1\.\config\mydomain\applications\.wlnotdelete\wlap63761\HelloPlanetServletClientWithEjbsWAR.war
    java.net.UnknownHostException: www.bea.com
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getAllByName(InetAddress.java:533)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:191)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
    at weblogic.net.http.HttpURLConnection.getHttpClient(HttpURLConnection.java:119)
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:311)
    at java.net.URL.openStream(URL.java:798)
    at weblogic.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFactory.java:149)
    at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntity(DefaultEntityHandler.java:769)
    at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubset(DefaultEntityHandler.java:566)
    at weblogic.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1139)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2215)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2170)
    at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:790)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
    at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
    at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:175)
    at weblogic.servlet.internal.dd.DescriptorLoader.parse(DescriptorLoader.java:311)
    at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebLogicXml(DescriptorLoader.java:346)
    at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:201)
    at weblogic.servlet.internal.WebAppServletContext.getDescriptorLoader(WebAppServletContext.java:928)
    at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:806)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:160)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy33.addWebDeployment(Unknown Source)
    at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1094)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:484)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:354)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:945)
    at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:932)
    at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:917)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:620)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy19.addTarget(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:837)
    at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:936)
    at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:856)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:772)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:705)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:200)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1020)
    >
    <Apr 29, 2002 4:46:48 PM PDT> <Error> <J2EE> <Error deploying application HelloPlanetServletClientWithEjbsWAR:
    Could not load HelloPlanetServletClientWithEjbsWAR>
    <Apr 29, 2002 4:46:48 PM PDT> <Error> <Management> <Error deploying application .\config\mydomain\applications\HelloPlanetServletClientWithEjbs.ear:
    java.lang.reflect.UndeclaredThrowableException>
    Please can anybody suggest a solution to this problem?
    I have attached the weblogic.xml along with this posting.
    Thanks,
    Vani
    [weblogic.xml]

    Hi All,
    I didn't have proxy client on my machine. That was causing this exception.
    I installed proxy client and now, the web application deploys fine.
    -Vani
    "Vani Hemmige" <[email protected]> wrote:
    >
    >
    >
    Hi,
    I am using weblogic 6.1 SP1. And I have a simple web application which
    I try to
    deploy on weblogic. But when I try to deploy it, I get the following exception.
    <Apr 29, 2002 4:46:48 PM PDT> <Error> <HTTP> <[HelloPlanetServletClientWithEjbsWAR]
    Error reading Web application "D:\bea\wlserver6.1\.\config\mydomain\applications\.wlnotdelete\wlap63761\HelloPlanetServletClientWithEjbsWAR.war
    java.net.UnknownHostException: www.bea.com
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getAllByName(InetAddress.java:533)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:191)
    at weblogic.net.http.HttpClient.openServer(HttpClient.java:254)
    at weblogic.net.http.HttpClient.<init>(HttpClient.java:117)
    at weblogic.net.http.HttpURLConnection.getHttpClient(HttpURLConnection.java:119)
    at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:311)
    at java.net.URL.openStream(URL.java:798)
    at weblogic.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFactory.java:149)
    at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntity(DefaultEntityHandler.java:769)
    at weblogic.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubset(DefaultEntityHandler.java:566)
    at weblogic.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java:1139)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentScanner.java:2215)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.java:2170)
    at weblogic.apache.xerces.framework.XMLDocumentScanner$XMLDeclDispatcher.dispatch(XMLDocumentScanner.java:790)
    at weblogic.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
    at weblogic.apache.xerces.framework.XMLParser.parse(XMLParser.java:967)
    at weblogic.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:175)
    at weblogic.servlet.internal.dd.DescriptorLoader.parse(DescriptorLoader.java:311)
    at weblogic.servlet.internal.dd.DescriptorLoader.initializeWebLogicXml(DescriptorLoader.java:346)
    at weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader.java:201)
    at weblogic.servlet.internal.WebAppServletContext.getDescriptorLoader(WebAppServletContext.java:928)
    at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:806)
    at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:421)
    at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    at weblogic.j2ee.Application.addComponent(Application.java:160)
    at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy33.addWebDeployment(Unknown Source)
    at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1094)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
    at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:608)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:484)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:354)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:945)
    at weblogic.management.internal.DynamicMBeanImpl.addDeployment(DynamicMBeanImpl.java:932)
    at weblogic.management.internal.DynamicMBeanImpl.add(DynamicMBeanImpl.java:917)
    at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:620)
    at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:592)
    at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:352)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:449)
    at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:190)
    at $Proxy19.addTarget(Unknown Source)
    at weblogic.management.mbeans.custom.ApplicationManager.autoDeploy(ApplicationManager.java:837)
    at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:936)
    at weblogic.management.mbeans.custom.ApplicationManager.addApplication(ApplicationManager.java:856)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:772)
    at weblogic.management.mbeans.custom.ApplicationManager.poll(ApplicationManager.java:705)
    at weblogic.management.mbeans.custom.ApplicationManager.update(ApplicationManager.java:200)
    at weblogic.management.mbeans.custom.ApplicationManager$ApplicationPoller.run(ApplicationManager.java:1020)
    >
    <Apr 29, 2002 4:46:48 PM PDT> <Error> <J2EE> <Error deploying application
    HelloPlanetServletClientWithEjbsWAR:
    Could not load HelloPlanetServletClientWithEjbsWAR>
    <Apr 29, 2002 4:46:48 PM PDT> <Error> <Management> <Error deploying application
    .\config\mydomain\applications\HelloPlanetServletClientWithEjbs.ear:
    java.lang.reflect.UndeclaredThrowableException>
    Please can anybody suggest a solution to this problem?
    I have attached the weblogic.xml along with this posting.
    Thanks,
    Vani

  • Unknownhostexception while connecting to webservice

    Hi,
    We have an application which connects to a webservice on a different box. If the webservice URL is accessed from the box itself, it works fine. But when we try to hit it from the application, it gives the following error:
    [15-08-2007 03:38:39 AM] DEBUG (CommonAppOperations) CommonAppOperations: validateUser: AppConstants.SECURITY_WS_URL: http://as63alyn:7232/securityWebService/SecurityWebService.jws?WSDL=
    [15-08-2007 03:38:41 AM] DEBUG (CommonAppOperations) CommonAppOperations: validateUser: Exception:
    java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Failed to send request
    Detail:
    <detail>
    <bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">java.net.UnknownHostException: stg-wlms3.genworth.net: stg-wlms3.genworth.net
         at java.net.InetAddress.getAllByName0(Ljava/lang/String;Z)[Ljava/net/InetAddress;(Unknown Source)
         at java.net.InetAddress.getAllByName0(Ljava/lang/String;)[Ljava/net/InetAddress;(Unknown Source)
         at java.net.InetAddress.getAllByName(Ljava/lang/String;)[Ljava/net/InetAddress;(Unknown Source)
         at weblogic.net.http.HttpClient.openServer(Ljava/lang/String;I)V(HttpClient.java:279)
         at weblogic.net.http.HttpClient.openServer()V(HttpClient.java:355)
    The URL says as63alyn, but the error says unknownhostexception : stg-wlms3.genworth.net
    I checked out and found that it might be a cache forever problem, so disabled the caching forever by changing the java.security file to have the value set to 0 instead of -1 and have the manage servers and the admin server restarted, but still the same problem.
    Can you please suggest why it might be picking up the wrong name and giving me the unknownhostexception.
    Let me know if any more information is required.
    Regards,
    Prashant Kale.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I'm sure someone will reply to one of your two OTHER nearly identical threads.

  • InetAddress posting Unknown Host Exception

    Hello,
    I am relatively new to java and I am running into an Unknown Host Exception when attempting to return the IP's for valid host names. The strange part is that the first host name returns an address however every entry after the first returns the Unkown Host Exception. Here is the snippet of code that the problem is occuring in.
    Inet address as declared earlier in the code:
         private InetAddress Address = null;Code reporting errors:
              StringBuffer sb0 = new StringBuffer();
              int chr;
              // Read until the end of the stream     
              while ((chr = inputStream0.read()) != -1)
                      sb0.append((char) chr);
              String display = sb0.toString();
              String temp = display.replace("Giant ", "g0");
              String[] words = temp.split("\\|");
              StringBuffer db = new StringBuffer();
              for (int i=0; i < words.length; i++)
                      String many = (words[i] +"wu1");
                      try
                              Address = InetAddress.getByName(many);
                   db.append(words[i] + "wu1|" + Address);
                      catch(NullPointerException e)
                              db.append(words[i] + "wu1 - Null Pointer - ");
                      catch(UnknownHostException e)
                              db.append(words[i] + "wu1 - Unknown Host - ");
              String yay = db.toString();
              log.append(yay);
                                    catch (FileNotFoundException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
                                    catch (IOException e)
              // TODO Auto-generated catch block
              e.printStackTrace();
              }I have attempted setting Address back to null after the address was appended but it didn't make any difference.
    Edited by: mudbuggle on Aug 4, 2008 7:19 PM

    I made the adjustments however I am still experiencing the same problem.
    www.yahoo.com returns an ip address but the rest return Unknown Host Exceptions.
    www.yahoo.comjava.net.UnknownHostException:
    forums.sun.com
         at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
         at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
         at java.net.InetAddress.getAddressFromNameService(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
    forums.sun.com     at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getByName(Unknown Source)
         at IP$1.actionPerformed(IP.java:83)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    java.net.UnknownHostException:
    www.google.com
         at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
         at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
         at java.net.InetAddress.getAddressFromNameService(Unknown Source)
         at java.net.InetAddress.getAllByName0(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getAllByName(Unknown Source)
         at java.net.InetAddress.getByName(Unknown Source)
         at IP$1.actionPerformed(IP.java:83)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at javax.swing.JComponent.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)

  • InetAddress  exception  errors

    Hi all
    When compiling my program
    Following errors getted:-
    1.unreported exception java.net.UnknownHostException; must be caught or declared to be thrown
              InetAddress inet = InetAddress.getByName("www.davidreilly.com");
    2.exception java.net.MalformedURLException is never thrown in body of corresponding try statement
              catch (MalformedURLException e){}
    This is the part of my code in which errors occur
    try {
                InetAddress inet = InetAddress.getByName("www.davidreilly.com");
                 System.out.println ("IP  : " + inet.getHostAddress());
                catch (MalformedURLException e){}Please help me to correct and why unreported exception java.net.UnknownHostException; must be caught or declared to be thrown if I dont use try and catch statements
    Thanks in advance.

    why unreported exception java.net.UnknownHostException must be caught or declared to be thrownBecause it's a rule of Java.
    if I dont use try and catch statementsBut you do 'use try and catch statements'. There's one of each in your code.
    You're just catching the wrong exception. Nothing in your code throws MalformedURLException yet you have a catch block for it, and InetAddress.getByName() throws UnknownHostException and you don't have a catch block for it.
    You also have an empty catch block, which is very poor practice. At least print something out in the catch block ...

  • InetAddress is too slow

    Iam trying to figure out how to quicken the processing of InetAddress.
    It takes abt 8 seconds to determine that there is no hostname corresponding to input ip and below 1 second for an ip which has hostname. All I want is just wait for 2 seconds in the non-existing case. Can this be achieved using a seperate timer thread, if so how?

    I'm bored, so why not...
        public class InetAddressFetcher extends Thread {
            private String name;
            private InetAddress address;
            public InetAddressFetcher(String name) {
                this.name = name;
            public InetAddress getAddress() {
                return address;
            public void run() {
                address = InetAddress.getByName(name);
            // Convenience method
            public static InetAddress fetch(String name, int timeout) throws UnknownHostException {
                InetAddressFetcher fetcher = new InetAddressFetcher(name);
                fetcher.start();
                // Wait to see if it finishes.  If it does, join() will return before the timeout.
                try {
                    fetcher.join(timeout);
                } catch (InterruptedException e) {
                    throw new UnknownHostException("Thread interrupted while looking up host " + name);
                // See if it actually got something in the allocated time.
                if (fetcher.getAddress() == null) {
                    throw new UnknownHostException("Lookup for host " + name + " timed out");
                } else {
                    return fetcher.getAddress();
        }Then you'd just call InetAddressFetcher.fetch("hostname", 2000) to use a 2 second timeout. If it times out, you get an UnknownHostException just like the normal methods would give you.

  • InetAddress

    // Demonstrate InetAddress.
    import java.net.*;
    public class InetAddressTest
         public static void main(String args[]) throws UnknownHostException
              InetAddress Address = InetAddress.getLocalHost();
              System.out.println(Address);
              Address = InetAddress.getByName("osborne.com");
              System.out.println(Address);     
              InetAddress SW[] = InetAddress.getAllByName("www.nba.com");
              for(int i = 0; i<SW.length; i++)
                   System.out.println(SW);
    // I tried to run above program on my Ubuntu 10.11 in eclipse but got following errors
    //The method getLocalHost() is undefined for the type InetAddress
    //The method getByName(String) is undefined for the type InetAddress
    //The method getAllByName(String) is undefined for the type InetAddress
    //please tell me where i am wrong .

    I suspect you have a class of your own called InetAddress.

  • UnknownHostException with WLS 6.0

    Hi
    Have u some news about this case ?
    I have similar problems with WLS 6.0 in this moment, my server is
    unable to start correctly. It's up for 5 minutes and then go down.
    Lot's of error like that :
    java.net.UnknownHostException: 10.35.69.245, 10.35.34.10, 10.112.33.66
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.35.69.245, 10.35.34.10, 10.112.33.66
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.35.69.245, 10.35.34.10, 10.112.33.66
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.35.69.245, 10.35.34.10, 10.112.33.66
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.215.253.53, 172.26.75.120, unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.215.253.53, 172.26.75.120, unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 9.212.18.51, unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 9.212.18.51, unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    please mail me
    thx

    http://216.148.48.158/news/ArticleFrame.jsp?server=newsgroups.beasys.com&group=weblogic.developer.interest.servlet&article=<[email protected]>
    [email protected] (Lionel MANNU) wrote:
    Hi
    Have u some news about this case ?
    I have similar problems with WLS 6.0 in this moment, my server is
    unable to start correctly. It's up for 5 minutes and then go down.
    Lot's of error like that :
    java.net.UnknownHostException: 10.35.69.245, 10.35.34.10, 10.112.33.66
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.35.69.245, 10.35.34.10, 10.112.33.66
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.35.69.245, 10.35.34.10, 10.112.33.66
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.35.69.245, 10.35.34.10, 10.112.33.66
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.215.253.53, 172.26.75.120, unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 10.215.253.53, 172.26.75.120, unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 9.212.18.51, unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    java.net.UnknownHostException: 9.212.18.51, unknown
    at java.net.InetAddress.getAllByName0(InetAddress.java:571)
    at java.net.InetAddress.getAllByName0(InetAddress.java:540)
    at java.net.InetAddress.getByName(InetAddress.java:472)
    at weblogic.servlet.internal.ServletRequestImpl.getRemoteAddr(ServletRequestImpl.java:840)
    at weblogic.servlet.logging.CLFLogger.log(CLFLogger.java:54)
    at weblogic.servlet.logging.LogManagerHttp.log(LogManagerHttp.java:293)
    at weblogic.servlet.internal.HttpServer.log(HttpServer.java:670)
    at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:851)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1636)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    please mail me
    thx

  • InetAddress.isReachable() is acting strange

    I have three machines. One server running Linux, one PC inside our firewall running XP and one PC outside our firewall running XP. The PC outside our network is connected through a VPN to our network.
    I have a little java application running on both XP machines that check to see if the Linux box is reachable.
    import java.io.*;
    import java.net.*;
    public class Reachable
      public static void main(String args[])
        while (true)
          try
            InetAddress address = InetAddress.getByName("tux.xyz.com");
            System.out.println("Name: " + address.getHostName());
            System.out.println("Addr: " + address.getHostAddress());
            System.out.println("Reach: " + address.isReachable(3000));
          catch (UnknownHostException e)
            System.err.println("Unable to lookup tux.xyz.com");
          catch (IOException e)
            System.err.println("Unable to reach tux.xyz.com");
          try
            Thread.sleep(1000);
          catch (Exception e)
    }The XP box that inside the firewall says that the Linux box IS reachable, but the XP box that is outside the firewall says that the Linux box IS NOT reachable.
    We have checked our firewall and both XP boxes are getting through on port 7. The Linux box is getting the requests on port 7 also as I can see them using Ethereal.
    Any ideas why InetAddress.isReachable() would be returning FALSE?
    FYI, if I turn on the echo server on Linux, which uses port 7, the XP machine outside the firewall NOW says that the server is reachable...
    Much thanks.
    -Jeff

    Yeah, did notice that reply, but what is weird is that I am not getting a connection refused. I am not getting anything...
    The Linux server is visible from both the inside XP machine and outside XP machine via ping. What I thought was weird was that the inside XP machine was able to get to the Linux box, but the only way the outside machine was able to get to the Linux box was when I turned on the Echo service on port 7. That is what is weird. So turning on the Echo service made sense, but did not at the same time...

  • InetAddress.getByName failing for valid domains

    On some machines, domains starting with the hyphen (and other non-alphabetic characters) are not resolved by InetAddress.getByName()
    nslookup does resolve the domains, so they seem to be valid - perhaps not by the RFC, but it seems that other common tools do consider the domain to be valid.
    here are some domains that fail:
    ----thomiiii.hi5.com
    *.letsgodigital.es
    *.chordie.comI found the org.xbill.DNS package that resolves these domains.
    Wondering why the InetAddress class does not. I tried looking at the source, but it led me to a native implemention:
    static native InetAddress getHostByNameImpl(String name, boolean preferIPv6Address) throws UnknownHostException;
    but i couldn't find the source for this native implementation.
    Here is a bit of code that runs the two functions together. After it hits the exception with the InetAddress function, it retries with the Address function (from the org.xbill.DNS package, which works)
    import java.net.InetAddress;
    import org.xbill.DNS.Address;
    public class MemLimitCheck {
        public static void main(String[] args) {
            try {
                InetAddress ia = InetAddress.getByName(args[0]);
                byte[] addr = ia.getAddress();
                String host = ia.getHostAddress();
                System.out.println(host);
            } catch (Exception e){
                System.err.println(e.getMessage());
                e.printStackTrace();
                try {
                    InetAddress ia = Address.getByName(args[0]);
                    byte[] addr = ia.getAddress();
                    String host = ia.getHostAddress();
                    System.out.println(host);               
                } catch (Exception t) {
                    System.err.println(t.getMessage());
                    t.printStackTrace();
    }Edited by: thushw on Jul 20, 2010 11:40 AM
    Edited by: thushw on Jul 20, 2010 11:40 AM
    Edited by: thushw on Jul 20, 2010 11:41 AM
    Edited by: thushw on Jul 20, 2010 11:42 AM

    here are some domains that fail:
    ----thomiiii.hi5.com
    A very deliberately invalid domain name. I suspect that one needs to come to the attention of the police. In any case the intention is clearly to fail hostname checks, so you would probably be doing yourself and everybody else a favour by letting that happen. Unless perchance you are the police.
    *.letsgodigital.es
    *.chordie.comThese are just synonyms for letsgodigital.com and chordie.com respectively. I can't browse to either of them, although nslookup returns an IP address, same as for without the star/dot in each case.
    I do wonder what this is all about.

Maybe you are looking for

  • I cant get my 3g to play personalized ringtones

    i installed the ringtone via the dowloaded app. installed the ringtone it is on the phone I can play it but when I attach it to a particular number to personalize it it still plays the default ringtone. I've reset the phone to its original state and

  • Sony NXCAM and Premiere Pro CS 5.5.2 crash (Win7)

    Hello, We recently got a Sony NXCAM. We are shooting in SD only (until next year!), so it's not a problem with any particular HD format. Until we got this camera, we've been using Panasonic P2s exclusively. Our Chief has had good luck with these Sony

  • Math formulas and docs for IP forecasting strategies

    Hi all, For better understanding I neew math formulas for IP forecasting strategies. I've found some references on page http://help.sap.com/erp2005_ehp_04/helpdata/EN/44/03134ec148333de10000000a1553f7/content.htm to "For more information about foreca

  • Why Free Hand software stopped?

    I'm a senior graphic designer and I work in a cosmetics company. I work using many Graphic software like (Adobe photoshop, InDesign, Audition, Illustrator and 3Ds max, 3D Maya ... etc.) on Mac OS and Windows. My problem that I was work using (Macrome

  • Java using all available cpu

    I am having an issue with my weblog server. Whenever someone try's to get to my weblog server the java process takes up all the processor. And I cannot access my weblogs.