• Post Reply Bookmark Topic Watch Topic
  • New Topic

Info is never sent to SQL. Can someone shed some light  RSS feed

Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an applet which connects to a servlet which in turn connect to sql.I get the following error however IOEXception at java/io/ObjectOutputStream.close No information is being stored in sql however. My question is should the information still be stored since close() is called in the end? Or the information is never sent trough because of the error regardless of where it takes place.

Thank u all for your time
URL dataURL = new URL("http://servename/Servlet/Serve");
URLConnection connection = dataURL.openConnection();
connection.setUseCaches (false);
connection.setDefaultUseCaches (false);
connection.setRequestProperty ("Content-Type", "application/octet-stream");
ObjectOutputStream out = new ObjectOutputStream(connection.getOutputStream());
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!