java.lang.IllegalArgumentException: Unknown workflow view 'ScreenName', or cannot find attribute 'jira.fieldscreen.id' for workflow action '1'.

atlassian.com | 3 months ago
  1. 0

    No delete option on Screens - Atlassian Documentation

    atlassian.com | 3 months ago
    java.lang.IllegalArgumentException: Unknown workflow view 'ScreenName', or cannot find attribute 'jira.fieldscreen.id' for workflow action '1'.
  2. 0

    With JIRA 3.0.3, I have implemented in plugin an override classes of *WorkflowTransitionUtil* in order to provide a new View useable in our Workflow. *Component déclaration in Plugin* {noformat} <component key="WorkflowTransitionUtilAddOnImpl" name="WorkflowTransitionUtilAddOnImpl" class="com.atlassian.jira.workflow.WorkflowTransitionUtilAddOnImpl" > <interface>com.atlassian.jira.workflow.WorkflowTransitionUtilImpl</interface> </component> {noformat} *New implementation of WorkflowTransitionUtil* {noformat} public class WorkflowTransitionUtilAddOnImpl extends WorkflowTransitionUtilImpl { ... // Available AddOn workflow views public static final String VIEW_COMMENT = "comment"; ... public boolean requiresField(String fieldId) { boolean isRequired = false; try { // @TODO requiresField() no more available // isRequired = super.requiresField(fieldId); isRequired = true; } catch (IllegalArgumentException iae) { if (VIEW_COMMENT.equals(getView())) { if (IssueFieldConstants.FIX_FOR_VERSIONS.equals(fieldId) || IssueFieldConstants.ASSIGNEE.equals(fieldId) || IssueFieldConstants.RESOLUTION.equals(fieldId)) { isRequired = false; } } else { throw new IllegalArgumentException("Unknown view '" + getView() + "'."); } } return isRequired; } ... } {noformat} During migration from 3.0.3 to 3.4.x, the *com.atlassian.jira.upgrade.tasks.UpgradeTask_Build86* fails as follow ... {noformat} 2005-12-09 10:18:27,486 INFO [atlassian.jira.upgrade.UpgradeManagerImpl] Performing Upgrade Task: Updating all workflows with closed status to have the jira.issue.editable=false flag (for backwards compatability) 2005-12-09 10:18:27,736 ERROR [atlassian.jira.upgrade.UpgradeManagerImpl] Exception thrown during upgrade: Unknown workflow view 'comment', or cannot find attribute 'jira.fieldscreen.id' for workflow action '711'. java.lang.IllegalArgumentException: Unknown workflow view 'comment', or cannot find attribute 'jira.fieldscreen.id' for workflow action '711'. at com.atlassian.jira.workflow.WorkflowActionsBean.getFieldScreenForView(WorkflowActionsBean.java:72) at com.atlassian.jira.workflow.AbstractJiraWorkflow.reset(AbstractJiraWorkflow.java:353) at com.atlassian.jira.workflow.AbstractJiraWorkflow.<init>(AbstractJiraWorkflow.java:34) at com.atlassian.jira.workflow.ConfigurableJiraWorkflow.<init>(ConfigurableJiraWorkflow.java:24) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:156) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflows(OSWorkflowManager.java:53) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build86.doUpgrade(UpgradeTask_Build86.java:40) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSucess(UpgradeManagerImpl.java:671) at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:567) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:393) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:341) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:301) at com.atlassian.jira.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:65) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) {noformat} I supposed that I will have to replce this in-house View with a FieldScreenTab, but to perform that, a successful migraiton is required. What is the best way to resolve it : - Add the meta properties *jira.fieldscreen.id* in Workflow with value an existing JIRA View (Solution I will try), - Add the future FieldScreen objects (FieldScreen, FieldScreenTab, ...) ... How ? - Other solutions to propose ? Thks

    Atlassian JIRA | 1 decade ago | Vincent Thoulé
    java.lang.IllegalArgumentException: Unknown workflow view 'comment', or cannot find attribute 'jira.fieldscreen.id' for workflow action '711'.
  3. 0

    With JIRA 3.0.3, I have implemented in plugin an override classes of *WorkflowTransitionUtil* in order to provide a new View useable in our Workflow. *Component déclaration in Plugin* {noformat} <component key="WorkflowTransitionUtilAddOnImpl" name="WorkflowTransitionUtilAddOnImpl" class="com.atlassian.jira.workflow.WorkflowTransitionUtilAddOnImpl" > <interface>com.atlassian.jira.workflow.WorkflowTransitionUtilImpl</interface> </component> {noformat} *New implementation of WorkflowTransitionUtil* {noformat} public class WorkflowTransitionUtilAddOnImpl extends WorkflowTransitionUtilImpl { ... // Available AddOn workflow views public static final String VIEW_COMMENT = "comment"; ... public boolean requiresField(String fieldId) { boolean isRequired = false; try { // @TODO requiresField() no more available // isRequired = super.requiresField(fieldId); isRequired = true; } catch (IllegalArgumentException iae) { if (VIEW_COMMENT.equals(getView())) { if (IssueFieldConstants.FIX_FOR_VERSIONS.equals(fieldId) || IssueFieldConstants.ASSIGNEE.equals(fieldId) || IssueFieldConstants.RESOLUTION.equals(fieldId)) { isRequired = false; } } else { throw new IllegalArgumentException("Unknown view '" + getView() + "'."); } } return isRequired; } ... } {noformat} During migration from 3.0.3 to 3.4.x, the *com.atlassian.jira.upgrade.tasks.UpgradeTask_Build86* fails as follow ... {noformat} 2005-12-09 10:18:27,486 INFO [atlassian.jira.upgrade.UpgradeManagerImpl] Performing Upgrade Task: Updating all workflows with closed status to have the jira.issue.editable=false flag (for backwards compatability) 2005-12-09 10:18:27,736 ERROR [atlassian.jira.upgrade.UpgradeManagerImpl] Exception thrown during upgrade: Unknown workflow view 'comment', or cannot find attribute 'jira.fieldscreen.id' for workflow action '711'. java.lang.IllegalArgumentException: Unknown workflow view 'comment', or cannot find attribute 'jira.fieldscreen.id' for workflow action '711'. at com.atlassian.jira.workflow.WorkflowActionsBean.getFieldScreenForView(WorkflowActionsBean.java:72) at com.atlassian.jira.workflow.AbstractJiraWorkflow.reset(AbstractJiraWorkflow.java:353) at com.atlassian.jira.workflow.AbstractJiraWorkflow.<init>(AbstractJiraWorkflow.java:34) at com.atlassian.jira.workflow.ConfigurableJiraWorkflow.<init>(ConfigurableJiraWorkflow.java:24) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:156) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflows(OSWorkflowManager.java:53) at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build86.doUpgrade(UpgradeTask_Build86.java:40) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSucess(UpgradeManagerImpl.java:671) at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:567) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgrade(UpgradeManagerImpl.java:393) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeeded(UpgradeManagerImpl.java:341) at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeIfNeededAndAllowed(UpgradeManagerImpl.java:301) at com.atlassian.jira.upgrade.UpgradeLauncher.contextInitialized(UpgradeLauncher.java:65) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4343) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardHost.start(StandardHost.java:789) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478) at org.apache.catalina.core.StandardService.start(StandardService.java:480) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313) at org.apache.catalina.startup.Catalina.start(Catalina.java:556) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425) {noformat} I supposed that I will have to replce this in-house View with a FieldScreenTab, but to perform that, a successful migraiton is required. What is the best way to resolve it : - Add the meta properties *jira.fieldscreen.id* in Workflow with value an existing JIRA View (Solution I will try), - Add the future FieldScreen objects (FieldScreen, FieldScreenTab, ...) ... How ? - Other solutions to propose ? Thks

    Atlassian JIRA | 1 decade ago | Vincent Thoulé
    java.lang.IllegalArgumentException: Unknown workflow view 'comment', or cannot find attribute 'jira.fieldscreen.id' for workflow action '711'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    AWS Developer Forums: Decider code to initiate a different ...

    amazon.com | 2 months ago
    java.lang.IllegalArgumentException: Unknown DecisionId [type=ACTIVITY, id=1]. The possible causes are nondeterministic workflow definition code or incompatible change in the workflow definition.
  6. 0

    AWS Developer Forums: Child workflow failing with "Unknown ...

    amazon.com | 4 months ago
    java.lang.IllegalArgumentException: Unknown DecisionId [type=ACTIVITY, id=1]. The possible causes are nondeterministic workflow definition code or incompatible change in the workflow definition.

    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. java.lang.IllegalArgumentException

      Unknown workflow view 'ScreenName', or cannot find attribute 'jira.fieldscreen.id' for workflow action '1'.

      at com.atlassian.jira.workflow.WorkflowActionsBean.getFieldScreenForView()
    2. com.atlassian.jira
      ViewFieldScreens.isDeletable
      1. com.atlassian.jira.workflow.WorkflowActionsBean.getFieldScreenForView(WorkflowActionsBean.java:75)
      2. com.atlassian.jira.workflow.AbstractJiraWorkflow.loadFieldScreenActions(AbstractJiraWorkflow.java:474)
      3. com.atlassian.jira.workflow.AbstractJiraWorkflow.getActionsForScreen(AbstractJiraWorkflow.java:458)
      4. com.atlassian.jira.web.action.admin.issuefields.screens.ViewFieldScreens.hasWorkflowsIncludingDrafts(ViewFieldScreens.java:176)
      5. com.atlassian.jira.web.action.admin.issuefields.screens.ViewFieldScreens.isDeletable(ViewFieldScreens.java:197)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor378.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    4. webwork.util
      ValueStack.test
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      3. webwork.util.ValueStack.findValue(ValueStack.java:517)
      4. webwork.util.SimpleTest.test(SimpleTest.java:408)
      5. webwork.util.ValueStack.test(ValueStack.java:157)
      5 frames
    5. webwork.view.taglib
      IfTag.doStartTag
      1. webwork.view.taglib.IfTag.doStartTag(IfTag.java:40)
      1 frame
    6. org.apache.jsp
      viewfieldscreens_jsp._jspService
      1. org.apache.jsp.secure.admin.views.issuefields.screens.viewfieldscreens_jsp._jspx_meth_ww_005fif_005f6(viewfieldscreens_jsp.java:2505)
      2. org.apache.jsp.secure.admin.views.issuefields.screens.viewfieldscreens_jsp._jspService(viewfieldscreens_jsp.java:364)
      2 frames
    7. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      1 frame
    9. GWT dev
      JspServlet.serviceJspFile
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
      2 frames