Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,111
Community Members
 
Community Events
168
Community Groups

Workflow Error

Workflow validator class can not load

ould not load FunctionProvider class

It seems that you have tried to perform an illegal workflow operation.

If you think this message is wrong, please contact your JIRA administrators.

 

018-03-13 13:19:27,681 http-nio-8199-exec-124 ERROR kkabir 799x112601x1 1o8hqdu 64.125.118.246,127.0.0.1 /secure/WorkflowUIDispatcher.jspa [c.a.jira.workflow.OSWorkflowManager] Caught exception while attempting to perform action 301 from workflow 271164 on issue 'ENG-13641'

com.opensymphony.workflow.WorkflowException: Could not load FunctionProvider class

at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1046)

at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1446)

at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:564)

at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:825)

at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:786)

at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:430)

at com.atlassian.jira.web.action.workflow.SimpleWorkflowAction.doExecute(SimpleWorkflowAction.java:28)

... 1 filtered

at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:63)

... 7 filtered

at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)

... 50 filtered

at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:59)

... 151 filtered

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:745)

2018-03-13 13:19:39,869 Caesium-1-1 WARN anonymous    Create BizOps Tickets [c.a.jira.project.AbstractProjectManager] Unable to assign default assignee for project BIZ. User 'jirish' does not have assign permission.

2018-03-13 13:19:39,869 Caesium-1-1 WARN anonymous    Create BizOps Tickets [c.a.mail.incoming.mailfetcherservice] Create BizOps Tickets[10030]: Unable to create issue with message.

com.atlassian.jira.project.DefaultAssigneeException: User 'jirish' does not have assign permission.

at com.atlassian.jira.project.AbstractPro

1 answer

0 votes

It looks like your workflow uses a validator that is provided by an add-on that you have disabled or removed from your Jira.

I can not find which plugins is causing issue, I have recently upgraded hora from 6.3.4 to 7.0.11. So I have removed lots of plugins before upgrade. can you please specify which plugins could cause this error. Thanks for your answer in advance 

Assuming it's not one you wrote yourself, the list of possible culprits is at https://marketplace.atlassian.com/search?hosting=server&product=jira

Take a look at the workflow though - it should have "unknown validator" listed, and at least give you the class name for it, which you can pop into google or the marketplace if it's not obvious which one it is.

I dont have any custom plugings , this error I see when I am trying to marged form jira...other workflow like pull request or tased, cloud ,In-progress are working fine. I count able to narrow it down to resolve this issue. 

 

Workflow Error

Could not load FunctionProvider class

It seems that you have tried to perform an illegal workflow operation.

If you think this message is wrong, please contact your JIRA administrators.

Please read the previous comment again.  All of it, not just the first line.

Thanks Nic , This help to narrow down the issue. Thank you very helpful

Hi Nic ,

 

I am facing the same error after upgrading from Jira 6 to Jira 7.

I get the error in some workflow transitions where there is more than 1 post-function , if I disable the post function giving the error then it works.

 

Any idea what could be a solution to this ?

 

Thanks,

Ajinkya

Get a version of the appl that provides the post-function that works for your version of Jira

What do you mean when you say , "Get a version of the appl" , if appl means application then which application you are referring to ? 

I am running all plugins with compatible versions only.

Sorry, I miskeyed that.  I mean just app - apps are what Atlassian markets plugins and other add-ons for Jira as nowadays (they use "application" to describe Jira Software, JSM, Confluence, Jira Core etc)

To fix your workflow post-function failure, you need to install a version of the app that provides it that is working for your version of Jira.  And you may need to reconfigure the post-function if you've upgraded.

Sorry but I still do not understand you.

If you are saying to install a new version of plugin/add-on then I have already done that for al the plugins.

The error I get in logs is :

Caught exception while attempting to perform action 74 from workflow 484362 on issue 'TRAAD-406'
com.atlassian.jira.transaction.TransactionRuntimeException: org.ofbiz.core.entity.GenericTransactionException: Commit failed, rollback previously requested by nested transaction.

 

Any idea which plugin or add on might be the culprit here ?

 

Thanks,

Ajinkya

Yes, but you may have installed an upgrade that does not work.

The error message you are getting is very generic and you've only given us a tiny bit of the actual error - it's worth looking down your logs for the rest of the error, as it will probably give you a class name that you can identify the app from.

There's no way we can tell you what you have configured here, you are going to need to go into the log and the post-function configuration and look at what you have added. 

Thanks for guiding me there Nic.

I did some analysis on one of the failing post-functions , exported the workflow as XML and saw this post-function failing , below is the post-function code :

 

