File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

java.lang.NullPointerException with large attach

Migrated From Jforum.net
Ranch Hand

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

java.lang.NullPointerException
net.jforum.JForum.handleException(JForum.java:280)
net.jforum.JForum.service(JForum.java:205)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)

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?

TIA
MDT

[originally posted on jforum.net by radar]
Migrated From Jforum.net
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

TIA
[originally posted on jforum.net 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
Attachments