First the answer to your question is written in your post :
java.io.NotSerializableException:
  org.apache.tomcat.core.BufferedServletInputStream

Meaning the object you want to pass to the Bean is NOT serializable (ie: 
do not implements Serializable).
that has nothing to do to Jboss and maybe you should ask a more related 
mailing list.

Having said that, what you can do is read from you Stream in your 
servlet to a class you make that do implements Serializable and pass 
this Class to the Bean.
regards,
Elouan.

Indika Fernando wrote:

> 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]



--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]

Reply via email to