commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mihaela Tarjoianu" <mtarjoi...@eta2u.ro>
Subject Re: [NTP] NTPClient - client.open(NtpV3Packet.NTP_PORT);
Date Tue, 06 Jun 2006 10:05:00 GMT
Hello kai,

      Well, all the program does before throwing that exception is:

NTPUDPClient client = new NTPUDPClient();
// We want to timeout if a response takes longer than 10 seconds
client.setDefaultTimeout(10000);
try {
    client.open(NtpV3Packet.NTP_PORT);
    .................


----- Original Message ----- 
From: "kai" <kai@perfectreign.com>
To: <commons-user@jakarta.apache.org>
Sent: Friday, June 02, 2006 6:23 PM
Subject: Re: [NTP] NTPClient - client.open(NtpV3Packet.NTP_PORT);


> On Friday 02 June 2006 03:11 am, Mihaela Tarjoianu wrote:
>> Hello everybody,
>>
>>   I'm trying to run  NTPClient.java  from the package: examples.ntp,  but 
>> I
>> receive the following error:
>>
>> java.net.BindException: Address already in use: Cannot bind
>
> There's your error. Have you already set the object?
>
> -- 
> kai - www.perfectreign.com
> www.livebeans.com - the new NetBeans community
>
> 43...for those who require slightly more than
> the answer to life, the universe and everything.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message