Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-4059

failure to create AsyncSignalEventCommand through REST API

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.13.0.GA
    • 7.11.1.GA
    • jBPM Core

    Description

      Trying to create AsyncSignalEventCommand through REST API fails with ClassCastException:

      1. Job execution of a job (here: 52) went into ERROR state
      2. Retrieve the job details through REST
        $ curl -X GET "http://localhost:8080/kie-server/services/rest/server/jobs/52?withErrors=false&withData=true" -H "accept: application/json"
        {
          "request-instance-id": 52,
          "request-status": "ERROR",
          "request-business-key": null,
          "request-message": "Ready to execute",
          "request-retries": 0,
          "request-executions": 4,
          "request-command": "org.jbpm.process.core.async.AsyncSignalEventCommand",
          "request-scheduled-date": {
            "java.util.Date": 1638222484712
          },
          "request-data": {
            "processInstanceId": 100040,
            "Signal": "a49e2b1b-5a59-407e-98f9-b05452303bfe",
            "deploymentId": "com.redhat.cee:wih-project:1.0",
            "Event": null
          },
          "response-data": {},
          "request-errors": null,
          "request-container-id": "com.redhat.cee:wih-project:1.0"
        }
        
      3. Try to create a new job through REST with the same request-data:
        curl -X POST "http://localhost:8080/kie-server/services/rest/server/jobs?containerId=com.redhat.cee%3Awih-project%3A1.0" -H "accept: application/json" -H "content-type: application/json" -d "{ \"job-command\" : \"org.jbpm.process.core.async.AsyncSignalEventCommand\", \"request-data\": { \"processInstanceId\": 100040, \"Signal\": \"a49e2b1b-5a59-407e-98f9-b05452303bfe\", \"deploymentId\": \"com.redhat.cee:wih-project:1.0\", \"Event\": null }}"
        
      4. Execution of this job fails:
        14:57:30,795 WARN  [org.jbpm.executor.impl.AbstractAvailableJobsExecutor] (EE-ManagedThreadFactory-default-Thread-1) Error during command org.jbpm.process.core.async.AsyncSignalEventCommand error message class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap'): java.lang.ClassCastException: class java.lang.Integer cannot be cast to class java.lang.Long (java.lang.Integer and java.lang.Long are in module java.base of loader 'bootstrap')
        	at deployment.kie-server.war//org.jbpm.process.core.async.AsyncSignalEventCommand.execute(AsyncSignalEventCommand.java:36)
        	at deployment.kie-server.war//org.jbpm.executor.impl.AbstractAvailableJobsExecutor.executeGivenJob(AbstractAvailableJobsExecutor.java:135)
        	at deployment.kie-server.war//org.jbpm.executor.impl.AvailableJobsExecutor.executeJob(AvailableJobsExecutor.java:33)
        	at deployment.kie-server.war//org.jbpm.executor.impl.concurrent.PrioritisedRunnable.run(PrioritisedRunnable.java:47)
        	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
            

      Attachments

        Issue Links

          Activity

            People

              rhn-support-egonzale Enrique Gonzalez Martinez (Inactive)
              rhn-support-mputz Martin Weiler (Inactive)
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Gonzalo Muñoz Fernández Gonzalo Muñoz Fernández
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: