Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
TC 4 <-oreillyMultipart- > TC5: Corrupt form data: premature ending

TC 4 <-oreillyMultipart- > TC5: Corrupt form data: premature ending

2003-12-04       - By Dirk Griesbach

 Back
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Another issue came up comparing TC4 and TC5:

using the oreilly multipart lib on TC5 causes the error
"...Corrupt form data: premature ending" on POST uploads.

As stated in the FAQ's at http://www.servlets.com/cos/faq.html
this problem is merely due to the webcontainer and has been fixed with
Tomcat 4.

I tested and can state that this problem doesn't occur with TC4.
But it is apparent with TC5 again.
Will this be fixed ?

grisi

-- -- Original Message -- --
From: Shapira, Yoav <Yoav.Shapira@(protected)>
To: Tomcat Users List <tomcat-user@(protected)>
Sent: Wednesday, December 03, 2003 3:53 PM
Subject: RE: TC 4 <-oreillyMultipart-> TC5



Howdy,
I don't have an immediate idea, which is worrisome (to me at least ;)).
Let's try to not put this oreilly jar in commons/lib, but instead in
WEB-INF/lib.

Yoav Shapira
Millennium ChemInformatics


>-- --Original Message-- --
>From: Dirk Griesbach [mailto:dgriesbach@(protected)]
>Sent: Wednesday, December 03, 2003 9:44 AM
>To: Tomcat Users List
>Subject: Re: TC 4 <-oreillyMultipart-> TC5
>
>Hi Yoav,
>
>the 'full' error trace is:
>"
>java.lang.IllegalAccessError Source code of java.lang.IllegalAccessError: tried to access method
>com.oreilly.servlet.multipart.Part.<init>(Ljava/lang/String;)V from
class
>com.oreilly.servlet.multipart.ParamPart
> at com.oreilly.servlet.multipart.ParamPart.<init>(ParamPart.java:42)
> at
>com.oreilly.servlet.multipart.MultipartParser.readNextPart(MultipartPar
ser.
>j
>ava:341)
>...< the calling servlet method >...
>"
>the source code mentioned reads:
>
>STARTSNIP of class ParamPart>>>>>>>>>>>>>>>>
>
>public class ParamPart extends Part {
>
>  /** contents of the parameter */
>  private byte[] value;
>  HashMap hashMap;
>  private String encoding;
>
>  /**
>   * Constructs a parameter part; this is called by the parser.
>   *
>   .......
>   */
>  ParamPart(HashMap hashMap, String name, ServletInputStream in,
>            String boundary, String encoding) throws IOException {
>    super(name);
<-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---
>start of error-trace
>    this.encoding = encoding;
>......
><<<<<<<<<<<<<<ENDSNIP class 'ParamPart'
>
>STARTSNIP of class 'Part' >>>>>>>>>>>>>>>>
>....
>public abstract class Part {
>  private String name;
>
>  /**
>   * Constructs an upload part with the given name.
>   */
>  Part(String name) {  <-- ---- ---- ---- ---- ---- -- this constructor
>being called causes the error I think
>
>this.name = name;
>  }
>
>  /**
>   * Returns the name of the form element that this Part corresponds
to.
>   *
>   * @(protected) the name of the form element that this Part corresponds
to.
>   */
>  public String getName() {
>    return name;
>  }
>.....
><<<<<<<<<<<<<< ENDSNIP class 'ParamPart'
>
>I have used TC 5 'as is' after standard installation; no changes to
>server.xml. Same web.xml.
>Same with TC4. The multipartlibrary both times (TC4 and TC5) being in
>"../common/lib"
>
>Same (web-)application, different results. Any ideas ?
>
>grisi
>
>-- -- Original Message -- --
>From: Shapira, Yoav <Yoav.Shapira@(protected)>
>To: Tomcat Users List <tomcat-user@(protected)>
>Sent: Wednesday, December 03, 2003 3:08 PM
>Subject: RE: TC 4 <-oreillyMultipart-> TC5
>
>
>
>Howdy,
>Class ParamPart is public and its constructor is public as well?
>Strange.  Are you running with different security settings?  Did you
put
>the library in a different place?
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-- --Original Message-- --
>>From: Dirk Griesbach [mailto:dgriesbach@(protected)]
>>Sent: Wednesday, December 03, 2003 8:28 AM
>>To: Tomcat Users List
>>Subject: TC 4 <-oreillyMultipart-> TC5
>>
>>Hi folks,
>>I encountered a strange behaviour using 'oreilly's' multipartlibary
>(from
>>Nov,2002):
>>
>>It works fine on TC 4.1.27 but exactly the same servlet and library
>with TC
>>5.0.12 and 5.0.14
>>(just copied them) the error log reads:
>>
>>"java.lang.IllegalAccessError Source code of java.lang.IllegalAccessError:
>>tried to access method
>>com.oreilly.servlet.multipart.Part.<init>(Ljava/lang/String;)V
>>from class com.oreilly.servlet.multipart.ParamPart
>>"
>>Class 'Part' IS public, so why this error on TC5 ? And no error on TC
4
>?
>>
>>Any suggestions ?
>>
>>greets
>>
>>grisi
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary
>and/or privileged.  This e-mail is intended only for the individual(s)
to
>whom it is addressed, and may not be saved, copied, printed, disclosed
or
>used by anyone else.  If you are not the(an) intended recipient, please
>immediately delete this e-mail from your computer system and notify the
>sender.  Thank you.
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>
>-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.