I get this Excepion when I run the Beans in my servlet
java.io.NotSerializableException:
org.apache.tomcat.core.BufferedServletInputStream
my servlet looks like this
The Quection is given inside /* ..................*/
I desperately need a quick answer......thanx
INdi
........................
public void doGet (HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out;
String title = "Servlet interface to EJB";
// set content type and other response header fields first
response.setContentType("text/html");
// then write the data of the response
out = response.getWriter();
out.println("<HTML><HEAD><TITLE>");
out.println(title);
out.println("</TITLE></HEAD><BODY bgcolor=\"#FFFFFF\">");
out.println("<H1>" + title + "</H1>");
out.println("<H2>Calling EJB...</H2>");
try {
int contentLength = request.getContentLength();
this.ist = request.getInputStream();
byte[] buf = new byte[totBytes]
String reqContentType = request.getContentType();
FileUploadHome home = (FileUploadHome)
getHome("espadaejb/FileUpload", FileUploadHome.class);
FileUpload fu = home.create();
/******************
?? CAN I PASS THE SERVLETINPUTSTREAM object into the BEAN
if not how can I get rid of this................
IN another servlet I passed the HTTPSERVLETREQUEST and IT RETURNED
a NULL an later i passed the generall java types by keeping the
object at the client side ,,,,,but for above I have to have a
ServletInputStream OBJECT in the Beans How should I do this????.....
**********************/
fu.upload(contentLength,ist,reqContentType) ;
out.println("success");
} catch(Exception e) {
out.println(e.toString());
} finally {
out.println("</BODY></HTML>");
out.close();
}
}
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]