-
Bug
-
Resolution: Done
-
Major
-
None
-
False
-
False
-
NEW
-
NEW
-
Trying to create AsyncSignalEventCommand through REST API fails with ClassCastException:
- Job execution of a job (here: 52) went into ERROR state
- 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" }
- 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 }}"
- 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)
- clones
-
RHPAM-4059 failure to create AsyncSignalEventCommand through REST API
-
- Closed
-