Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-356

EJB: synchronization between EJB and REST in BC is unreliable.

XMLWordPrintable

          • Description of problem

      If I use "maven install" operation in REST to install a project then this project may not be seen by EJB.

          • Steps to reproduce

      I'm doing the following:

      1/ A request to "${serverUrl}/rest/repositories/${repo}/projects/${project}/maven/install" is sent.
      2/ Wait until the state of the deployment is equal to "DEPLOYED". This is done using REST and "${serverUrl}/rest/deployment/${deploymentId}"
      3/ Start of a process belonging to the deployment with ${deploymentId} is performed using remote EJB.

          • Additional info

      Sample output:
      [2015-01-09 10:47:27,325] INFO - Waiting for deployment 'org.jboss:integration:2.0.0-SNAPSHOT' to be in state 'DEPLOYED' ...
      [2015-01-09 10:47:28,062] INFO - Response entity: [<?xml version="1.0" encoding="UTF-8" standalone="yes"?><deployment-unit><groupId>org.jboss</groupId><artifactId>integration</artifactId><version>2.0.0-SNAPSHOT</version><kbaseName></kbaseName><ksessionName></ksessionName><strategy>SINGLETON</strategy><status>DEPLOYED</status></deployment-unit>]
      [2015-01-09 10:47:29,315] INFO - OK
      [2015-01-09 10:47:30,182] INFO - Cleaning up ...
      [2015-01-09 10:47:30,182] INFO - Found '0' active instances.

      Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.912 sec <<< FAILURE! - in org.jboss.qa.bpms.jbpm.integration.ejb.task.ETaskOperationTest
      testCompleteWorkItem(org.jboss.qa.bpms.jbpm.integration.ejb.task.ETaskOperationTest) Time elapsed: 2.911 sec <<< ERROR!
      javax.ejb.EJBException: org.jbpm.services.api.DeploymentNotFoundException: No deployments available for org.jboss:integration:2.0.0-SNAPSHOT
      at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleExceptionInOurTx(CMTTxInterceptor.java:189)
      ...

              brms-docs brms-docs brms-docs (Inactive)
              mbaluch@redhat.com Marek Baluch
              Marek Baluch Marek Baluch
              Linda Snyder Linda Snyder (Inactive)
              Marek Baluch Marek Baluch
              brms-docs brms-docs (Inactive), Kris Verlaenen, Marek Baluch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: