0 Replies Latest reply on Jul 5, 2007 11:35 AM by mikes124

    null index column for collection: org.jbpm.context.exe.Token

    mikes124

      hi all,

      I have this error on my web application that i use jboss to add a work flow module api in it.This error is lunched only on oracle9i data base,on hsql and sqlserver it work. I am using tomcat 5.0.28 and jbpm3.1.4 and my test are on several database.
      the exception is a hibernate exception i had got it when i used the hbm2ddl.auto property to create the data base schema.
      Thank you for any help.
      this is the exception:
      org.hibernate.HibernateException: null index column for collection: org.jbpm.context.exe.TokenVariableMap.variableInstances
      at org.hibernate.persister.collection.AbstractCollectionPersister.readIndex(AbstractCollectionPersister.java:652)
      at org.hibernate.collection.PersistentMap.readFrom(PersistentMap.java:222)
      at org.hibernate.loader.Loader.readCollectionElement(Loader.java:994)
      at org.hibernate.loader.Loader.readCollectionElements(Loader.java:635)
      at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
      at org.hibernate.loader.Loader.doQuery(Loader.java:689)
      at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
      at org.hibernate.loader.Loader.loadCollection(Loader.java:1919)
      at org.hibernate.loader.collection.CollectionLoader.initialize(CollectionLoader.java:71)
      at org.hibernate.persister.collection.AbstractCollectionPersister.initialize(AbstractCollectionPersister.java:520)
      at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:60)
      at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1693)
      at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
      at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
      at org.hibernate.collection.AbstractPersistentCollection.readIndexExistence(AbstractPersistentCollection.java:125)
      at org.hibernate.collection.PersistentMap.containsKey(PersistentMap.java:109)
      at org.jbpm.context.exe.VariableContainer.hasVariableLocally(VariableContainer.java:119)
      at org.jbpm.context.exe.VariableContainer.setVariable(VariableContainer.java:42)
      at org.jbpm.context.exe.VariableContainer.setVariable(VariableContainer.java:49)
      at org.jbpm.context.exe.VariableContainer$$FastClassByCGLIB$$56c4a5bb.invoke()
      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
      at org.hibernate.proxy.CGLIBLazyInitializer.intercept(CGLIBLazyInitializer.java:161)
      at org.jbpm.taskmgmt.exe.TaskInstance$$EnhancerByCGLIB$$177bf4ef.setVariable()