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. Below is the code that does the actual data exchange.

          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() );



We are using IIS 4.0 wit hJRun 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 connection 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
Parvathy

___________________________________________________________________________
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

Reply via email to