Operator Advisor (8.4.2): Execution error in service script [GetWorkDefinitionExecutionLog]
Hi all,
I have already explained the issue a bit this article, but it wasn't really a big problem then and it wasn't clear what the actual problem was or when it ocurred. What has changed, is that the problem is really getting bigger, and we have made some conclusions.
Behavior now is the following:
Suddenly, all actions considering a creation or update of a WorkDefinition are impossible (when this is triggered is really a big mystery). All workdefinition services are timing out at this point. After a while (2-5 min), we get an applicationlog full of Execution errors in service script. After this happened, all the workdefinition services work again without any issues. This happens once every 20 minutes or so. This is making our system very unstable, it is critical that this is fixed, since our environment is a production critical system at our customer.
The error looks like this: Execution error in service script [GetWorkDefinitionExecutionLog] :: RHINO USAGE WARNING: Missed Context.javaToJS() conversion:_Rhino runtime detected object {UID=com.thingworx.types.primitives.IntegerPrimitive@2, Name=Running} of class com.thingworx.types.collections.ValueCollection where it expected String, Number, Boolean or Scriptable instance. Please check your code for missing Context.javaToJS() call. (GetWorkDefinitionExecutionLog#61#0)
It is hard to recreate this issue on demand, but looking at the error, I would think there is a wrong dataconversion happening in the Javacode...
Would it be possible to have an OA expert to take a look at our environment?
Jasper


