Task #479

Show more details on script execution exception

Added by Jan Helbich almost 4 years ago. Updated 6 months ago.

Target version:
Start date:
Due date:
% Done:


Estimated time:


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(
        at eu.bcvsolutions.idm.core.script.evaluator.AbstractScriptEvaluator.evaluate(
        at eu.bcvsolutions.idm.core.script.evaluator.AbstractScriptEvaluator.evaluate(
        at eu.bcvsolutions.idm.core.script.evaluator.AbstractScriptEvaluator$evaluate$ Source)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(
        at org.kohsuke.groovy.sandbox.impl.Checker$
        at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(
        at org.kohsuke.groovy.sandbox.GroovyValueFilter.onMethodCall(
        at org.kohsuke.groovy.sandbox.impl.Checker$
        at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(

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

Related to CzechIdM - Task #1719: Improve error messageClosed06/12/2019


#1 Updated by Jan Helbich almost 4 years ago

  • Subject changed from Show more detail on script execution error to Show more details on script execution exception

#2 Updated by Vít Švanda over 3 years ago

  • Target version deleted (Diamond (7.4.0))

#3 Updated by Vladimír Kotýnek over 1 year ago

I beg for implementation of this feature. It would save us tens of hours of debuging!

#4 Updated by Radek Tomiška about 1 year ago

  • Assignee changed from Vít Švanda to Ondrej Husník

#5 Updated by Radek Tomiška about 1 year ago

  • Related to Task #1719: Improve error message added

#6 Updated by Radek Tomiška 7 months ago

  • Target version set to 10.6.0

I think, this ticket is solved by #1719, Ondra, can you check the requirement is implemented already, please?

#7 Updated by Ondrej Husník 7 months ago

This ticket is generalized form of #1719 where the rich error information was implemented for transformation scripts only. Other places with script areas (such as searching for tree roots during tree synchronization etc.) does not have this additional error information implemented. We decided, after consultation with Vitek, that other places does not need this rich error information.

#8 Updated by Ondrej Husník 7 months ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#9 Updated by Radek Tomiška 6 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Go to top