This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JForum and the fly likes can't upload avatar in 2.1.6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Reply locked New topic
Author

can't upload avatar in 2.1.6

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Have you tried to add -Djava.awt.headless=true as startup-parameter to you appserver?
[originally posted on jforum.net by lazee]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I have a strange problem with 2.1.6 after upgraded from 2.0.2. I can't upload avatar. Although the dimension and size of the picture is safely under the limit. I got an error like,




or,


[originally posted on jforum.net by dostoevsky]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
lazee wrote:Have you tried to add -Djava.awt.headless=true as startup-parameter to you appserver?


I tried this trick, but the error is still there when I try to upload my avatar.



The error info in the html source is,



[originally posted on jforum.net by dostoevsky]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Have you also created a 'tmp' directory inside your webapp? (Think someone else pointed out this trick. But I'm not sure if this was related)
[originally posted on jforum.net by lazee]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I already created a tmp directory in application directory, to solve thre problem that can't attach large file in post. This seems has nothing to with this problem.
[originally posted on jforum.net by dostoevsky]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Maybe you can find something usefull in this discussion:

http://forum.java.sun.com/thread.jspa?threadID=205428&messageID=1377726
[originally posted on jforum.net by lazee]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
lazee wrote:Maybe you can find something usefull in this discussion:

http://forum.java.sun.com/thread.jspa?threadID=205428&messageID=1377726


Thanks a lot for your patience, Lazee! I guess I didn't add the headless parameter right. This time, I added the following line in catalina.sh,

It's working now!

[originally posted on jforum.net by dostoevsky]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Great
[originally posted on jforum.net by lazee]
 
Consider Paul's rocket mass heater.
 
subject: can't upload avatar in 2.1.6
 
Similar Threads
Error message
a bug when upload the picture
Getting Error while creating new user.
Cant post new message
New install on MYSQL 4.1.16 - Admin cannot see forums