Skip to main content
1-Visitor
July 20, 2017
Solved

How to solve invocation error in expression robot ?

  • July 20, 2017
  • 1 reply
  • 4065 views

Hi

I have a problem that is pending for 2 weeks now, and I can't find the cause of it. I have a call to a method inside a java expression that looks like this;

Snap2.png

 The method executes and I see results in the bg method server but when the method terminates it gives next error;

Snap3.pngI am sure I am returning a String. obsResult is defined as a Java string in the properties of the Approval process.

Snap4.pngWhat can be the cause of this error, please help ?

 

Best answer by BernardWielfaer

Aha, now completely solved. There where also wrong calls to the method included in the Phase Process (execution of workflow) when reaching the Obsolete status in an older iteration of the lifecycle. The objects I am using where still set to this (old) lifecycle. Now all is okay, pff difficult to track but thanks to running this from command line I did see this.

1 reply

17-Peridot
July 20, 2017

The problem is that Windchill can't find your class and method. Please check first, if the java class is copied correctly to the server or if you have any typo in the call.

It says clear: No such method error

 

1-Visitor
July 20, 2017

Strange that the method server first executes the code, so it must find it, then outputs the error,...

This is more then a typo going on here....

17-Peridot
July 20, 2017

What happens when you press "Check Syntax"?