<function type="class">
<arg name="FIELD_FUNCTION_ID">7266aeb450a01793d04d968e20105480c4ff2e99</arg>
<arg name="FIELD_SCRIPT_FILE_OR_SCRIPT">YCFgeyJzY3JpcHQiOiJpbXBvcnQgY29tLmF0bGFzc2lhbi5qaXJhLmNvbXBvbmVudC5Db21wb25lbnRBY2Nlc3NvclxuaW1wb3J0IGNvbS5hdGxhc3NpYW4uamlyYS5pc3N1ZS5Jc3N1ZUltcGxcbmltcG9ydCBjb20uYXRsYXNzaWFuLmppcmEuaXNzdWUuSXNzdWVNYW5hZ2VyXG5pbXBvcnQgY29tLmF0bGFzc2lhbi5qaXJhLmlzc3VlLkN1c3RvbUZpZWxkTWFuYWdlclxuaW1wb3J0IGNvbS5hdGxhc3NpYW4uamlyYS5pc3N1ZS5maWVsZHMuQ3VzdG9tRmllbGRcbmltcG9ydCBjb20uYXRsYXNzaWFuLmppcmEucHJvamVjdC5Qcm9qZWN0TWFuYWdlclxuaW1wb3J0IGNvbS5hdGxhc3NpYW4uamlyYS5Db21wb25lbnRNYW5hZ2VyXG5pbXBvcnQgY29tLmF0bGFzc2lhbi5qaXJhLmlzc3VlLkN1c3RvbUZpZWxkTWFuYWdlclxuaW1wb3J0IGNvbS5hdGxhc3NpYW4uamlyYS5jb21wb25lbnQuQ29tcG9uZW50QWNjZXNzb3JcbmltcG9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wiRGlzdHJpYnV0aW9uIFZhbHVlOiAkZGlzdHJpYnV0aW9uLS0tXCIpXG5cbmxvZy5lcnJvcihcIi0tLSBFbnRlcmluZyBDb2RlIC0tLVwiKSBcblxuaWYgKChwcm9kdWN0dHlwZS5lcXVhbHNJZ25vcmVDYXNlKFwiTm9cIikgIHx8IHByb2R1Y3R0eXBlLmVxdWFsc0lnbm9yZUNhc2UoXCJZZXNcIikpICYmIGRpc3RyaWJ1dGlvbi5lcXVhbHNJZ25vcmVDYXNlKFwiTm9cIikpXG57XG5mb3IgKGN1cnJJc3N1ZSBpbiBzdWJUYXNrcylcbntcbmlmIChjdXJySXNzdWUuaXNzdWVUeXBlT2JqZWN0Lm5hbWUgPT0gXCJQb3N0IExhdW5jaCBDb25kaXRpb25cIikgXG57XG5sb2cuaW5mbyhcIldlIGhhdmUgUExDXCIpXG53b3JrZmxvd1RyYW5zaXRpb25VdGlsLnNldEFjdGlvbig1ODEpO1xuaWYgKHdvcmtmbG93VHJhbnNpdGlvblV0aWwudmFsaWRhdGUoKS5nZXRFcnJvck1lc3NhZ2VzKCkuc2l6ZSgpID09IDApIFxue1xuIHdvcmtmbG93VHJhbnNpdGlvblV0aWwucHJvZ3Jlc3MoKTtcbn1cblxufVxuICAgIH1cbiAgICB9Iiwic2NyaXB0UGF0aCI6bnVsbCwicGFyYW1ldGVycyI6e319</arg>
<arg name="full.module.key">com.onresolve.jira.groovy.groovyrunnerrungroovy-function</arg>
<arg name="FIELD_INLINE_SCRIPT">YCFgaW1wb3J0IGNvbS5hdGxhc3NpYW4uamlyYS5jb21wb25lbnQuQ29tcG9uZW50QWNjZXNzb3INCmltcG9ydCBjb20uYXRsYXNzaWFuLmppcmEuaXNzdWUuSXNzdWVJbXBsDQppbXBvcnQgY29tLmF0bGFzc2lhbi5qaXJhLmlzc3VlLklzc3VlTWFuYWdlcg0KaW1wb3J0IGNvbS5hdGxhc3NpYW4uamlyYS5pc3N1ZS5DdXN0b21GaWVsZE1hbmFnZXIN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functions.CustomScriptFunction</arg>
<arg name="disabled">false</arg>
<arg name="class.name">com.onresolve.jira.groovy.GroovyFunctionPlugin</arg>
<arg name="FIELD_SCRIPT_FILE"></arg>

 

Can you have a look please ?

 

Thanks,

Ajinkya

Ok, that tells us it's Scriptrunner, which gives you two places you need to read for errors.

First, as we already talked about, your version of SR may not be compatible.  Check what version you are on, and upgrade if necessary.

Second, it could be the scriip that is failing.  You'll need to edit the script and see if it is valid for your version of Jira.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

4,996 views 18 31
Read article

Atlassian Community Events