*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.NullPointerException with large attach