posted 18 years ago
When I tried to upload the icon which exceeds the requirements of this BBS, it threw an exception like this:
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
net.jforum.JForumExecutionContext.enableRollback(JForumExecutionContext.java:272)
net.jforum.JForum.service(JForum.java:209)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
--------------------------------------------------------------------------------
It's quite ugly and not user friendly. Can we catch this kind of exception and pop up a better-looking html saying that the picture to be uploaded is too big?
BTW: There is a samiliar bug about uploading file bigger than specified before.
[originally posted on jforum.net by sdzzxcly]