Re: Robot Communications
Dominic <[email protected]> Mon, 09 Feb 2004 11:27:12 +0000
| Newsgroups | gmane.comp.cybernetics.webot.contest |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2004-02-09 at 09:35, Anders Lyhagen wrote:
> Hi,
>
> Your classes seems to solve my problem, unfortunately I can't makethem
> work (with XP, jdk1.4). The command
> Communication.sendDevice =newSocket(Communication.sendIP,
> Communication.sendPort);
> causes a null pointer exception due to
> Communication.sendIP = null
>
> Do you have any idea why?
I've not found that error. The variable name sendIP is a bit
misleading, it actually refers to a hostname rather than an IP address.
According to the API (1.4.2) if the value is null it should
automatically look up the hostname for the localhost. You could try
replacing the value in the declaration of sendIP with "127.0.0.1" as
Marton says, though the API wasn't clear whether this would be
accepted. Alternatively, replace it with the hostname of your machine.
I tested it on a linux distribution, it could be that the API is not
complete for winXP machines.
If changing the above doesn't work, if you send the exact errors as
printed by the virtual machine, I'll take another look. I'll be near an
XP machine later today so I'll have a go at testing it then.
Cheers
Dominic/RoyBatty
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/webots-contest/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/