I searched the archives and have seen versions of this problem but no applicable solution to this problem. I'm using JDK1.3 and Tomcat server 4.0.
I have a Swing application that does a doGet on a servlet and receives serialized data from a servlet with no problem at all. I do some updates on this data and want to send it back to another servlet so that it can update a database. The problem seems to be that the application doesn't open a connection with the servlet and doesn't give any exceptions. I have even put in a false servlet name and still don't get an exception. I've set up the servlet to just print to the console but like I said, the application just doesn't connect with the servlet. Following is my code to output serializable vector data to the servlet. try { URL outURL = new URL "http://172.16.0.13:8080/border/servlet/RailCrossUpdate"); URLConnection outCon = outURL.openConnection(); outCon.setUseCaches(false); outCon.setDefaultUseCaches(false); //outCon.setDoInput(true); outCon.setDoOutput(true); outCon.setRequestProperty("Content-type", "application/octet-stream"); OutputStream out = outCon.getOutputStream(); ObjectOutputStream outStream = new ObjectOutputStream(out); outStream.writeObject(testColumnNames); outStream.flush(); outStream.close(); System.out.println("vector size is " + outRowData.size()); } catch (Exception eo) { JOptionPane.showMessageDialog(null, "Can't connect to the database. Submit again later", "Database Connection Error", JOptionPane.ERROR_MESSAGE); eo.printStackTrace(); } ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html