5 Replies Latest reply on Jun 23, 2009 4:12 AM by heiko.braun

    Transaction interceptor changes

    heiko.braun

      Most recent TX interceptor changes, break the console and the deployer:


      Caused by: org.jbpm.api.JbpmException: invalid transaction state: STATUS_ACTIVE
       at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:60)
       at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
       at org.jbpm.pvm.internal.repository.RepositoryServiceImpl.createProcessDefinitionQuery(RepositoryServiceImpl.java:77)
       at org.jbpm.integration.console.ProcessManagementImpl.getProcessDefinitions(ProcessManagementImpl.java:54)
       ... 45 more
      
      


      Basically you cannot run within a provided transaction context (like ejb REQUIRED semantics).

        • 1. Re: Transaction interceptor changes
          heiko.braun

          @Tom: Btw, if you would have kept the integration tests I did provide a while ago, this would have occurred in the nightly QA. So I'd say the current integration tests are insufficient.

          • 2. Re: Transaction interceptor changes
            heiko.braun

            For completeness, here's the Deployer error:


            Caused by: org.jbpm.api.JbpmException: couldn't lookup 'java:comp/UserTransaction' from jndi: UserTransaction not bound: UserTransaction not bound
             at org.jbpm.pvm.internal.tx.jta.JtaTransaction.lookupFromJndi(JtaTransaction.java:131)
             at org.jbpm.pvm.internal.tx.jta.JtaTransaction.lookupJeeUserTransaction(JtaTransaction.java:110)
             at org.jbpm.pvm.internal.tx.jta.JtaTransactionInterceptor.execute(JtaTransactionInterceptor.java:46)
             at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54)
             at org.jbpm.pvm.internal.repository.DeploymentImpl.deploy(DeploymentImpl.java:91)
             at org.jbpm.integration.spi.DeploymentAdaptor.deploy(DeploymentAdaptor.java:62)
            
            


            • 3. Re: Transaction interceptor changes
              camunda

              I already tackled that problem, but I saw I just send it to Tom via Mail and forgot the mailing list, sorry...

              Here the JIRA issue for it: https://jira.jboss.org/jira/browse/JBPM-2339

              • 4. Re: Transaction interceptor changes
                tom.baeyens

                 

                "heiko.braun@jboss.com" wrote:
                @Tom: Btw, if you would have kept the integration tests I did provide a while ago, this would have occurred in the nightly QA. So I'd say the current integration tests are insufficient.


                which ones are you referring to ?

                • 5. Re: Transaction interceptor changes
                  heiko.braun

                  A while ago I've commited a change to the samples that created .bar archives and deployed them through the deployer. something like this would have caught the problems in hudson already. Unfortunately you reverted that change.