1 Reply Latest reply on Feb 27, 2013 7:02 AM by René Zoller

    jBPM 5.4: Structure of table ProcessInstanceInfo; invalid column "ID"

    whabelitz Newbie

      Hi,

       

      We use jBPM 5.4 on a JBoss 7.1.1 server together with an Oracle database. We use JPA2 and put the necessary persistence configurations file inside our ejb.jar (persistence.xml (derived from jbpm-persistence-JPA2.xml) and JBPMorm-JPA2, ProcessInstanceInfoMapping-JPA2.xml, ExtraIndexes.hbm.xml from jbpm-persistence-jpa.jar)

       

      We create the schema for jbpm by using the sql script which was created from the ant task "jbpm.schemaexport".

      Inside these script the table ProcessInstanceInfo has the columns InstanceId, OPTLOCK, processId, startDate, lastReadDate, lastModificationDate, state, processInstanceByteArray.

      This matches the description inside ProcessInstanceInfoMapping-JPA2.xml.

       

      When working with processes, the following errors occurs:

      INFO  [stdout] (http-localhost-127.0.0.1-8080-1) Hibernate: insert into ProcessInstanceInfo (id, lastModificationDate, lastReadDate, processId, processInstanceByteArray, startDate, state, OPTLOCK, InstanceId) values (?, ?, ?, ?, ?, ?, ?, ?, ?)

      WARN  [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-localhost-127.0.0.1-8080-1) SQL Error: 904, SQLState: 42000

      ERROR [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (http-localhost-127.0.0.1-8080-1) ORA-00904: "ID": invalid identifier

       

      There is no column ID inside the table and no field with this name defined inside the mapping but there are get and set methods inside the corresponding class which referres to the field processInstanceId.

       

      Any idea why this error occurrs and how to fix it?

       

      Thanks