1 Reply Latest reply on Aug 4, 2006 1:16 PM by Ronald van Kuijk

    findLatestProcessDefinition crashes after a while

    Morti Mer Newbie

      Hello everyone,

      just after deploying my application in jbpm-starters-kit-3.1.1, it runs normally but crashes after some calls with the following exception.


      org.jbpm.JbpmException: couldn't find process definition 'my_first_workflow'
       at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.jav
      a:155)
       at action.ListeTachesAction.liste_taches(ListeTachesAction.java:60)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
       at java.lang.reflect.Method.invoke(Unknown Source)
       at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchActio
      n.java:280)
       at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:
      216)
       at action.DispatchingAction.execute(DispatchingAction.java:28)
       at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
      tProcessor.java:484)
       at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
      va:274)
       at org.apache.struts.action.ActionServlet.process(ActionServlet.java:148
      2)
       at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.jbpm.webapp.filter.AuthenticationFilter.doFilter(AuthenticationFi
      lter.java:55)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.jbpm.web.JbpmContextFilter.doFilter(JbpmContextFilter.java:83)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
      lter.java:81)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
      icationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
      ilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
      alve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
      alve.java:178)
       at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrinc
      ipalValve.java:39)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
      yAssociationValve.java:159)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
      e.java:59)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
      ava:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
      ava:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
      ve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
      a:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
      :856)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
      ssConnection(Http11Protocol.java:744)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
      int.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWor
      kerThread.java:112)
       at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassCastException: org.hibernate.hql.ast.HqlToken
       at antlr.CharScanner.makeToken(CharScanner.java:175)
       at org.hibernate.hql.ast.HqlLexer.makeToken(HqlLexer.java:39)
       at org.hibernate.hql.antlr.HqlBaseLexer.mIDENT(HqlBaseLexer.java:580)
       at org.hibernate.hql.antlr.HqlBaseLexer.nextToken(HqlBaseLexer.java:264)
      
       at antlr.TokenBuffer.fill(TokenBuffer.java:69)
       at antlr.TokenBuffer.LA(TokenBuffer.java:80)
       at antlr.LLkParser.LA(LLkParser.java:52)
       at org.hibernate.hql.antlr.HqlBaseParser.statement(HqlBaseParser.java:13
      9)
       at org.hibernate.hql.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.j
      ava:236)
       at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorIm
      pl.java:153)
       at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl
      .java:103)
       at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.jav
      a:473)
       at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:1060)
       at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1010)
       at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)
       at org.hibernate.impl.AbstractQueryImpl.uniqueResult(AbstractQueryImpl.j
      ava:650)
       at org.jbpm.db.GraphSession.findLatestProcessDefinition(GraphSession.jav
      a:138)
       ... 42 more
      


      Any help would be much appreciated.

      Thank you