java.lang.IllegalArgumentException: The issue must not be null!

Atlassian JIRA | Ian Daniel [Atlassian] | 9 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    h3. The Problem The fix to JRA-13469 only works for the View Issue screen. It does not work in the following screens accessed from the View Issue screen: - Manage Attachments - Manage Links - Manage Trackbacks I produced this behaviour by setting a permission scheme that grants all permissions to only User A and to the current assignee; no permissions to anyone else. I made User B the assignee of a sub-task, but he was not the assignee of the super-task, and as such did not have permission to view it. You also get the following stack trace in the log file when accessing those screens for any sub-task: {noformat} 2008-04-09 10:55:14,575 http-8090-Processor3 ERROR [webwork.util.ServletValueStack] METHOD: "issueVisible", exception: java.lang.IllegalArgumentException: The issue must not be null! at com.atlassian.jira.web.bean.PermissionCheckBean.isIssueVisible(PermissionCheckBean.java:52) 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:585) 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.SimpleTest.test(SimpleTest.java:391) at webwork.util.ValueStack.test(ValueStack.java:129) at webwork.view.taglib.IfTag.doStartTag(IfTag.java:38) at org.apache.jsp.includes.panels.issue_005fheadertable_jsp._jspx_meth_webwork_if_1(issue_005fheadertable_jsp.java:757) at org.apache.jsp.includes.panels.issue_005fheadertable_jsp._jspService(issue_005fheadertable_jsp.java:176) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) {noformat} h3. Why it is Happening The method getParentIssueObject() is used in issue_headertable.jsp, in this fragment: {code} <webwork:property value="/parentIssue"> <img src="<%= request.getContextPath() %>/images/icons/link_out_bot.gif" width="16" height="16" border="0" alt="" align="absmiddle" /> <webwork:if test="@permissionCheck/issueVisible(/parentIssueObject) == false"> <span class="smallgrey"><webwork:property value="./string('key')"/></span> </webwork:if> <webwork:else> <b><a id="parent_issue_summary" href="<%= request.getContextPath() %>/browse/<webwork:property value="./string('key')"/>"><webwork:property value="./string('summary')"/></a></b> <span style="font-size: 9px">(<a id="parent_issue_key" href="<%= request.getContextPath() %>/browse/<webwork:property value="./string('key')"/>"><webwork:property value="./string('key')"/></a>)</span> </webwork:else> </webwork:property> {code} issue_headertable.jsp is included from four JSPs: - viewissue.jsp - manageattachments.jsp - managelinks.jsp - managetrackbacks.jsp However the associated WebWorks actions for three of these JSPs (all except viewissue.jsp) do not have a getParentIssueObject() method. They all have a getParentIssue() method returning a GenericValue, but only the ViewIssue action has a getParentIssueObject() returning an Issue. It looks like <webwork:if> tag above is always evaluating to false because the method is missing, hence the <webwork:else> tag is always evaluated, including when the user does not have permission.

    Atlassian JIRA | 9 years ago | Ian Daniel [Atlassian]
    java.lang.IllegalArgumentException: The issue must not be null!
  2. 0

    h3. The Problem The fix to JRA-13469 only works for the View Issue screen. It does not work in the following screens accessed from the View Issue screen: - Manage Attachments - Manage Links - Manage Trackbacks I produced this behaviour by setting a permission scheme that grants all permissions to only User A and to the current assignee; no permissions to anyone else. I made User B the assignee of a sub-task, but he was not the assignee of the super-task, and as such did not have permission to view it. You also get the following stack trace in the log file when accessing those screens for any sub-task: {noformat} 2008-04-09 10:55:14,575 http-8090-Processor3 ERROR [webwork.util.ServletValueStack] METHOD: "issueVisible", exception: java.lang.IllegalArgumentException: The issue must not be null! at com.atlassian.jira.web.bean.PermissionCheckBean.isIssueVisible(PermissionCheckBean.java:52) 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:585) 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.SimpleTest.test(SimpleTest.java:391) at webwork.util.ValueStack.test(ValueStack.java:129) at webwork.view.taglib.IfTag.doStartTag(IfTag.java:38) at org.apache.jsp.includes.panels.issue_005fheadertable_jsp._jspx_meth_webwork_if_1(issue_005fheadertable_jsp.java:757) at org.apache.jsp.includes.panels.issue_005fheadertable_jsp._jspService(issue_005fheadertable_jsp.java:176) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) {noformat} h3. Why it is Happening The method getParentIssueObject() is used in issue_headertable.jsp, in this fragment: {code} <webwork:property value="/parentIssue"> <img src="<%= request.getContextPath() %>/images/icons/link_out_bot.gif" width="16" height="16" border="0" alt="" align="absmiddle" /> <webwork:if test="@permissionCheck/issueVisible(/parentIssueObject) == false"> <span class="smallgrey"><webwork:property value="./string('key')"/></span> </webwork:if> <webwork:else> <b><a id="parent_issue_summary" href="<%= request.getContextPath() %>/browse/<webwork:property value="./string('key')"/>"><webwork:property value="./string('summary')"/></a></b> <span style="font-size: 9px">(<a id="parent_issue_key" href="<%= request.getContextPath() %>/browse/<webwork:property value="./string('key')"/>"><webwork:property value="./string('key')"/></a>)</span> </webwork:else> </webwork:property> {code} issue_headertable.jsp is included from four JSPs: - viewissue.jsp - manageattachments.jsp - managelinks.jsp - managetrackbacks.jsp However the associated WebWorks actions for three of these JSPs (all except viewissue.jsp) do not have a getParentIssueObject() method. They all have a getParentIssue() method returning a GenericValue, but only the ViewIssue action has a getParentIssueObject() returning an Issue. It looks like <webwork:if> tag above is always evaluating to false because the method is missing, hence the <webwork:else> tag is always evaluated, including when the user does not have permission.

    Atlassian JIRA | 9 years ago | Ian Daniel [Atlassian]
    java.lang.IllegalArgumentException: The issue must not be null!
  3. 0

    RESTEasy / Mailing Lists

    sourceforge.net | 2 years ago
    java.lang.IllegalArgumentException: You did not supply enough values to fill path parameters at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    jboss mysql connection validation

    Stack Overflow | 7 years ago | Marko
    java.lang.IllegalArgumentException: id to load is required for loading org.hibernate.event.LoadEvent.&lt;init&gt;(LoadEvent.java:74) org.hibernate.event.LoadEvent.&lt;init&gt;(LoadEvent.java:56) org.hibernate.impl.SessionImpl.get(SessionImpl.java:839) org.hibernate.impl.SessionImpl.get(SessionImpl.java:835) org.hibernate.ejb.AbstractEntityManagerImpl.find(AbstractEntityManagerImpl.java:182) org.jboss.seam.persistence.EntityManagerProxy.find(EntityManagerProxy.java:87) com.klikmee.tc.providers.ProviderProxy.parseTransactionId(ProviderProxy.java:137) com.klikmee.tc.providers.ProviderProxy.cancel(ProviderProxy.java:382) com.klikmee.tc.providers.ProviderProxy.cancel(ProviderProxy.java:359) com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet$RequestProcessor.processReverseTransaction(DatecsTerminalCommunicatorServlet.java:395) com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet$RequestProcessor.process(DatecsTerminalCommunicatorServlet.java:123) com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet.doPost(DatecsTerminalCommunicatorServlet.java:808) com.klikmee.tc.servlets.DatecsTerminalCommunicatorServlet.doGet(DatecsTerminalCommunicatorServlet.java:862)
  6. 0

    openCRX - Enterprise Class CRM / Mailing Lists

    sourceforge.net | 2 years ago
    java.lang.IllegalArgumentException: DefaultDomain.BAD_PARAMETER > BasicException[0] > Class = org.w3c.spi.AlternativeDatatypeFactory > Method = newDateTime > Line = 117 > ExceptionClass = java.lang.IllegalArgumentException > ExceptionDomain = DefaultDomain > ExceptionCode = BAD_PARAMETER > Description = Could not parse as org::w3c::dateTime value > Timestamp = 2014-10-13T14:30:47.670Z > Parameters: > 0: value = 20150505T000000 > StackTrace: > at > org.w3c.spi.AlternativeDatatypeFactory.newDateTime(AlternativeDatatypeFactory.java:117) > at > org.w3c.spi.AlternativeDatatypeFactory.newDateTime(AlternativeDatatypeFactory.java:66) > at > org.w3c.spi.StandardPrimitiveTypeParser.parse(StandardPrimitiveTypeParser.java:140) > at org.w3c.spi2.Datatypes.create(Datatypes.java:94)

    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

      The issue must not be null!

      at com.atlassian.jira.web.bean.PermissionCheckBean.isIssueVisible()
    2. com.atlassian.jira
      PermissionCheckBean.isIssueVisible
      1. com.atlassian.jira.web.bean.PermissionCheckBean.isIssueVisible(PermissionCheckBean.java:52)
      1 frame
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:585)
      4 frames
    4. webwork.util
      ValueStack.test
      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.SimpleTest.test(SimpleTest.java:391)
      5. webwork.util.ValueStack.test(ValueStack.java:129)
      5 frames
    5. webwork.view.taglib
      IfTag.doStartTag
      1. webwork.view.taglib.IfTag.doStartTag(IfTag.java:38)
      1 frame
    6. org.apache.jsp
      issue_005fheadertable_jsp._jspService
      1. org.apache.jsp.includes.panels.issue_005fheadertable_jsp._jspx_meth_webwork_if_1(issue_005fheadertable_jsp.java:757)
      2. org.apache.jsp.includes.panels.issue_005fheadertable_jsp._jspService(issue_005fheadertable_jsp.java:176)
      2 frames
    7. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      1 frame
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame