VMware Cloud Community
AS2E
Contributor
Contributor

Execute action in web view: Constructor not found

Hi,

I have a list pane in my web view which contains Workflow Tokens. In the detail area the users can see detailed information about the workflows they started. Some of the informations shown in the detail area I get using an action. The action works perfectly and returns the information I need. I am also able to display the information in the web view.

My problem ist the follwing: When I click on a workflow token I have to wait about 5 to 10 seconds, until I choose another one. Otherwise the web view returns an error, telling me than the method "getInputParameters" of the scripting class WorkflowToken, which my action calls, wasn't found.

In the vCO log I can see another error message, which appears before the error message the web view shows. I suppose this error is the actual reason for my problem.

INFO   | jvm 2    | 2012/07/13 12:37:39 | 2012-07-13 11:37:39.343+0100 ERROR [JSMapper] ERROR : class ch.dunes.scripting.jsmodel.JSWorkflowToken
INFO   | jvm 2    | 2012/07/13 12:37:39 | java.lang.reflect.InvocationTargetException
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at sun.reflect.GeneratedMethodAccessor238.invoke(Unknown Source)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at java.lang.reflect.Method.invoke(Method.java:597)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.jsmodel.JSMapper.wrapObjectInScope(JSMapper.java:184)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.jsmodel.DunesWrapFactory.wrapAsJavaObject(DunesWrapFactory.java:135)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.jsmodel.DunesWrapFactory.wrap(DunesWrapFactory.java:75)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at org.mozilla.javascript.Context.javaToJS(Context.java:1635)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.jsmodel.Definitions.doNewScriptableObject(Definitions.java:100)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.jsmodel.Definitions.newScriptableObject(Definitions.java:53)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.server.script.MainScriptingObject.setExternalProperty(MainScriptingObject.java:180)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.handler.mbean.ScriptUnit.populateInputs(ScriptUnit.java:138)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.handler.mbean.ScriptUnit.executeScript(ScriptUnit.java:75)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.handler.mbean.ScriptUnitContext.run(ScriptUnitContext.java:87)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at java.lang.Thread.run(Thread.java:662)
INFO   | jvm 2    | 2012/07/13 12:37:39 | Caused by: org.mozilla.javascript.EvaluatorException: Cannot create WorkflowToken object : org.mozilla.javascript.EvaluatorException: Constructor for "WorkflowToken" not found.
INFO   | jvm 2    | 2012/07/13 12:37:39 |  at ch.dunes.scripting.jsmodel.JSWorkflowToken.createInstance(JSWorkflowToken.java:62)
INFO   | jvm 2    | 2012/07/13 12:37:39 |  ... 14 more
INFO   | jvm 2    | 2012/07/13 12:37:39 | 2012-07-13 11:37:39.344+0100 WARN  [VSOFactoryHelper] Unable to execute action (MBean error : TypeError: Cannot find function getInputParameters.)

Has anyone any idea what this error means and how I can fix this?

Thanks a lot.

0 Kudos
2 Replies
AS2E
Contributor
Contributor

Does nobody know what might be the problem here? There's no chance I can use vCO in a productive environment without fixing this error...

0 Kudos
igorstoyanov
VMware Employee
VMware Employee

Not sure what might be the problem. I would encourage you to take a look at this community thread: http://communities.vmware.com/message/2045425 for some possible directions. There is also a patch that could be helpful to be applied. If nothing helps, I would suggest to open a Service Request (SR) with VMware GSS with more details and logs applied.

Thanks.

Visit http://blogs.vmware.com/orchestrator for the latest in Cloud Orchestration.
0 Kudos