java.lang.IllegalArgumentException: Cannot get schemes for null project

Atlassian JIRA | Michael Tokar | 9 years ago
  1. 0

    Browsing to a URL with a stale or invalid project id, e.g.: {noformat}/secure/IssueNavigator.jspa?reset=true&pid=99999{noformat} will cause an ERROR to appear in the logs similar to this: {noformat}ERROR [webwork.util.ServletValueStack] METHOD: "searcherEditHtml", exception: java.lang.IllegalArgumentException: Cannot get schemes for null project at com.atlassian.jira.scheme.AbstractSchemeManager.getSchemes(AbstractSchemeManager.java:172) at com.atlassian.jira.workflow.DefaultWorkflowSchemeManager.getWorkflowScheme(DefaultWorkflowSchemeManager.java:77) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflowName(OSWorkflowManager.java:87) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:213) at com.atlassian.jira.issue.search.searchers.impl.StatusSearcher.getSelectListOptions(StatusSearcher.java:83) at com.atlassian.jira.issue.search.searchers.impl.GenericConstantsSearcher.getEditHtml(GenericConstantsSearcher.java:80) at com.atlassian.jira.web.action.issue.IssueNavigator.getSearcherEditHtml(IssueNavigator.java:544) at sun.reflect.GeneratedMethodAccessor387.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:426) at webwork.util.ValueStack.findValue(ValueStack.java:175) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at _jsp._includes._navigator._filter_22dform__jsp._jspService(_filter_22dform__jsp.java:333){noformat} When trying to render {{filter-form.jsp}}, the rendering of the Status field depends on which projects are selected. However, if bad project ids are specified through a URL, this will result in a null Project object being used deep in workflow scheme code, which causes the IllegalArgumentException.

    Atlassian JIRA | 9 years ago | Michael Tokar
    java.lang.IllegalArgumentException: Cannot get schemes for null project
  2. 0

    Browsing to a URL with a stale or invalid project id, e.g.: {noformat}/secure/IssueNavigator.jspa?reset=true&pid=99999{noformat} will cause an ERROR to appear in the logs similar to this: {noformat}ERROR [webwork.util.ServletValueStack] METHOD: "searcherEditHtml", exception: java.lang.IllegalArgumentException: Cannot get schemes for null project at com.atlassian.jira.scheme.AbstractSchemeManager.getSchemes(AbstractSchemeManager.java:172) at com.atlassian.jira.workflow.DefaultWorkflowSchemeManager.getWorkflowScheme(DefaultWorkflowSchemeManager.java:77) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflowName(OSWorkflowManager.java:87) at com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:213) at com.atlassian.jira.issue.search.searchers.impl.StatusSearcher.getSelectListOptions(StatusSearcher.java:83) at com.atlassian.jira.issue.search.searchers.impl.GenericConstantsSearcher.getEditHtml(GenericConstantsSearcher.java:80) at com.atlassian.jira.web.action.issue.IssueNavigator.getSearcherEditHtml(IssueNavigator.java:544) at sun.reflect.GeneratedMethodAccessor387.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:52) at webwork.util.ValueStack.findValue(ValueStack.java:426) at webwork.util.ValueStack.findValue(ValueStack.java:175) at webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61) at webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54) at _jsp._includes._navigator._filter_22dform__jsp._jspService(_filter_22dform__jsp.java:333){noformat} When trying to render {{filter-form.jsp}}, the rendering of the Status field depends on which projects are selected. However, if bad project ids are specified through a URL, this will result in a null Project object being used deep in workflow scheme code, which causes the IllegalArgumentException.

    Atlassian JIRA | 9 years ago | Michael Tokar
    java.lang.IllegalArgumentException: Cannot get schemes for null project
  3. 0
    Probably you try to create an actor using actorSystem.actorOf(Props(classOf[AnyActor], args...)) where args does not match AnyActor constructor parameters.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    TwitterExample doesn't work

    GitHub | 3 years ago | abu-3abed
    java.lang.IllegalArgumentException: Cannot get String from a null object

    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

      Cannot get schemes for null project

      at com.atlassian.jira.scheme.AbstractSchemeManager.getSchemes()
    2. com.atlassian.jira
      IssueNavigator.getSearcherEditHtml
      1. com.atlassian.jira.scheme.AbstractSchemeManager.getSchemes(AbstractSchemeManager.java:172)
      2. com.atlassian.jira.workflow.DefaultWorkflowSchemeManager.getWorkflowScheme(DefaultWorkflowSchemeManager.java:77)
      3. com.atlassian.jira.workflow.OSWorkflowManager.getWorkflowName(OSWorkflowManager.java:87)
      4. com.atlassian.jira.workflow.OSWorkflowManager.getWorkflow(OSWorkflowManager.java:213)
      5. com.atlassian.jira.issue.search.searchers.impl.StatusSearcher.getSelectListOptions(StatusSearcher.java:83)
      6. com.atlassian.jira.issue.search.searchers.impl.GenericConstantsSearcher.getEditHtml(GenericConstantsSearcher.java:80)
      7. com.atlassian.jira.web.action.issue.IssueNavigator.getSearcherEditHtml(IssueNavigator.java:544)
      7 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor387.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.findValue
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:61)
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:52)
      3. webwork.util.ValueStack.findValue(ValueStack.java:426)
      4. webwork.util.ValueStack.findValue(ValueStack.java:175)
      4 frames
    5. webwork.view.taglib
      BasicPropertyTag.doStartTag
      1. webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:61)
      2. webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54)
      2 frames