File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes Can't add new Forums Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Can Watch "Can New topic

Can't add new Forums

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I can't add a new forum to my install (JForum 2.1.7). No matter how I fill out the form, I get the error at the end of this post. Any ideas?

13:27:24,471 ERROR [ExceptionWriter ] net.jforum.exceptions.ForumException: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor164.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at net.jforum.Command.process(
at net.jforum.view.admin.AdminCommand.process(
at net.jforum.JForum.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$
Caused by: java.lang.reflect.InvocationTargetException
... 24 more
Caused by: java.lang.NumberFormatException: null
at java.lang.Integer.parseInt(
at java.lang.Integer.parseInt(
at net.jforum.context.web.WebRequestContext.getIntParameter(
at net.jforum.view.admin.ForumAction.handleMailIntegration(
at net.jforum.view.admin.ForumAction.insertSave(
... 24 more

[originally posted on by graeme]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
This was a bug in the net.jforum.view.admin.ForumAction file, relating to some new mail handling code. It's been commented out in CVS to fix the problem. Just download the latest file from CVS and recompile. That should fix your problem.
[originally posted on by jbanes]
I agree. Here's the link:
subject: Can't add new Forums
Similar Threads
Error when storing profile
java.lang.reflect.InvocationTargetException (another one)
Caused by: java.lang.NullPointerException
ForumRepository.getAllCategories NullPointerException
Can't register new users