File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes java.lang.reflect.InvocationTargetException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "java.lang.reflect.InvocationTargetException" Watch "java.lang.reflect.InvocationTargetException" New topic


Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424

I'm working with JForum 2.1.8 and PostgreSQL 7.4 running on SuSE Linux Enterprise Server 9 on a POWER 5+ 64 bits machine.

JForum runs well during several days, but now when I create a new post I recive this message

<!-- BEGIN ERROR STACK TRACE <br /> net.jforum.exceptions.ForumException: java.lang.reflect.InvocationTargetException <br /> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) <br /> at sun.reflect.NativeMethodAccessorImpl.invoke( <br /> at sun.reflect.DelegatingMethodAccessorImpl.invoke( <br /> at java.lang.reflect.Method.invoke( <br /> at net.jforum.Command.process( <br /> at net.jforum.JForum.processCommand( <br /> at net.jforum.JForum.service( <br /> at javax.servlet.http.HttpServlet.service( <br /> at <br /> at <br /> at <br /> at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter( <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at <br /> at$ <br /> at$ <br /> Caused by: java.lang.reflect.InvocationTargetException <br /> ... 34 more <br /> Caused by: net.jforum.exceptions.DatabaseException: java.sql.SQLException: ERROR: duplicate key violates unique constraint "jforum_topics_pkey" <br /> at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse( <br /> at org.postgresql.core.v3.QueryExecutorImpl.processResults( <br /> at org.postgresql.core.v3.QueryExecutorImpl.execute( <br /> at org.postgresql.jdbc2.AbstractJdbc2Statement.execute( <br /> at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags( <br /> at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate( <br /> at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeUpdate( <br /> at net.jforum.dao.generic.AutoKeys.executeAutoKeysQuery( <br /> at net.jforum.dao.generic.AutoKeys.executeAutoKeysQuery( <br /> at net.jforum.dao.generic.GenericTopicDAO.addNew( <br /> at <br /> ... 34 more <br /> Caused by: java.sql.SQLException: ERROR: duplicate key violates unique constraint "jforum_topics_pkey" <br /> ... 45 more <br /> <br /> URL is: /jforum/ <br /> END ERROR STACK TRACE-->

Any idea?

Thanks a lot
[originally posted on by gardan]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424

The problem was that the PostgreSQL database was reset the sequence number files.

Also I changed the JDBC driver to pg74.216.jdbc3.jar.

[originally posted on by gardan]
I agree. Here's the link:
subject: java.lang.reflect.InvocationTargetException
It's not a secret anymore!