Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help:How can I update from 2.1.6 to 2.1.7?

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to fix the problem of attachment whose size is greater than 100K will fail when uploading. So I get the Jforum version 2.1.7 from cvs.
I am using mysql 5.0 as the database.
Then How can I update the Jforum and the Mysql database structure? :?:

Thank you very much !
[originally posted on jforum.net by aathok]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your only problem is the attachments thing, then just create a directory named "tmp" in your application's root and give it full write access.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much!
According to your measure, it works correctly now.

But why doing this can fix the 100K problem ? :?:
I have read the code and haven't found what caused that ?
Can you tell me something about that ? 8)
Thank you :!: .

Below are the error report of the 100K problem:

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)



[originally posted on jforum.net by aathok]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
100k is the default memory limit for attachments - anything larger is first written to the disk - and here enters the temporary directory.

Rafael
[originally posted on jforum.net by Rafael Steil]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot :!:
[originally posted on jforum.net by aathok]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic