Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.net.ConnectException: Operation timed out: connect

843830Oct 14 2005 — edited Oct 26 2005
code:
URL url = new URL((URL)null,<a servlet url here>,new HttpTimeoutHandler(this.timeout));
URLConnection con = url.openConnection();
con.setUseCaches(false);
sendHeaders(con);
======================================
when session is alive, the code is ok. but when session timeout, these code will cause exception:
java.net.ConnectException: Operation timed out: connect


Please help me! Thank you!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2005
Added on Oct 14 2005
1 comment
355 views