This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JForum and the fly likes Help:How can I update from 2.1.6 to 2.1.7? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Help:How can I update from 2.1.6 to 2.1.7?" Watch "Help:How can I update from 2.1.6 to 2.1.7?" New topic
Author

Help:How can I update from 2.1.6 to 2.1.7?

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
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

Joined: Apr 22, 2012
Posts: 17424
Thanks a lot :!:
[originally posted on jforum.net by aathok]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help:How can I update from 2.1.6 to 2.1.7?
 
Similar Threads
How can i delete topics?
Database Error
Version 2.1.4 --> 2.1.5 --> 2.1.7 Forums disappeared
probleme with datasource configuration
New Tomcat 5.5.17 ?