Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

File Not Found Exception

Rituraj Nepal March 19, 2024

In Postaction script, I gave a file path /var/atlassian/application-data/jira/scripts/myfileName.groovy. The file exists and it has 777 permissions set. 

 

However while transitioning to a new status, the postaction script path should have been executed but it gave me FileNotFound Exception instead. 

 

Error : 

 

orkflowFunction] Error in groovy script:
java.io.FileNotFoundException: /var/atlassian/application-data/jira/scripts/myfileName.groovy(/var/atlassian/application-data/jira/scripts/myfileName.groovy )
at groovy.lang.GroovyCodeSource.<init>(GroovyCodeSource.java:111)
at groovy.lang.GroovyShell.evaluate(GroovyShell.java:621)
at com.riadalabs.jira.plugins.insight.services.core.impl.GroovyServiceImpl.evaluate(GroovyServiceImpl.java:86)
at com.riadalabs.jira.plugins.insight.services.jira.workflow.InsightWorkflowFunction.runPostFunctionGroovyScriptFile(InsightWorkflowFunction.java:1207)
at com.riadalabs.jira.plugins.insight.services.jira.workflow.InsightWorkflowFunction.execute(InsightWorkflowFunction.java:1005)
at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1014)
at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1407)
at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:557)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:842)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:799)
at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:517)
at com.atlassian.jira.web.action.workflow.SimpleWorkflowAction.doExecute(SimpleWorkflowAction.java:28)

 

 

1 answer

0 votes
Rituraj Nepal March 19, 2024 edited

A space after myfileName.groovy actually gave the error, I found it .

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events