3 Replies Latest reply on Sep 23, 2010 4:18 AM by Michael Wohlfart

    Exceptions with hibernate session mappings in 4.5.SNAPSHOT

    Stefano Cancedda Newbie

      hi,

      yesterday I've updated the JBPM snapshot of my pom  to 4.5-SNAPSHOT. now all my tests are falling always during hibernate session startup! The exception occurs during the mapping validation:

       

      09:19:40,204 FIN | [WireContext] eagerly initializing org.jbpm.pvm.internal.id.DatabaseIdComposer

      09:19:40,225 INF | [Environment] Hibernate 3.3.1.GA

      09:19:40,228 INF | [Environment] hibernate.properties not found

      09:19:40,261 INF | [Environment] Bytecode provider name : javassist

      09:19:40,266 INF | [Environment] using JDK 1.4 java.sql.Timestamp handling

      09:19:40,324 INF | [Configuration] configuring from resource: jbpm.hibernate.cfg.xml

      09:19:40,325 INF | [Configuration] Configuration resource: jbpm.hibernate.cfg.xml

      09:19:40,417 INF | [Configuration] Reading mappings from resource : jbpm.repository.hbm.xml

      09:19:40,583 INF | [Configuration] Reading mappings from resource : jbpm.execution.hbm.xml

      09:19:40,715 INF | [Configuration] Reading mappings from resource : jbpm.history.hbm.xml

      09:19:40,763 INF | [Configuration] Reading mappings from resource : jbpm.task.hbm.xml

      09:19:40,794 INF | [Configuration] Reading mappings from resource : jbpm.identity.hbm.xml

      09:19:40,841 INF | [Configuration] Configured SessionFactory: null

      ### EXCEPTION ###########################################

      09:19:40,849 INF | [DefaultCommandService] exception while executing command org.jbpm.pvm.internal.cmd.CheckDbCmd@b4cbc5

      Caused by: org.hibernate.MappingException: property mapping has wrong number of columns: org.jbpm.pvm.internal.history.model.HistoryVariableUpdateImpl.oldValue type: object

           at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:459)

           at org.hibernate.mapping.SingleTableSubclass.validate(SingleTableSubclass.java:66)

           at org.hibernate.cfg.Configuration.validate(Configuration.java:1135)

           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1320)

           at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)

           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)

      ... 57 more

       

       

       

      I've executed test with hsqldb in-memory  and table generation (using JbpmTestCase as base-class), and also with the full test architecture of my project (Spring-test-framework classes with SpringJUnit4ClassRunner, EntityManager as SessionFactory passed to SpringProcessEngine, and local datasource connection with remote Oracle10g database containing jBPM schema -running on xubuntu os).

       

      It's nothing wrong with classes, as far i can see, and the error happens also with fresh generated tables.

       

      Any hints?