camunda / camunda-bpm-platform

Flexible framework for workflow and decision automation with BPMN and DMN. Integration with Quarkus, Spring, Spring Boot, CDI.
https://camunda.com/
Apache License 2.0
4.1k stars 1.55k forks source link

ProcessInstanceModificationBuilder.execute() throw NullPointerException #4719

Open Fcastineiras opened 1 day ago

Fcastineiras commented 1 day ago

Environment (Required on creation)

JDK 17 - Oracle - camunda-bpm-spring-boot-starter-webapp 7.19.0

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

The same lines to execute success the ProcessInstanceModificationBuilder instanced with 7.16.0 is broken with this version (7.19.0).

Cannot invoke org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.getFlowScopeExecution() because the return value of *org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.getParent()" is null java. Lang.NullPointerException Create breakpoint : Cannot invoke "org.camunda.bpm.engine.1mpl.pvm.runtime.PvmExecutionImpl.getFlowScopeExecution()" because the return value of "org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.getParent()* 1s null at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.getFlowScopeExecution(PvmExecutionImpl.java:1565) ~[camunda-engine-7.19.0.Jar:7a .19.0] at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.getFlowScopeExecution(PvnExecut1onImpl.java:1565) -[camunda-engine-7.19.0.jar:7 .19.0) at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.createActivityExecutionMapping(PvmExecutionImpl.java:1551) -[camunda-engine-7 .19.0.jar:7.19.0] at org.camunda.bpm.engine.impl.tree.ActivityExecutionHierarchyWalker.<init>(ActivityExecutionH1erarchyWalker.java:40) ~[camunda-engine-7.19 .0.jar:7.19.0] at org.camunda.bpm.engine.impl.bpmn.helper.BpmnExceptionHandler.propagateError(BpmnExceptionHandler.java:99) ~[camunda-engine-7.19.0.jar:7 19.0] at org. camunda.bpm.engine.impl.bpmn.helper.BpmnExceptionHandler-propagateBpmnError(BpmnExcept1onHandler.java:94) ~[camunda-engine-7.19.0 •Jar:7.19.0) at org.camunda.bpm.engine.impl.bpmn.helper.BpmnExceptionHandler-propagateException(BpmnExcept1onHandler.java:50) -[camunda-engine-7.19.0 -Jar:7.19.0] at org.camunda.bpm.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.executeWithErrorPropagation(AbstractBpmnAct1v1tyBehavionjava:95) -[camunda-engine-7.19.0.Jar:7.19.01 at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskDelegateExpressionActivityBehavior.doSignal (ServiceTaskDelegateExpressionAct/vityBehavior.1ava:91) ~[camunda-engine-7.19.0.jar:7.19.0) at org.camunda.bpm.engine.1mpl.bpmn.behavior.ServiceTaskDelegateExpressionActivityBehavior.signal (SenviceTaskDelegateExpressionAct/vityBehavior.java:73) ~[camunda-engine-7.19.0.jar:7.19.0) at org.camunda.bpm.engine.impl.pvm.runtime.PvmExecutionImpl.signal(PvmExecutionImpl.java:781) -[camunda-engine=7.19.0.jar:7.19.0] at org.camunda.bpm.engine.1mpl.cmd.SignalCmd.execute(SignalCmd.java:66) ~[camunda-engine-7.19.0.jar:7.19.0) at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl. execute(CommandExecutorImpl.java:28) ~[camunda-engine-7.19.0.jar:7.19.0] at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContext/Interceptor.java:110) ~[camunda-engine-7.19.0

Breakdown

### Pull Requests

Dev2QA handover

joaquinfelici commented 1 day ago

Hello @Fcastineiras, Thanks for raising this. I cannot see any mention of class ProcessInstanceModificationBuilder in the stack trace you provided, maybe you could share a more complete log file. Could you also provide an example of a code snippet that was successfully ran ProcessInstanceModificationBuilder.execute() in 7.16 but not in 7.19? This could help reproduce and analyze the issue.