1 2 Previous Next 23 Replies Latest reply on Nov 9, 2009 5:51 AM by Sebastian Schneider

    JpdlProcessDefinition cannot be cast to java.util.List

    Edgar Chen Newbie

      === Environment ==============================
      - jBPM Version : 4.1
      - Database : oracle
      - JDK : 1.6
      - Container : which Java version are you using? use 'java -version' to find out
      - Configuration : no
      - Libraries : no

      === Process ==================================
      none

      === API ===================================

      ProcessDefinition pd = repositoryService.createProcessDefinitionQuery().processDefinitionId(historyService.createHistoryProcessInstanceQuery().processInstanceId(pid).uniqueResult().getProcessDefinitionId()).uniqueResult();


      === Stacktrace ==============================
      java.lang.ClassCastException: org.jbpm.jpdl.internal.model.JpdlProcessDefinition cannot be cast to java.util.List
       org.jbpm.pvm.internal.repository.ProcessDeployer.deploy(ProcessDeployer.java:64)
       org.jbpm.pvm.internal.repository.DeployerManager.deploy(DeployerManager.java:46)
       org.jbpm.pvm.internal.repository.RepositorySessionImpl.getObject(RepositorySessionImpl.java:120)
       org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.execute(ProcessDefinitionQueryImpl.java:72)
       org.jbpm.pvm.internal.query.AbstractQuery.execute(AbstractQuery.java:81)
       org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)
       org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.executeInNewTx(JtaTransactionInterceptor.java:79)
       org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:61)
       org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)
       org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.executeWithRetry(JtaRetryInterceptor.java:52)
       org.jbpm.pvm.internal.tx.jta.JtaRetryInterceptor.execute(JtaRetryInterceptor.java:45)
       org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:46)
       org.jbpm.pvm.internal.query.AbstractQuery.untypedList(AbstractQuery.java:62)
       org.jbpm.pvm.internal.query.AbstractQuery.untypedUniqueResult(AbstractQuery.java:69)
       org.jbpm.pvm.internal.query.ProcessDefinitionQueryImpl.uniqueResult(ProcessDefinitionQueryImpl.java:145)
       com.gaia.jbpm.core.ProcessManager.getProcessDefinitionByProcessInstanceId(ProcessManager.java:398)
       com.gaia.jbpm.core.ProcessManager.getActivityCoordinatesInfo(ProcessManager.java:349)
       com.gaia.jbpm.action.GetActiveNodeInfo.execute(GetActiveNodeInfo.java:66)
       com.gaia.dispatcher.ActionDispatcher.process(ActionDispatcher.java:35)
       com.sol2.web.dispatcher.SOL2_ActionDispatcher.processRequest(SOL2_ActionDispatcher.java:69)
       com.sol2.web.dispatcher.SOL2_ActionDispatcher.doGet(SOL2_ActionDispatcher.java:52)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
       javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       com.gaia.filter.ActionFilter.doFilter(ActionFilter.java:129)
       org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)



      === Debug logs ==============================
      past debug logs here

      === Problem description =========================

      Please help me to find out what's the metter of my app. Thanks all.

        1 2 Previous Next