Javier, Jason:

If it's any help, I can confirm that I'm having the same problem with a
different multipart class - it's iPlanet for sure.

Mike
Jcorporate Ltd
http://www.javacorporate.com

> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jason
> Hunter
> Sent: Saturday, December 02, 2000 12:28 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Problems with upload in Iplanet Web server
>
>
> > "Corrupt form data: premature ending"
> >
> > i  have no idea why is happennig that...  i tested it using tomcat 3.1
> > under solaris 2.6 and it works fine, i tested it using tomcat 3.1
> > under windows nt and it works...
> > but in the production server it fails :(, the production server uses
> > Iplanet 4.1 under solaris...
>
> Isn't hard to deduce something's going wrong with iPlanet.  Looks like
> it's not giving valid data on the input stream.  Add debug statements to
> print out exactly what it's reporting.  Also use a tool like DAT (from
> IBM's alphaworks) to see what traffic is going on over the socket.  I
> suspect you'll find iPlanet isn't telling the whole story.
>
> Let us know what you find.  (CC me, as I only skim this list now.)
>
> -jh-
>
> >
> > i  read the iplanet documentation and it says:
> > -----------------------------------------------------------
> > ----------Begin iplanet documenration---------------------
> > -----------------------------------------------------------
> > Request.getInputStream and getReader
> >
> >    There are two ways for a servlet to read the raw data posted by a
> > client:
> >
> >        by obtaining the InputStream through the request.InputStream
> > method, an older method.
> >
> >        by obtaining a BufferedRead through the request.getReader method,
> > a method in use since 2.0.
> >
> >    Clarification
> >
> >    A servlet hangs if it attempts to use an InputStream to read more
> > data than is physically available. (To find how much data is
> available, use
> >    request.getContentLength.) However, if the servlet reads data using a
> > BufferedReader returned from a call to getReader, the allowed content
> > length is
> >    automatically taken into account.
> >
> >    You can also set the inputStreamLengthCheck parameter to true in the
> > contexts.properties file to prevent this problem.
> > -----------------------------------------------------------
> > ----------End iplanet documenration---------------------
> > -----------------------------------------------------------
> >
> > I look into the MultipartRequest code and i saw that it uses the
> > InputStream instead of the BufferedReader, i try to change the code but
> > i always get the following error:
> > "Corrupt form data: no leading boundary"
> >
> > Any ideas?
> >
> > Thanks in advance..
> >
> > Javier Galindo
> > [EMAIL PROTECTED]
> >
> >
> __________________________________________________________________
> _________
> > 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
>
> __________________________________________________________________
> _________
> 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

___________________________________________________________________________
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