Hello,
We are developing a web based application using Applet servlet
communication. Data from the applet is passed on to the servlet using an
object output stream
Serializable objs[]
URLConnection con = servlet.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);
con.setRequestProperty("Content-Type","java-internal"
+objs.getClass().getName());
// Write the arguments as post data
ObjectOutputStream out = new
ObjectOutputStream(con.getOutputStream());
out.writeObject(objs);
out.flush();
out.close();
return new ObjectInputStream( con.getInputStream() );
Above is the code that does the actual data exchange.
We are using IIS 4.0 with JRun 3.0.
We find that the html to servlet communication works fine. However when we
try passing objects
in the above manner. We get an exception. The servlet communication is
established & we get
a value for the con object but we get an IOException
java.io.IOException: www.proact.com:80//servlet/PWS_LogonStatusCheck
at com/ms/net/wininet/http/HttpInputStream.connect
at com/ms/net/wininet/http/HttpInputStream.<init>
at com/ms/net/wininet/http/HttpURLConnection.createInputStream
at com/ms/net/wininet/WininetURLConnection.getInputStream
at com/ms/net/wininet/http/HttpPostBufferStream.close
at java/io/ObjectOutputStream.close
at PWG_ServletWriter.postObjects
at PWG_DatabaseProxy.exchangeDataWithServlet
at PWA_WorkComEntry.init
at com/ms/applet/AppletPanel.securedCall0
at com/ms/applet/AppletPanel.securedCall
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.processSentEvent
at com/ms/applet/AppletPanel.run
at java/lang/Thread.run
Please comment. Help needed urgently
Regards
Thomas
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.