Details
-
Bug Report
-
Resolution: Won't Fix
-
L3 - Default
-
None
-
7.12.0, 7.11.3
-
None
-
None
Description
Steps to reproduce:
- Setup Weblogic server
- Deploy a process which creates an incident and start a process instance
- In Cockpit restart the failed job
- Navigate to the historic view of the failed process instance in Cockpit.
- Open the Incidents tab
Observed:
Two incidents are displayed with Open state even though, one of them has an end time
The response of a historic incident request is similar to:
POST http://portainer.camunda.loc:30225/camunda/api/cockpit/plugin/history/default/incident/?firstResult=0&maxResults=50 {"processInstanceIdIn":["procInstId"],"activityIdIn":[]} [{ "activityId":"Task_151k337", "causeIncidentActivityId":"Task_151k337", "causeIncidentId":"23e3ac7e-0c58-11ea-96d8-0242ac12000c", "causeIncidentProcessDefinitionId":"inc:1:148e328b-0c58-11ea-96d8-0242ac12000c", "causeIncidentProcessInstanceId":"23c5eb40-0c58-11ea-96d8-0242ac12000c", "configuration":"23c66072-0c58-11ea-96d8-0242ac12000c", "createTime":"2019-11-21T13:12:08.7+01:00", "endTime":"2019-11-21T13:17:48.382+01:00", "executionId":"23c5eb40-0c58-11ea-96d8-0242ac12000c", "historyConfiguration":"23e225dd-0c58-11ea-96d8-0242ac12000c", "id":"23e3ac7e-0c58-11ea-96d8-0242ac12000c", "incidentMessage":"ENGINE-09008 Exception while instantiating class 'foo': ENGINE-09017 Cannot load class 'foo': foo", "incidentType":"failedJob", "processDefinitionId":"inc:1:148e328b-0c58-11ea-96d8-0242ac12000c", "processInstanceId":"23c5eb40-0c58-11ea-96d8-0242ac12000c", "rootCauseIncidentActivityId":"Task_151k337", "rootCauseIncidentConfiguration":"23c66072-0c58-11ea-96d8-0242ac12000c", "rootCauseIncidentId":"23e3ac7e-0c58-11ea-96d8-0242ac12000c", "rootCauseIncidentMessage":"ENGINE-09008 Exception while instantiating class 'foo': ENGINE-09017 Cannot load class 'foo': foo", "rootCauseIncidentProcessDefinitionId":"inc:1:148e328b-0c58-11ea-96d8-0242ac12000c","rootCauseIncidentProcessInstanceId":"23c5eb40-0c58-11ea-96d8-0242ac12000c" }]
Expected:
One Open incident and one Resolved incident to be displayed
The response of a historic incident request similar to:
[{ POST http://portainer.camunda.loc:30225/camunda/api/cockpit/plugin/history/default/incident/?firstResult=0&maxResults=50 {"processInstanceIdIn":["procInstId"],"activityIdIn":[]} activityId: "Task_151k337" causeIncidentActivityId: "Task_151k337" causeIncidentId: "794dc03d-0c5a-11ea-ba26-e4a7a094a9d6" causeIncidentProcessDefinitionId: "inc:1:67e1000d-0c5a-11ea-ba26-e4a7a094a9d6" causeIncidentProcessInstanceId: "7931adaf-0c5a-11ea-ba26-e4a7a094a9d6" configuration: "7933a881-0c5a-11ea-ba26-e4a7a094a9d6" createTime: "2019-11-21T13:28:50.995+0100" deleted: false endTime: "2019-11-21T13:29:07.840+0100" executionId: "7931adaf-0c5a-11ea-ba26-e4a7a094a9d6" id: "794dc03d-0c5a-11ea-ba26-e4a7a094a9d6" incidentMessage: "ENGINE-09008 Exception while instantiating class 'foo': ENGINE-09017 Cannot load class 'foo': foo" incidentType: "failedJob" open: false processDefinitionId: "inc:1:67e1000d-0c5a-11ea-ba26-e4a7a094a9d6" processInstanceId: "7931adaf-0c5a-11ea-ba26-e4a7a094a9d6" resolved: true rootCauseIncidentActivityId: "Task_151k337" rootCauseIncidentConfiguration: "7933a881-0c5a-11ea-ba26-e4a7a094a9d6" rootCauseIncidentId: "794dc03d-0c5a-11ea-ba26-e4a7a094a9d6" rootCauseIncidentMessage: "ENGINE-09008 Exception while instantiating class 'foo': ENGINE-09017 Cannot load class 'foo': foo" rootCauseIncidentProcessDefinitionId: "inc:1:67e1000d-0c5a-11ea-ba26-e4a7a094a9d6" rootCauseIncidentProcessInstanceId: "7931adaf-0c5a-11ea-ba26-e4a7a094a9d6" }]
Hints:
Currently open, resolved and deleted properties are missing in the response in Weblogic. [1]
The scenario is not reproducible on Tomcat, WildFly and WebSphere.