[jboss-user] [JBoss jBPM] - No auto-id for jbpm when running on Oracle

janvandeklok do-not-reply at jboss.com
Tue Dec 16 05:42:16 EST 2008


   We are running seam/jbpm on oracle.  The jbpm version is 3.3.0 GA
We ran into several problems that we did not experience when running the stuff on HSQLB.

One of the problems (and this is probably also the cause for other oracle related problems) is that oracle does not have auti-id fields. As far as I can see, JBPM has not solved this problem meaning that we cannot start processinstances using the jbpm-console because hibernate tries to write records with a null in its id field. 

 Here is the exception:

2008-12-16 11:29:36,580 WARN  [org.hibernate.util.JDBCExceptionReporter] SQL Error: 1400, SQLState: 23000
  | 2008-12-16 11:29:36,627 ERROR [org.hibernate.util.JDBCExceptionReporter] ORA-01400: cannot insert NULL into ("JANVDKLOK"
  | ."JBPM_TOKEN"."ID_")

And yes, we have specified the oracle dialect.

I could not find any solution to this problem in the documentation.
I suppose the solution will be :
 - creating one or more (for each table) oracle sequences and apply triggers to the database that get new id's for each new record.

Since I don't want to reinvent the wheel : 
   - has anybody founda solution to this problem? 
   - Have I overlooked anything inthe documentation?

Jan van de Klok

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4196837#4196837

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4196837

More information about the jboss-user mailing list