Fórum

Error in script for workflow condition

thumbnail
Bart Simpson, modificado 11 Anos atrás.

Error in script for workflow condition

Liferay Master Postagens: 522 Data de Entrada: 29/08/11 Postagens Recentes
Did anyone else came across :

Exception in thread "liferay/kaleo_graph_walker-12" java.lang.NoSuchMethodError: com.liferay.portal.kernel.scripting.ScriptingUtil.exec(Ljava/util/Set;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)V
	at com.liferay.portal.workflow.kaleo.runtime.action.ScriptActionExecutor.doExecute(ScriptActionExecutor.java:48)


I have a simple condition that has returnValue="Yes"
When it's executed I get this error in console.
Oliver Bayer, modificado 11 Anos atrás.

RE: Error in script for workflow condition

Liferay Master Postagens: 894 Data de Entrada: 18/02/09 Postagens Recentes
Hi Bart,

if you take a close look at the error message you will see the "NoSuchMethodError" see below:
...[b]NoSuchMethodError[/b]: com.liferay.portal.kernel.scripting.ScriptingUtil.exec(....)

Such exceptions could occur if an import statement is missing or if you've used the wrong method parameters. I've only checked it in the current trunk but at least there the exec method needs another additional parameter: ClassLoader...
So check your parameters for: Set<String>, Map<String, Object>, String, String, ClassLoader...

HTH Oli
thumbnail
Bart Simpson, modificado 11 Anos atrás.

RE: Error in script for workflow condition

Liferay Master Postagens: 522 Data de Entrada: 29/08/11 Postagens Recentes
Thanks for pointing that out. I am using kaleo-web-forms portlet for 6.1.10 the other kaleo plugin are of 6.1.20, may be it's because of that. I'll check and post the findings.