com.opensymphony.workflow.FactoryException: Unknown workflow name

Atlassian JIRA | Joshua Ali | 4 years ago
  1. 0

    Admins are able to delete active workflow schemes, which would cause the associated workflows to appear inactive, opening the possibility to having an active workflow being deleted, resulting in issues that have no transitions or transitions that are incorrect. You will probably see in the logs: * Some warnings like: {noformat} 2012-08-29 14:30:08,476 http-bio-8090-exec-10 ERROR admin 869x18070x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=11] which cannot be found in the workflow descriptor 2012-08-29 14:30:08,476 http-bio-8090-exec-10 ERROR admin 869x18070x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=21] which cannot be found in the workflow descriptor 2012-08-29 14:30:08,476 http-bio-8090-exec-10 ERROR admin 869x18070x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=41] which cannot be found in the workflow descriptor 2012-08-29 14:33:03,579 http-bio-8090-exec-17 ERROR admin 870x18295x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=11] which cannot be found in the workflow descriptor 2012-08-29 14:33:05,850 http-bio-8090-exec-17 ERROR admin 870x18295x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=21] which cannot be found in the workflow descriptor 2012-08-29 14:33:08,013 http-bio-8090-exec-17 ERROR admin 870x18295x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=41] which cannot be found in the workflow descriptor {noformat} * Exceptions like: {noformat} 2012-08-29 14:44:07,202 http-bio-8090-exec-15 ERROR admin 883x463x1 x4ixsb 172.20.9.76 /browse/MKY-2 [opensymphony.workflow.basic.BasicWorkflow] Error checking available actions com.opensymphony.workflow.FactoryException: Unknown workflow name at com.opensymphony.workflow.config.DefaultConfiguration.getWorkflow(DefaultConfiguration.java:92) at com.opensymphony.workflow.AbstractWorkflow.getAvailableActions(AbstractWorkflow.java:77) at com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getAvailableActionIds(IssueWorkflowManagerImpl.java:140) at com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getAvailableActions(IssueWorkflowManagerImpl.java:41) at com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getSortedAvailableActions(IssueWorkflowManagerImpl.java:65) at com.atlassian.jira.issue.transitions.TransitionLinkFactory.getAvailableActions(TransitionLinkFactory.java:63) at com.atlassian.jira.issue.transitions.TransitionLinkFactory.getLinks(TransitionLinkFactory.java:52) at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinks(DefaultSimpleLinkManager.java:190) at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:124) at com.atlassian.jira.issue.util.IssueOperationsBarUtil.getLinksForSection(IssueOperationsBarUtil.java:208) at com.atlassian.jira.issue.util.IssueOperationsBarUtil.getPromotedLinks(IssueOperationsBarUtil.java:105) <+3> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:514) at webwork.util.ValueStack.findValue(ValueStack.java:213) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.includes.panels.issue.viewissue_002dopsbar_jsp._jspx_meth_ww_005fproperty_005f6(viewissue_002dopsbar_jsp.java:535) {noformat} You should be able to fix this by migrating that project onto a new workflow scheme. You cannot use the default workflow scheme.

    Atlassian JIRA | 4 years ago | Joshua Ali
    com.opensymphony.workflow.FactoryException: Unknown workflow name
  2. 0

    Admins are able to delete active workflow schemes, which would cause the associated workflows to appear inactive, opening the possibility to having an active workflow being deleted, resulting in issues that have no transitions or transitions that are incorrect. You will probably see in the logs: * Some warnings like: {noformat} 2012-08-29 14:30:08,476 http-bio-8090-exec-10 ERROR admin 869x18070x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=11] which cannot be found in the workflow descriptor 2012-08-29 14:30:08,476 http-bio-8090-exec-10 ERROR admin 869x18070x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=21] which cannot be found in the workflow descriptor 2012-08-29 14:30:08,476 http-bio-8090-exec-10 ERROR admin 869x18070x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=41] which cannot be found in the workflow descriptor 2012-08-29 14:33:03,579 http-bio-8090-exec-17 ERROR admin 870x18295x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=11] which cannot be found in the workflow descriptor 2012-08-29 14:33:05,850 http-bio-8090-exec-17 ERROR admin 870x18295x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=21] which cannot be found in the workflow descriptor 2012-08-29 14:33:08,013 http-bio-8090-exec-17 ERROR admin 870x18295x1 k49von 172.20.9.76 /browse/MKY-2 [atlassian.jira.workflow.IssueWorkflowManagerImpl] State of issue [MKY-2] has an action [id=41] which cannot be found in the workflow descriptor {noformat} * Exceptions like: {noformat} 2012-08-29 14:44:07,202 http-bio-8090-exec-15 ERROR admin 883x463x1 x4ixsb 172.20.9.76 /browse/MKY-2 [opensymphony.workflow.basic.BasicWorkflow] Error checking available actions com.opensymphony.workflow.FactoryException: Unknown workflow name at com.opensymphony.workflow.config.DefaultConfiguration.getWorkflow(DefaultConfiguration.java:92) at com.opensymphony.workflow.AbstractWorkflow.getAvailableActions(AbstractWorkflow.java:77) at com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getAvailableActionIds(IssueWorkflowManagerImpl.java:140) at com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getAvailableActions(IssueWorkflowManagerImpl.java:41) at com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getSortedAvailableActions(IssueWorkflowManagerImpl.java:65) at com.atlassian.jira.issue.transitions.TransitionLinkFactory.getAvailableActions(TransitionLinkFactory.java:63) at com.atlassian.jira.issue.transitions.TransitionLinkFactory.getLinks(TransitionLinkFactory.java:52) at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinks(DefaultSimpleLinkManager.java:190) at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:124) at com.atlassian.jira.issue.util.IssueOperationsBarUtil.getLinksForSection(IssueOperationsBarUtil.java:208) at com.atlassian.jira.issue.util.IssueOperationsBarUtil.getPromotedLinks(IssueOperationsBarUtil.java:105) <+3> (NativeMethodAccessorImpl.java:39) (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:514) at webwork.util.ValueStack.findValue(ValueStack.java:213) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at org.apache.jsp.includes.panels.issue.viewissue_002dopsbar_jsp._jspx_meth_ww_005fproperty_005f6(viewissue_002dopsbar_jsp.java:535) {noformat} You should be able to fix this by migrating that project onto a new workflow scheme. You cannot use the default workflow scheme.

    Atlassian JIRA | 4 years ago | Joshua Ali
    com.opensymphony.workflow.FactoryException: Unknown workflow name
  3. 0

    Steps to reproduce: # Create a new workflow with an ampersand in its name e.g. "Testing&Workflow" # Assign the workflow so that it becomes an active workflow # Attempt to create a draft of that workflow The following error comes back to the user via the browser: {noformat} HTTP Status 404 - Could not execute action [ViewWorkflowSteps]:Action 'com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps' could not be instantiated <p><small><small><pre>java.lang.IllegalArgumentException: Action 'com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps' could not be instantiated at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:69) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... {noformat} And the following errors appear in the logs: {noformat} 2008-11-25 12:20:15,948 http-8090-Processor3 ERROR [atlassian.jira.workflow.OSWorkflowManager] Could not get workflow called: Testing: com.opensymphony.workflow.FactoryException: Unknown workflow name com.opensymphony.workflow.FactoryException: Unknown workflow name at com.opensymphony.workflow.config.DefaultConfiguration.getWorkflow(DefaultConfiguration.java:86) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:168) at com.atlassian.jira.workflow.OSWorkflowManager.getDraftWorkflow(OSWorkflowManager.java:214) at com.atlassian.jira.web.util.component.RequestComponentManager.getWorkflow(RequestComponentManager.java:185) at com.atlassian.jira.web.util.component.RequestComponentManager.injectWorkflow(RequestComponentManager.java:93) at com.atlassian.jira.web.util.component.RequestComponentManager.getContainer(RequestComponentManager.java:52) at com.atlassian.jira.web.util.component.PicoWebworkObjectCreator.instantiate(PicoWebworkObjectCreator.java:32) at webwork.util.injection.ObjectFactory.instantiate(ObjectFactory.java:47) at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:65) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... 2008-11-25 12:20:15,949 http-8090-Processor3 ERROR [web.util.component.RequestComponentManager] java.lang.IllegalArgumentException: Draft workflow could not be retrieved, since the parent workflow with name 'Testing' does not exist. java.lang.IllegalArgumentException: Draft workflow could not be retrieved, since the parent workflow with name 'Testing' does not exist. at com.atlassian.jira.workflow.OSWorkflowManager.getDraftWorkflow(OSWorkflowManager.java:217) at com.atlassian.jira.web.util.component.RequestComponentManager.getWorkflow(RequestComponentManager.java:185) at com.atlassian.jira.web.util.component.RequestComponentManager.injectWorkflow(RequestComponentManager.java:93) at com.atlassian.jira.web.util.component.RequestComponentManager.getContainer(RequestComponentManager.java:52) at com.atlassian.jira.web.util.component.PicoWebworkObjectCreator.instantiate(PicoWebworkObjectCreator.java:32) at webwork.util.injection.ObjectFactory.instantiate(ObjectFactory.java:47) at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:65) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... 2008-11-25 12:20:15,950 http-8090-Processor3 ERROR [webwork] Error instantiating 'com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps': com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps doesn't have any satisfiable constructors. Unsatisfiable dependencies: [[interface com.atlassian.jira.workflow.JiraWorkflow, interface com.atlassian.jira.config.ConstantsManager, interface com.atlassian.jira.bc.workflow.WorkflowService]] org.picocontainer.defaults.UnsatisfiableDependenciesException: com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps doesn't have any satisfiable constructors. Unsatisfiable dependencies: [[interface com.atlassian.jira.workflow.JiraWorkflow, interface com.atlassian.jira.config.ConstantsManager, interface com.atlassian.jira.bc.workflow.WorkflowService]] at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getGreediestSatisifableConstructor(ConstructorInjectionComponentAdapter.java:138) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.instantiateComponent(ConstructorInjectionComponentAdapter.java:193) at org.picocontainer.defaults.InstantiatingComponentAdapter.getComponentInstance(InstantiatingComponentAdapter.java:48) at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:42) at org.picocontainer.defaults.SynchronizedComponentAdapter.getComponentInstance(SynchronizedComponentAdapter.java:35) at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:42) at com.atlassian.jira.config.component.ProfilingComponentAdapter.getComponentInstance(ProfilingComponentAdapter.java:27) at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:298) at com.atlassian.jira.web.util.component.PicoWebworkObjectCreator.instantiate(PicoWebworkObjectCreator.java:39) at webwork.util.injection.ObjectFactory.instantiate(ObjectFactory.java:47) at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:65) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... 2008-11-25 12:20:15,953 http-8090-Processor3 [webwork.dispatcher.ServletDispatcher] Could not execute action java.lang.IllegalArgumentException: Action 'com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps' could not be instantiated at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:69) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... {noformat} Note that a draft still appears to be created (you can see it if you go back to the View Workflows screen).

    Atlassian JIRA | 8 years ago | Michael Tokar - Annual Leave until 26 Sep
    com.opensymphony.workflow.FactoryException: Unknown workflow name
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    If during workflow reassignment a ticket is not migrated to the new workflow and the old workflow is deleted, integrity checker crashes while scanning for workflow problems with the following error: {noformat} 2011-01-27 15:12:34,756 http-8080-7 ERROR admin 912x159x1 1fzk33s 0:0:0:0:0:0:0:1 /secure/admin/jira/IntegrityChecker.jspa [atlassian.jira.workflow.OSWorkflowManager] Could not get workflow called: Auto Assign Workflow - JIRA / CONFLUENCE Access: com.opensymphony.workflow.FactoryException: Unknown workflow name com.opensymphony.workflow.FactoryException: Unknown workflow name at com.opensymphony.workflow.config.DefaultConfiguration.getWorkflow(DefaultConfiguration.java:86) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:184) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:476) at com.atlassian.jira.appconsistency.integrity.check.WorkflowCurrentStepCheck.doCheck(WorkflowCurrentStepCheck.java:97) at com.atlassian.jira.appconsistency.integrity.check.WorkflowCurrentStepCheck.preview(WorkflowCurrentStepCheck.java:51) at com.atlassian.jira.appconsistency.integrity.IntegrityChecker.preview(IntegrityChecker.java:63) at com.atlassian.jira.appconsistency.integrity.IntegrityChecker.previewWithIds(IntegrityChecker.java:35) at com.atlassian.jira.web.action.admin.IntegrityChecker.doExecute(IntegrityChecker.java:66) at webwork.action.ActionSupport.execute(ActionSupport.java:165) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:54) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:139) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:171) {noformat} This problem can be simulated by associating a test issue with an invalid workflow in _OS_WFENTRY_. {noformat} mysql> select * from OS_WFENTRY where ID=(select workflow_id from jiraissue where pkey='TP-1'); +-------+------+-------------+-------+ | ID | NAME | INITIALIZED | STATE | +-------+------+-------------+-------+ | 10000 | jira | 0 | 1 | +-------+------+-------------+-------+ {noformat}

    Atlassian JIRA | 6 years ago | Bogdan Dziedzic [Atlassian]
    com.opensymphony.workflow.FactoryException: Unknown workflow name
  6. 0

    Steps to reproduce: # Create a new workflow with an ampersand in its name e.g. "Testing&Workflow" # Assign the workflow so that it becomes an active workflow # Attempt to create a draft of that workflow The following error comes back to the user via the browser: {noformat} HTTP Status 404 - Could not execute action [ViewWorkflowSteps]:Action 'com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps' could not be instantiated <p><small><small><pre>java.lang.IllegalArgumentException: Action 'com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps' could not be instantiated at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:69) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... {noformat} And the following errors appear in the logs: {noformat} 2008-11-25 12:20:15,948 http-8090-Processor3 ERROR [atlassian.jira.workflow.OSWorkflowManager] Could not get workflow called: Testing: com.opensymphony.workflow.FactoryException: Unknown workflow name com.opensymphony.workflow.FactoryException: Unknown workflow name at com.opensymphony.workflow.config.DefaultConfiguration.getWorkflow(DefaultConfiguration.java:86) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:168) at com.atlassian.jira.workflow.OSWorkflowManager.getDraftWorkflow(OSWorkflowManager.java:214) at com.atlassian.jira.web.util.component.RequestComponentManager.getWorkflow(RequestComponentManager.java:185) at com.atlassian.jira.web.util.component.RequestComponentManager.injectWorkflow(RequestComponentManager.java:93) at com.atlassian.jira.web.util.component.RequestComponentManager.getContainer(RequestComponentManager.java:52) at com.atlassian.jira.web.util.component.PicoWebworkObjectCreator.instantiate(PicoWebworkObjectCreator.java:32) at webwork.util.injection.ObjectFactory.instantiate(ObjectFactory.java:47) at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:65) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... 2008-11-25 12:20:15,949 http-8090-Processor3 ERROR [web.util.component.RequestComponentManager] java.lang.IllegalArgumentException: Draft workflow could not be retrieved, since the parent workflow with name 'Testing' does not exist. java.lang.IllegalArgumentException: Draft workflow could not be retrieved, since the parent workflow with name 'Testing' does not exist. at com.atlassian.jira.workflow.OSWorkflowManager.getDraftWorkflow(OSWorkflowManager.java:217) at com.atlassian.jira.web.util.component.RequestComponentManager.getWorkflow(RequestComponentManager.java:185) at com.atlassian.jira.web.util.component.RequestComponentManager.injectWorkflow(RequestComponentManager.java:93) at com.atlassian.jira.web.util.component.RequestComponentManager.getContainer(RequestComponentManager.java:52) at com.atlassian.jira.web.util.component.PicoWebworkObjectCreator.instantiate(PicoWebworkObjectCreator.java:32) at webwork.util.injection.ObjectFactory.instantiate(ObjectFactory.java:47) at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:65) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... 2008-11-25 12:20:15,950 http-8090-Processor3 ERROR [webwork] Error instantiating 'com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps': com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps doesn't have any satisfiable constructors. Unsatisfiable dependencies: [[interface com.atlassian.jira.workflow.JiraWorkflow, interface com.atlassian.jira.config.ConstantsManager, interface com.atlassian.jira.bc.workflow.WorkflowService]] org.picocontainer.defaults.UnsatisfiableDependenciesException: com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps doesn't have any satisfiable constructors. Unsatisfiable dependencies: [[interface com.atlassian.jira.workflow.JiraWorkflow, interface com.atlassian.jira.config.ConstantsManager, interface com.atlassian.jira.bc.workflow.WorkflowService]] at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getGreediestSatisifableConstructor(ConstructorInjectionComponentAdapter.java:138) at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.instantiateComponent(ConstructorInjectionComponentAdapter.java:193) at org.picocontainer.defaults.InstantiatingComponentAdapter.getComponentInstance(InstantiatingComponentAdapter.java:48) at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:42) at org.picocontainer.defaults.SynchronizedComponentAdapter.getComponentInstance(SynchronizedComponentAdapter.java:35) at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:42) at com.atlassian.jira.config.component.ProfilingComponentAdapter.getComponentInstance(ProfilingComponentAdapter.java:27) at org.picocontainer.defaults.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:298) at com.atlassian.jira.web.util.component.PicoWebworkObjectCreator.instantiate(PicoWebworkObjectCreator.java:39) at webwork.util.injection.ObjectFactory.instantiate(ObjectFactory.java:47) at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:65) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... 2008-11-25 12:20:15,953 http-8090-Processor3 [webwork.dispatcher.ServletDispatcher] Could not execute action java.lang.IllegalArgumentException: Action 'com.atlassian.jira.web.action.admin.workflow.ViewWorkflowSteps' could not be instantiated at com.atlassian.jira.config.webwork.JiraActionFactory$JiraPluginActionFactory.getActionImpl(JiraActionFactory.java:69) at webwork.action.factory.ScriptActionFactoryProxy.getActionImpl(ScriptActionFactoryProxy.java:54) at webwork.action.factory.XMLActionFactoryProxy.getActionImpl(XMLActionFactoryProxy.java:54) at webwork.action.factory.PrefixActionFactoryProxy.getActionImpl(PrefixActionFactoryProxy.java:111) at webwork.action.factory.JspActionFactoryProxy.getActionImpl(JspActionFactoryProxy.java:53) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.AliasingActionFactoryProxy.getActionImpl(AliasingActionFactoryProxy.java:96) at webwork.action.factory.CommandActionFactoryProxy.getActionImpl(CommandActionFactoryProxy.java:62) at webwork.action.factory.ContextActionFactoryProxy.getActionImpl(ContextActionFactoryProxy.java:36) at webwork.action.factory.PrepareActionFactoryProxy.getActionImpl(PrepareActionFactoryProxy.java:37) at webwork.action.factory.ParametersActionFactoryProxy.getActionImpl(ParametersActionFactoryProxy.java:46) at webwork.action.factory.ChainingActionFactoryProxy.getActionImpl(ChainingActionFactoryProxy.java:52) at webwork.action.factory.DefaultActionFactory.getActionImpl(DefaultActionFactory.java:125) at webwork.action.factory.ActionFactory.getAction(ActionFactory.java:63) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:120) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) ... {noformat} Note that a draft still appears to be created (you can see it if you go back to the View Workflows screen).

    Atlassian JIRA | 8 years ago | Michael Tokar
    com.opensymphony.workflow.FactoryException: Unknown workflow name

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.opensymphony.workflow.FactoryException

      Unknown workflow name

      at com.opensymphony.workflow.config.DefaultConfiguration.getWorkflow()
    2. com.opensymphony.workflow
      AbstractWorkflow.getAvailableActions
      1. com.opensymphony.workflow.config.DefaultConfiguration.getWorkflow(DefaultConfiguration.java:92)
      2. com.opensymphony.workflow.AbstractWorkflow.getAvailableActions(AbstractWorkflow.java:77)
      2 frames
    3. com.atlassian.jira
      IssueOperationsBarUtil.getLinksForSection
      1. com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getAvailableActionIds(IssueWorkflowManagerImpl.java:140)
      2. com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getAvailableActions(IssueWorkflowManagerImpl.java:41)
      3. com.atlassian.jira.workflow.IssueWorkflowManagerImpl.getSortedAvailableActions(IssueWorkflowManagerImpl.java:65)
      4. com.atlassian.jira.issue.transitions.TransitionLinkFactory.getAvailableActions(TransitionLinkFactory.java:63)
      5. com.atlassian.jira.issue.transitions.TransitionLinkFactory.getLinks(TransitionLinkFactory.java:52)
      6. com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinks(DefaultSimpleLinkManager.java:190)
      7. com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:124)
      8. com.atlassian.jira.issue.util.IssueOperationsBarUtil.getLinksForSection(IssueOperationsBarUtil.java:208)
      8 frames