Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JForum and the fly likes Unsupported feature on 2.1.7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Unsupported feature on 2.1.7" Watch "Unsupported feature on 2.1.7" New topic
Author

Unsupported feature on 2.1.7

Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Have installed JForum 2.1.7 on Tomcat 6.0.10 with Oracle 10g. Can't create users or categories

Getting the error: Unsupported feature

Can create Groups though. And no problems when editing a user.
[originally posted on jforum.net by Christer]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
The full stack trace:

14:38:47,089 ERROR [ExceptionWriter ] net.jforum.exceptions.ForumException: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at net.jforum.Command.process(Command.java:117)
at net.jforum.JForum.processCommand(JForum.java:220)
at net.jforum.JForum.service(JForum.java:203)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at net.jforum.util.legacy.clickstream.ClickstreamFilter.doFilter(ClickstreamFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.reflect.InvocationTargetException
... 23 more
Caused by: net.jforum.exceptions.DatabaseException: java.sql.SQLException: Unsupported feature
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:269)
at oracle.jdbc.dbaccess.DBError.throwUnsupportedFeatureSqlException(DBError.java:690)
at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:3396)
at org.apache.tomcat.dbcp.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:394)
at org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:370)
at net.jforum.dao.generic.AutoKeys.getStatementForAutoKeys(AutoKeys.java:102)
at net.jforum.dao.generic.AutoKeys.getStatementForAutoKeys(AutoKeys.java:113)
at net.jforum.dao.generic.GenericUserDAO.addNew(GenericUserDAO.java:293)
at net.jforum.view.forum.UserAction.insertSave(UserAction.java:318)
... 23 more
Caused by: java.sql.SQLException: Unsupported feature
... 34 more
[originally posted on jforum.net by Christer]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Hmm, that location in the code is in the "Autokeys" section. According to the oracle.properties in the oracle db config directory and the schema there, the DB will "autoincrement" the id key.

So, check your config files to make sure that the database.support.autokeys option is set to false (in both the oracle db directory and your jforum-custom.conf.

Also make sure that you are really using the OracleDataAccessDriver. It's odd that the Exception trace lists the GenericUserDAO and not the Oracle specific one.
[originally posted on jforum.net by monroe]
Migrated From Jforum.net
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
Thank you, thank you, thank you...

dabatase.support.autokeys was set to "true" in my jforum-custom.conf. Changed it to "false" and now it works fine.

So, how could it be set to "true". Could I have done something wrong in the installation fase?
[originally posted on jforum.net by Christer]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unsupported feature on 2.1.7
 
Similar Threads
Introducing JForum3
Is Keyword replacement working
What to do with "invalid" translations in 2.1.7
PERM_MODERATION_FORUMS for Moderation
REALLY Very Serious Bug!