File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JForum and the fly likes USER_RANK error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "USER_RANK error" Watch "USER_RANK error" New topic


Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I'm working with the 2.1.8 code from CVS and am building and testing from the latest source. Things look good until I actually try and create a new user. When I do, via the Administration Console, I get the following error. It's trying to insert a USER_RANK column in the USER table, but this column does not exist (anymore?). I've tried searching the code for where this insert happens, but I'm not having any luck tracking this down. Have you seen this before? Suggestions? Thanks.

(I am using ORACLE as my database).

16:46:38,656 ERROR [ExceptionWriter ] net.jforum.exceptions.ForumException: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.jforum.Command.process(
at net.jforum.JForum.processCommand(
at net.jforum.JForum.service(
at javax.servlet.http.HttpServlet.service(
at org.mortbay.jetty.servlet.ServletHolder.handle(
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
at org.mortbay.jetty.servlet.ServletHandler.handle(
at org.mortbay.jetty.servlet.SessionHandler.handle(
at org.mortbay.jetty.handler.ContextHandler.handle(
at org.mortbay.jetty.webapp.WebAppContext.handle(
at org.mortbay.jetty.handler.HandlerWrapper.handle(
at org.mortbay.jetty.Server.handle(
at org.mortbay.jetty.HttpConnection.handleRequest(
at org.mortbay.jetty.HttpConnection$RequestHandler.content(
at org.mortbay.jetty.HttpParser.parseNext(
at org.mortbay.jetty.HttpParser.parseAvailable(
at org.mortbay.jetty.HttpConnection.handle(
at org.mortbay.thread.BoundedThreadPool$
Caused by: java.lang.reflect.InvocationTargetException
... 26 more
Caused by: net.jforum.exceptions.DatabaseException: java.sql.SQLException: ORA-00904: "USER_RANK": invalid identifier

at oracle.jdbc.dbaccess.DBError.throwSqlException(
at oracle.jdbc.ttc7.TTIoer.processError(
at oracle.jdbc.ttc7.Oall7.receive(
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(
at oracle.jdbc.driver.OracleStatement.executeNonQuery(
at oracle.jdbc.driver.OracleStatement.doExecuteOther(
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(
at net.jforum.dao.generic.AutoKeys.executeAutoKeysQuery(
at net.jforum.dao.generic.AutoKeys.executeAutoKeysQuery(
at net.jforum.dao.generic.GenericUserDAO.addNew(
... 26 more
Caused by: java.sql.SQLException: ORA-00904: "USER_RANK": invalid identifier
[originally posted on by cszamudio]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I found where the usage of USER_RANK was in the oracle.sql file. Hopefully, it's OK to remove this.
[originally posted on by cszamudio]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thanks for reporting this, the CVS code is now fixed.

The column user_rank is being called rank_id for a while.

[originally posted on by Rafael Steil]
I agree. Here's the link:
subject: USER_RANK error
It's not a secret anymore!