Hi, Have you opened the Input Stream ????. If not opened then, Please try by opening the Input Stream and close it. It forces the execution. InputStream in = servConn.getInputStream(); in.close(); I observed, the resource is not executing if we don't open the InputStream... Hope it may solve u r problem.
Regards, Pratt. ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 10, 2003 6:43 PM Subject: Connection among application and servlet > Hi all. > > I've an application that it connects with a servlet through HttpsURLConnection > class. My problem is when I intend to send data on this connection. > > Application: > > HttpsURLConnection servConn = new HttpsURLConnection(new URL(<servlet>)); > servConn.setSSLContext(context); -- this context is correct. > servConn.setRequestMethod("POST"); > servConn.setDoInput(true); > servConn.setDoOutput(true); > > servConn.setRequestProperty("Content-type","application/octet-stream"); > > ObjectOutputStream oos = new ObjectOutputStream(servConn.getOutputStream()); > oos.writeObject(<object to send>); > oos.close(); > ... > > When I execute this code, I obtain the following error: > > HttpException: Unable to contact target server <server>:8443 after 3 tries. > > If I don't send data from my application, the servlet is loaded correctly. But > I can't to send nothing to my servlet. > > How can I solve this problem?? > > > Note: HttpsURLConnection is a IAIK module that simulate a secure connection as > a web connection. > > Regards. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]