If you do: if you have X installed, then you shoulnd't get this error. If you don't have X installed, then the -Djava.awt-headless=true should work.. if you tryied headles, how did you configured it?
Also, did you give write permission to the "images" dir?
If you are not using Linux: then that's bizarre. Check if the 'images" dir has write permission for everyone.
I'll update the code to display in the logs the exception occurred.
Rafael [originally posted on jforum.net by Rafael Steil]
Running WinXP. Now I have tried it on 2 different machines(same DB though... MySQL 3.23). And I have the same problem.
I have set the write permissions correctly on the images folder.
I think I got a little further by creating the "tmp" directory. Now I can see the images being uploaded in the tmp folder but I still get the same error message. If I rename the tmp file to ".jpg" then the image is fine.
Tried outputting the exception to the log file(stderr and stdout) like you suggested but I couldn't see anything. Thought that was strange since the exception is only thrown a single place as far as I could see.
I had the same issue with avatars on WinXP. You need to create the directory 'avatar' within the images directory. For some reason on manual install it wasn't created. Hope that helps others! [originally posted on jforum.net by Didas]
When I installed JForum 2.1, I had this identical error. I inserted the "e.printStrackTrace();" and was able to view the error in the log file. Which basically said the 'images/avatar' file did not exist. I simply created the 'avatar' directory and all was good. [originally posted on jforum.net by Didas]
Maybe on installation I messed something up?? I'm still having issues with the email notification... "Caused by: java.lang.NoSuchMethodError: javax.mail.Session.getDefaultInstance(Ljava/util/Properties; )Ljavax/mail/Session;"
Driving myself nuts with this one... [originally posted on jforum.net by Didas]
Friends help you move. Good friends help you move bodies. This tiny ad will help: