Re: Apparently-random UnknownHostException while attempting POST operation

2013-09-25 Thread Jerome Louvel
Thanks Robert for sharing your solution to this issue!

Best regards,
Jerome


2013/9/25 Robert Dodier 

> Problem solved, I hope -- apparently IPv6 causes trouble for the Java VM
> -- this is a bug in Java, but a workaround is to put
> -Djava.net.preferIPv4Stack=true on the Java command line. It seems to have
> made the UnknownHostException go away, so I am happy!
>
> Others have bumped into this bug; see:
>
> http://stackoverflow.com/questions/1608503/domain-name-resolution-not-working-in-java-applications-on-ubuntu64-9-04-machine
>
> and also:
> http://www-01.ibm.com/support/docview.wss?uid=nas8N1011363
>
> Hope this helps,
>
> Robert Dodier
>
> --
>
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3065253
>

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3065260

RE: Apparently-random UnknownHostException while attempting POST operation

2013-09-25 Thread Robert Dodier
Problem solved, I hope -- apparently IPv6 causes trouble for the Java VM -- 
this is a bug in Java, but a workaround is to put 
-Djava.net.preferIPv4Stack=true on the Java command line. It seems to have made 
the UnknownHostException go away, so I am happy!

Others have bumped into this bug; see:
http://stackoverflow.com/questions/1608503/domain-name-resolution-not-working-in-java-applications-on-ubuntu64-9-04-machine

and also:
http://www-01.ibm.com/support/docview.wss?uid=nas8N1011363

Hope this helps,

Robert Dodier

--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=3065253