4 Replies Latest reply on Oct 18, 2007 6:52 PM by kukeltje

    3.2alpha2 unable to load process archives

    dhartford

      Hello all,
      I'm experiencing some problems with the 3.2alpha2 whenever I deploy a process archive.

      Server log:

      15:50:43,773 ERROR [GraphSession] java.lang.ClassCastException: org.jbpm.graph.def.Node_$$_javassist_59
      15:50:43,773 ERROR [[ProcessUploadServlet]] Servlet.service() for servlet ProcessUploadServlet threw exception
      org.jbpm.JbpmException: couldn't find process definition '<<myprocess>>'
      


      I've tested this with both the Jboss IDE 2.0.0Beta2 deployment as well as the jbpm-console uploadprocess through the web. I've also tested with just the original server from the Alpha2 starter kit, as well as deployed on JEMS installed jboss 4.0.5GA.

      I do not see anything in JIRA regarding this, so I'm hoping I'm doing something wrong?
      -D

        • 1. Re: 3.2alpha2 unable to load process archives

          I'm not sure if it's the same problem I had before, but MAYBE you have your jbpm-xxx.jar file duplicated in your classpath. I was having the same ClassCastException and Ronald told me to remove any duplicated jars and that solved the problem.

          Check it and tell me if that works.


          Regads.

          • 2. Re: 3.2alpha2 unable to load process archives
            dhartford

            actually, looking further down the trace I'm gonna go check out a couple of things

            ....
            Caused by: java.lang.ClassCastException: org.jbpm.graph.def.Node_$$_javassist_59
             at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy(JavassistLazyInitializer.java:126)
             at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.getProxy(JavassistProxyFactory.java:48)
             at org.hibernate.tuple.entity.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:379)
             at org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:3388)
             at org.hibernate.event.def.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:255)
             at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:189)
             at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:101)
             at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
             at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:846)
             at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266)
             at org.hibernate.type.EntityType.resolve(EntityType.java:303)
             at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:116)
             at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:842)
             at org.hibernate.loader.Loader.doQuery(Loader.java:717)
             at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
             at org.hibernate.loader.Loader.doList(Loader.java:2144)
             at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2028)
             at org.hibernate.loader.Loader.list(Loader.java:2023)
             at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:393)
             at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
             at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
             at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
             at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
             at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.java:780)
             at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.java:153)
            


            • 3. Re: 3.2alpha2 unable to load process archives
              dhartford

              solved - the solution was in the error more 'literally' than expected.

              Two javaassist.jar's in my path :-P

              removed one and all good!

              • 4. Re: 3.2alpha2 unable to load process archives
                kukeltje

                Cool, isn't this a great forum. Helped me solve this problem in 10 minutes by using Google...