0 Replies Latest reply on Jul 15, 2011 2:38 AM by ogalaup

    Timer Issue ClassNotFoundException LoadContexts

    ogalaup Newbie

      Hello,

      I’m using JBPM 4.4 with webpshere.

      If I’m having this descriptor:

         <task assignee="HERE" g="507,118,170,52" name="Pause">

                        <transition g="-72,-20" name="to Pause1" to="Pause1"/>

         </task>

      => No Error

       

      If I’m using this descriptor with a timer:

         <task assignee="HERE" g="507,118,170,52" name="Pause">

                        <transition g="-72,-20" name="to Pause1" to="Pause1"/>

            <transition g="-17,6" name="timeout" to="Pause2">

                      <timer duedate="4 business days"/>

            </transition>

         </task>

      => I have this error:

       

      Exception in thread "DispatcherThread" java.lang.NoClassDefFoundError: org/hibernate/engine/loading/LoadContexts

              at org.hibernate.engine.StatefulPersistenceContext.getLoadContexts(StatefulPersistenceContext.java:171)

              at org.hibernate.type.CollectionType.getCollection(CollectionType.java:630)

              at org.hibernate.type.CollectionType.resolveKey(CollectionType.java:430)

              at org.hibernate.type.CollectionType.resolve(CollectionType.java:424)

              at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:139)

              at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:877)

              at org.hibernate.loader.Loader.doQuery(Loader.java:752)

              at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)

              at org.hibernate.loader.Loader.loadEntity(Loader.java:1881)

              at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:71)

              at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:65)

              at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3072)

              at org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:434)

              at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:415)

              at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:165)

              at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:223)

              at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:126)

              at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:905)

              at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:873)

              at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:590)

              at org.hibernate.type.EntityType.resolve(EntityType.java:412)

              at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:139)

              at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:877)

              at org.hibernate.loader.Loader.doQuery(Loader.java:752)

              at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:259)

              at org.hibernate.loader.Loader.doList(Loader.java:2228)

              at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2125)

              at org.hibernate.loader.Loader.list(Loader.java:2120)

              at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:401)

              at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:361)

              at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196)

              at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1148)

              at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)

              at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:835)

              at org.jbpm.pvm.internal.hibernate.DbSessionImpl.findFirstDueJob(DbSessionImpl.java:332)

              at org.jbpm.pvm.internal.jobexecutor.GetNextDueDateCmd.execute(GetNextDueDateCmd.java:45)

              at org.jbpm.pvm.internal.jobexecutor.GetNextDueDateCmd.execute(GetNextDueDateCmd.java:35)

              at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)

              at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)

              at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)

              at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)

              at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)

              at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)

              at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.getNextDueDate(DispatcherThread.java:132)

              at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.getWaitPeriod(DispatcherThread.java:137)

              at org.jbpm.pvm.internal.jobexecutor.DispatcherThread.run(DispatcherThread.java:76)

      Caused by: java.lang.ClassNotFoundException: org.hibernate.engine.loading.LoadContexts

              at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)

              at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)

              at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

              at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)

              at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:52)

              ... 46 more

       

       

      An idea why do I have this error ?

       

      Regards,

      Olivier