cancel
Showing results for 
Search instead for 
Did you mean: 

Hints ActivitiException: Unknown property used in expression

jonathan1
Champ in-the-making
Champ in-the-making
Does anyone have any hints on debugging bpmn files whose execution throws

ActivitiException: Unknown property used in expression
    at org.activiti.engine.impl.el.JuelExpression.getValue(JuelExpression.java:55)
….

?  It'd be super useful to know what the unknown property is.  Can I submit a Jira/request to augment the error message?
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
I'm afraid Activiti just wraps the exception thrown by JUEL, so I don't think there is much we can do to enhance it.

Would it help if the exception states more explicitely in which step the error happened?

frederikherema1
Star Contributor
Star Contributor
The Cause-exception of the ActivitiException states what property actually is involved…

Eg:
at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:80)
   at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:546)
Caused by: org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'outputTransition'

jonathan1
Champ in-the-making
Champ in-the-making
Thanks, frederikheremans.  I lost the property name in the kilometer-long stack trace.

My initial suggestion was to update the passing of the PropertyNotFoundException in JuelExpression.java, Activiti 5.10, line 55 from

throw new ActivitiException("Unknown property used in expression", pnfe);
to

throw new ActivitiException("Unknown property used in expression: " + pnfe.getMessage(), pnfe);

It's a pretty minor change, I should have had the patience to look deeper into the stack trace.