This week's book giveaway is in the Design and Architecture forum.
We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

PNG file attachment, throws exception

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(originally posted to wrong forum, sorry!)

Hi,

I attempted to upload a 181K .PNG, that does open without problem in Gimp, to the JForum.net test forum and received the following error:

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)

...my own install of JForum gives the same error. I don't know even httpdservlet so any help in translating the above would be a great help.

Also, from having done a little reading on these forums I am wondering whether there will be some unsupported PNG formats that JForum will not be able to handle.

Is JForum attempting to convert this .PNG to PNG?

Thank you for any info,
-ken
[originally posted on jforum.net by ken0]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
...I've been searching for howto turn on log4j / logging outside of the general tomcat logs and I know there are posts on how to do this but as it is I don't have better error reports than what I posted above.

I have converted this particular PNG, that fails, to jpg, gif, and tiff and scaled it down to below my jforum configured minimum thumbnail settings, but I still get the same exception thrown.

However, converting a different image (.gif) to .png works fine, so this problem seems to be with this particular image...I still need to figure out why tho so I can tell my forum users why.

I realiize only the folk who wrote the classes might be able to comment, but maybe someone java or graphics lib savvy might know what's going on. I'm java ignorant at this point, but attempting to learn servlets.
-ken
[originally posted on jforum.net by ken0]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
anuther update: it seems that regardless of image format, an uncompressed image size less than 900 KB will upload but an uncompressed image size of > 1 MB will not upload on my forum.

I've configured the attachments to allow 16MB uploads (using groups) -- and restarted tomcat -- but still no success.


[originally posted on jforum.net by ken0]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh I see that I have the same problem as:

https://coderanch.com/t/575926

...and I too am using 2.1.6 so I'll check there for the answer.
[originally posted on jforum.net by ken0]
 
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic