Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
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
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
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
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
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
-none-

-none-

2007-08-16       - By Len Popp

 Back
There were in fact bugs with requests > 2GB in both Tomcat and mod_jk
which were fixed recently, as Rainer pointed out. (And some of the
code was using -1 if the content-length was too large.) Upgrading to
6.0.14 or the next 5.5 release should fix the problem.

There's no size limit on commons-fileupload as far as I can tell, but
I've never tried it with a huge file.
--
Len

On 8/16/07, Christopher Schultz <chris@(protected)> wrote:
> -- --BEGIN PGP SIGNED MESSAGE-- --
> Hash: SHA1
>
> DAvid,
>
> David Hesson wrote:
> > The
> > content-length has a maximum value of 2.x billion, which is right under
> > two gigabytes.
>
> Is this a limit on commons-upload? The header itself can contain an
> arbitrarily high number, so there's no inherent file-size limit on
> uploads over HTTP.
>
> > A 2.xGB file will result in a negative content length
> > from integer overflow into the final, negative bit position.
>
> I don't think so. Java doesn't overflow like C does. Attempting to read
> an int that's too big results in an exception, not a negative result:
>
> $ cat > IntReadTest.java
> public class IntReadTest
> {
>     public static void main(String[] args)
>     {
>         System.out.println(Integer.parseInt(args[0]));
>     }
> }
> ^D
> $ javac IntReadTest
> $ java IntReadTest 2147483647
> 2147483647
> $ java IntReadTest 2147483648
> Exception in thread "main" java.lang.NumberFormatException: For input
> string: "2147483648"
>         at
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>         at java.lang.Integer.parseInt(Integer.java:463)
>         at java.lang.Integer.parseInt(Integer.java:497)
>         at IntReadTest.main(IntReadTest.java:5)
> $
>
> Now, if you were using an old version of mod_jk (which you didn't
> mention), it's possible that the Content-Length header is being
> corrupted. Since you have a filter chain, can you print the (String)
> value of the Content-Length header before processing begins? That would
> be helpful.
>
> - -chris
>
> -- --BEGIN PGP SIGNATURE-- --
> Version: GnuPG v1.4.7 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGxFDy9CaO5/Lv0PARAtz1AJ9G5qHlz2n6nY2km68upW80z5OfOwCfTlo4
> rDUomEV/r/L3L7DcjruMysc=
> =tjSt
> -- --END PGP SIGNATURE-- --
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>
>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


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