File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes java.lang.NullPointerException with large attach Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "java.lang.NullPointerException with large attach" Watch "java.lang.NullPointerException with large attach" New topic

java.lang.NullPointerException with large attach

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I get this error message when I try to upload a large file attach (with large I mean 729kb) :


JForum 2.1.8 is on W2003 with tomcat 5.5 in a dedicated installation
The temp directory exists and it has the right grants. To check this I added a System.out.println("directory ===>" + tempDir); in getTempFile method of DiskFileItem class.

Any suggestions?


[originally posted on by radar]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I made further tests I discovered the issue is with IE 7.
With IE 6 and FireFox 2.0 it works fine

[originally posted on by radar]
Don't get me started about those stupid light bulbs.
subject: java.lang.NullPointerException with large attach
Similar Threads
attach files exception, and set attach file size limit exception
can't upload avatar in 2.1.6
Throws exception when posting with attached files
Error when attachments