java.lang.IllegalArgumentException: Cannot find (or read) script file at: script/groovyscript.groovy

JIRA | Saran | 6 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-9].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}Hi, Am new to JIRA 4.1. Am running JIRA 4.1 as a service.My JIRA home directory is : C:\Program Files\Atlassian\Application Data\JIRA I have added my sample groovy script(groovyscript.groovy) in C:\Program Files\Atlassian\Application Data\JIRA\script I have added groovyrunner.jar in web-inf/lib. I tried to execute groovy script in workflow post function. When I give the script path name and click Add button am getting this below error. Oops - an error has occurred System Error A system error has occurred. Please try submitting this problem via the Support Request Page Otherwise, please create a support issue on our support system at http://support.atlassian.com with the following information: a description of your problem cut & paste the error and system information found below attach the application server log file ( C:\Program Files\Atlassian\Application Data\JIRA\log\atlassian-jira.log ) Cause: java.lang.IllegalArgumentException: Cannot find (or read) script file at: script/groovyscript.groovy Stack Trace: [hide] java.lang.IllegalArgumentException: Cannot find (or read) script file at: script/groovyscript.groovy at com.onresolve.jira.groovy.GroovyConditionFactory.getDescriptorParams(GroovyConditionFactory.java:59) at com.atlassian.jira.web.action.admin.workflow.AddWorkflowTransitionFunctionParams.addWorkflowDescriptor(AddWorkflowTransitionFunctionParams.java:71) at com.atlassian.jira.web.action.admin.workflow.AbstractAddWorkflowTransitionDescriptorParams.doExecute(AbstractAddWorkflowTransitionDescriptorParams.java:77) at webwork.action.ActionSupport.execute(ActionSupport.java:165) I have tried by giving the absolute path also but no luck. Please suggest.

    JIRA | 6 years ago | Saran
    java.lang.IllegalArgumentException: Cannot find (or read) script file at: script/groovyscript.groovy
  2. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-9].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}Hi, Am new to JIRA 4.1. Am running JIRA 4.1 as a service.My JIRA home directory is : C:\Program Files\Atlassian\Application Data\JIRA I have added my sample groovy script(groovyscript.groovy) in C:\Program Files\Atlassian\Application Data\JIRA\script I have added groovyrunner.jar in web-inf/lib. I tried to execute groovy script in workflow post function. When I give the script path name and click Add button am getting this below error. Oops - an error has occurred System Error A system error has occurred. Please try submitting this problem via the Support Request Page Otherwise, please create a support issue on our support system at http://support.atlassian.com with the following information: a description of your problem cut & paste the error and system information found below attach the application server log file ( C:\Program Files\Atlassian\Application Data\JIRA\log\atlassian-jira.log ) Cause: java.lang.IllegalArgumentException: Cannot find (or read) script file at: script/groovyscript.groovy Stack Trace: [hide] java.lang.IllegalArgumentException: Cannot find (or read) script file at: script/groovyscript.groovy at com.onresolve.jira.groovy.GroovyConditionFactory.getDescriptorParams(GroovyConditionFactory.java:59) at com.atlassian.jira.web.action.admin.workflow.AddWorkflowTransitionFunctionParams.addWorkflowDescriptor(AddWorkflowTransitionFunctionParams.java:71) at com.atlassian.jira.web.action.admin.workflow.AbstractAddWorkflowTransitionDescriptorParams.doExecute(AbstractAddWorkflowTransitionDescriptorParams.java:77) at webwork.action.ActionSupport.execute(ActionSupport.java:165) I have tried by giving the absolute path also but no luck. Please suggest.

    JIRA | 6 years ago | Saran
    java.lang.IllegalArgumentException: Cannot find (or read) script file at: script/groovyscript.groovy

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot find (or read) script file at: script/groovyscript.groovy

      at com.onresolve.jira.groovy.GroovyConditionFactory.getDescriptorParams()
    2. com.onresolve.jira
      GroovyConditionFactory.getDescriptorParams
      1. com.onresolve.jira.groovy.GroovyConditionFactory.getDescriptorParams(GroovyConditionFactory.java:59)
      1 frame
    3. com.atlassian.jira
      AbstractAddWorkflowTransitionDescriptorParams.doExecute
      1. com.atlassian.jira.web.action.admin.workflow.AddWorkflowTransitionFunctionParams.addWorkflowDescriptor(AddWorkflowTransitionFunctionParams.java:71)
      2. com.atlassian.jira.web.action.admin.workflow.AbstractAddWorkflowTransitionDescriptorParams.doExecute(AbstractAddWorkflowTransitionDescriptorParams.java:77)
      2 frames
    4. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:165)
      1 frame