Shyam
September 30, 2020, 12:26pm
1
Hi,
I am seeing the below error quite frequently when I am doing performance testing in my application.
Unknown property used in expression: #{checkFeasibilityAdapter}. Cause: Cannot resolve identifier 'checkFeasibilityAdapter
<bpmn:sendTask id=“Check_Feasibility_Send_Task” name=“Send Check-FTTC feasiility request” camunda:delegateExpression=“#{checkFeasibilityAdapter}”>
bpmn:incoming SequenceFlow_00y7b65</bpmn:incoming>
bpmn:outgoing SequenceFlow_06bh20j</bpmn:outgoing>
</bpmn:sendTask>
<bpmn:receiveTask id=“Receive_Check_Feasibility_Response” name=“Receive FTTC Feasibility response” messageRef=“Message_1kx7r63”>
bpmn:incoming SequenceFlow_06bh20j</bpmn:incoming>
bpmn:outgoing SequenceFlow_1pkin1d</bpmn:outgoing>
</bpmn:receiveTask>
public class CheckFeasibilityAdapter implements JavaDelegate {
@Autowired
private FttcPreKci3MessageSender messageSender;
@Override
public void execute(DelegateExecution delegateExecution) throws Exception {
log.info("Entry of CheckFeasibilityAdapter");
OrderRequest orderRequest=(OrderRequest)delegateExecution.getVariable(ProcessConstants.PROCESS_VAR_ORDER_PAYLOAD);
org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression: #{checkFeasibilityAdapter}. Cause: Cannot resolve identifier ‘checkFeasibilityAdapter’
at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:63)
at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:51)
at org.camunda.bpm.engine.impl.bpmn.behavior.ServiceTaskDelegateExpressionActivityBehavior$3.call(ServiceTaskDelegateExpressionActivityBehavior.java:107)
Regards
Shyam
@Shyam Two things:
Shyam:
CheckFeasibilityAdapter
Put @Component
annotation on this class CheckFeasibilityAdapter
Use ${checkFeasibilityAdapter}
instead #{checkFeasibilityAdapter}
.
Shyam
September 30, 2020, 6:21pm
3
Hi Aravindh,
@Component is present in the Adapter.
Changing ${checkFeasibilityAdapter} doesn’t resolve the issue. I am still seeing same error .
org.camunda.bpm.engine.ProcessEngineException: Unknown property used in expression: ${checkFeasibilityAdapter}. Cause: Cannot resolve identifier ‘checkFeasibilityAdapter’
at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:63)
at org.camunda.bpm.engine.impl.el.JuelExpression.getValue(JuelExpression.java:51)
at
Can you upload your BPMN model?
Shyam
October 2, 2020, 5:55am
5
Hi Arvindh,
Uploaded the model. I have tried replacing the # with $ as suggested earlier.
fttc-check-feasibility-allocate-route.bpmn (23.0 KB)
Niall
October 2, 2020, 7:15am
6
Do you have a
@named
annotation on your CheckFeasibilityAdapter class?
Shyam
October 3, 2020, 9:41am
7
Niall:
@named
Hi Niall,
No the CheckFeasibilityAdapter class doesn’t have the @Named annotation.
@Slf4j
@Component
public class CheckFeasibilityAdapter implements JavaDelegate {
@Autowired
private FttcPreKci3MessageSender messageSender;
@Override
public void execute(DelegateExecution delegateExecution) throws Exception {
log.info("Entry of CheckFeasibilityAdapter");
Shyam
October 4, 2020, 8:35am
8
Any update on resolution for this issue please?
Nele
October 4, 2020, 9:17am
9
Hey @Shyam ,
The error occurs when you are testing right? How are you testing? If you are writing a JUnit Test with Camunda Rule, you are not in the Springcontext. Hence the beans can’t be resolved. Could that be the problem?
Kind reagrds
Nele
Shyam
October 5, 2020, 4:51am
10
Hi @Nele ,
Actually I am doing a performance test using JMeter. So I am not using JUnit. And it’s not that every request is failing. Around 60% of the requests are passing - most of the failures are due to this unknown property error.
Regards
Shyam
Hello @Nele - I am facing the same error in almost the same situation. Here is my process model:
Its simplest of the process and here is the model xml:
<?xml version="1.0" encoding="UTF-8"?>
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_031j0vs" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="4.5.0">
<bpmn:process id="cloudtalk_decrement_order" name="cloudtalk_decrement_order" isExecutable="true">
<bpmn:startEvent id="StartEvent_start_decrement_order" name="Start Decrement Order">
<bpmn:outgoing>Flow_0rqaadl</bpmn:outgoing>
</bpmn:startEvent>
<bpmn:sequenceFlow id="Flow_0rqaadl" sourceRef="StartEvent_start_decrement_order" targetRef="Activity_1h060fa" />
<bpmn:endEvent id="Event_end_decrement_order" name="End Decrement Order">
<bpmn:incoming>Flow_0shsr9o</bpmn:incoming>
</bpmn:endEvent>
<bpmn:serviceTask id="Activity_1h060fa" name="1. Get All Subscribers of the Customer" camunda:asyncBefore="true" camunda:delegateExpression="${searchSubscribersDelegate}">
<bpmn:extensionElements>
<camunda:failedJobRetryTimeCycle>R5/PT30S</camunda:failedJobRetryTimeCycle>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0rqaadl</bpmn:incoming>
<bpmn:outgoing>Flow_0rj4hqr</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_01ya1tz" name="2. Get Subscriber Details" camunda:asyncBefore="true" camunda:delegateExpression="${searchSubscriberDetailsDelegate}">
<bpmn:extensionElements>
<camunda:failedJobRetryTimeCycle>R5/PT30S</camunda:failedJobRetryTimeCycle>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0rj4hqr</bpmn:incoming>
<bpmn:outgoing>Flow_1ile4eg</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_1fslz4p" name="3. Delete Subscribers" camunda:asyncBefore="true" camunda:delegateExpression="${deleteSubscribersDelegate}">
<bpmn:extensionElements>
<camunda:failedJobRetryTimeCycle>R5/PT30S</camunda:failedJobRetryTimeCycle>
</bpmn:extensionElements>
<bpmn:incoming>Flow_1ile4eg</bpmn:incoming>
<bpmn:outgoing>Flow_0qrbh9l</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:serviceTask id="Activity_01fyrqr" name="4. Decrement Order" camunda:asyncBefore="true" camunda:delegateExpression="${decrementOrderDelegate}">
<bpmn:extensionElements>
<camunda:failedJobRetryTimeCycle>R5/PT30S</camunda:failedJobRetryTimeCycle>
</bpmn:extensionElements>
<bpmn:incoming>Flow_0qrbh9l</bpmn:incoming>
<bpmn:outgoing>Flow_0shsr9o</bpmn:outgoing>
</bpmn:serviceTask>
<bpmn:sequenceFlow id="Flow_0shsr9o" sourceRef="Activity_01fyrqr" targetRef="Event_end_decrement_order" />
<bpmn:sequenceFlow id="Flow_0rj4hqr" sourceRef="Activity_1h060fa" targetRef="Activity_01ya1tz" />
<bpmn:sequenceFlow id="Flow_1ile4eg" sourceRef="Activity_01ya1tz" targetRef="Activity_1fslz4p" />
<bpmn:sequenceFlow id="Flow_0qrbh9l" sourceRef="Activity_1fslz4p" targetRef="Activity_01fyrqr" />
</bpmn:process>
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="cloudtalk_decrement_order">
<bpmndi:BPMNEdge id="Flow_0shsr9o_di" bpmnElement="Flow_0shsr9o">
<di:waypoint x="990" y="120" />
<di:waypoint x="1102" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0rqaadl_di" bpmnElement="Flow_0rqaadl">
<di:waypoint x="218" y="120" />
<di:waypoint x="290" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0rj4hqr_di" bpmnElement="Flow_0rj4hqr">
<di:waypoint x="390" y="120" />
<di:waypoint x="490" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_1ile4eg_di" bpmnElement="Flow_1ile4eg">
<di:waypoint x="590" y="120" />
<di:waypoint x="690" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNEdge id="Flow_0qrbh9l_di" bpmnElement="Flow_0qrbh9l">
<di:waypoint x="790" y="120" />
<di:waypoint x="890" y="120" />
</bpmndi:BPMNEdge>
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_start_decrement_order">
<dc:Bounds x="182" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="160" y="145" width="82" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_0zygmlt_di" bpmnElement="Activity_1h060fa">
<dc:Bounds x="290" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ja4bub_di" bpmnElement="Activity_01ya1tz">
<dc:Bounds x="490" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1ve29z2_di" bpmnElement="Activity_1fslz4p">
<dc:Bounds x="690" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Activity_1dczydp_di" bpmnElement="Activity_01fyrqr">
<dc:Bounds x="890" y="80" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Event_0uo1y6q_di" bpmnElement="Event_end_decrement_order">
<dc:Bounds x="1102" y="102" width="36" height="36" />
<bpmndi:BPMNLabel>
<dc:Bounds x="1082" y="145" width="78" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</bpmn:definitions>