Actions
Task #479
closedShow more details on script execution exception
Start date:
06/02/2017
Due date:
% Done:
100%
Estimated time:
Owner:
Description
Currently if groovy script fails its execution or throws an exception, the FE only shows something like:
GROOVY_SCRIPT_EXCEPTION (400:cde52b2a-9848-4e02-b340-62d8b03704bf) Script has some errors: [Script has some errors: [eav attribute kodLdap is empty!]] (message:Script has some errors: [eav attribute kodLdap is empty!])
BE is not any better. Only exception message is shown, stacktrace is useless:
Caused by: eu.bcvsolutions.idm.core.api.exception.ResultCodeException: Script has some errors: [eav attribute *** is empty!] at eu.bcvsolutions.idm.core.model.service.impl.DefaultGroovyScriptService.evaluate(DefaultGroovyScriptService.java:70) at eu.bcvsolutions.idm.core.script.evaluator.AbstractScriptEvaluator.evaluate(AbstractScriptEvaluator.java:94) at eu.bcvsolutions.idm.core.script.evaluator.AbstractScriptEvaluator.evaluate(AbstractScriptEvaluator.java:114) at eu.bcvsolutions.idm.core.script.evaluator.AbstractScriptEvaluator$evaluate$0.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:150) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23) at org.kohsuke.groovy.sandbox.GroovyValueFilter.onMethodCall(GroovyValueFilter.java:58) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:148) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:145)We need more info when script execution fails. Please provide:
- script name if predefined script was used
- line with error (if possible)
- where was script applied, i.e. in what attribute transformation rule etc.
Related issues
Actions