Results 1 to 7 of 7

Thread: starting "ice" process (node/admin etc) via Java

  1. #1
    BobDeAnna is offline Registered User
    Join Date
    Dec 2004
    Posts
    12

    starting "ice" process (node/admin etc) via Java

    IceFolk,

    I am trying to start Ice process via the Runtime.exec(..) methods in Java.

    I get the following exception when excuting my runIcePackNode.bat via a Java app on XP:

    icepacknode: error: service caught unhandled Ice exception:
    Network.cpp:764: Ice:NSException:
    DNS error: WSAHOST_NOT_FOUND
    host: xxxx

    Where "xxx" is the name of my machine.

    Is there an environment variable/argument I need to pass to the process?

    I am setting the classpath and path in the script that gets executed.
    This is rather obvious since it does find the icepacknode.exe and launches it.
    Note also that the script works fine when running from a dos prompt.

    Thanks!
    Bob

  2. #2
    BobDeAnna is offline Registered User
    Join Date
    Dec 2004
    Posts
    12
    Is it something I said?

    Bob

  3. #3
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    This looks like a problem with the nameserver setup on your system. Try the following in a cmd.exe:

    nslookup xxx

    With xxx being the hostname that is displayed in the error message. Does this work? If not, then your nameserver is not set up correctly.

  4. #4
    BobDeAnna is offline Registered User
    Join Date
    Dec 2004
    Posts
    12
    Marc,

    That's the problem.

    When I do an NLSLookup of "xxx", if finds it, but there is an additional suffix on the end of my machine name.

    This suffix does not appear in the error message, so I assume that is why Ice is having a problem.

    How do I resolve the two?

    Thanks!
    Bob

  5. #5
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    I would suggest to run your Ice process with --Ice.Trace.Network=3. This will allow you to see exactly which domain name is being used by the Ice run time. Once you know that exact domain name, see whether you can resolve it with nslookup. If not, the problem is either that the domain name is wrong, in which case you most likely have configured a proxy incorrectly, or that the DNS can't resolve the valid domain name, in which case you have to fix the DNS.

    Note that you can also use IP addresses instead of a domain name for proxies and endpoints -- if your environment does not allow you to touch the DNS config, using IP addresses instead of domain names will get you off the hook.

    Cheers,

    Michi.

  6. #6
    BobDeAnna is offline Registered User
    Join Date
    Dec 2004
    Posts
    12
    Guys,

    Thanks! I will dig into in next week.

    Happy New Year!!!!
    Bob

  7. #7
    BobDeAnna is offline Registered User
    Join Date
    Dec 2004
    Posts
    12
    Guys,

    I found what the problem was here.

    On XP, you need to set an enviroment variable:
    SystemRoot=c:\windows

    I was having trouble creating sockets in a process created from Runtime.exec() until I added this to my "setenv" script.

    I found this information on a Java user group.

    Thanks,
    Bob

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 01-31-2011, 07:32 PM
  2. Replies: 1
    Last Post: 06-09-2009, 10:53 PM
  3. Replies: 1
    Last Post: 01-28-2009, 06:15 AM
  4. about "IceGrid.Registry.Admin"
    By richardma in forum Help Center
    Replies: 1
    Last Post: 11-15-2007, 07:36 AM
  5. Replies: 4
    Last Post: 10-26-2006, 11:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •