Skip to main content
1-Visitor
Jul 20, 2017 2:38 PM UTC
Solved

How to solve invocation error in expression robot ?

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 ?

 

1-Visitor
Jul 25, 2017 11:45 AM UTC

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.

8 replies

17-Peridot
Jul 20, 2017 2:58 PM UTC

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

 

Translate
1-Visitor
Jul 20, 2017 4:43 PM UTC

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....

Translate
17-Peridot
Jul 20, 2017 7:04 PM UTC

What happens when you press "Check Syntax"?

Translate