java.lang.NullPointerException

Atlassian JIRA | Brenden Bain [Atlassian] | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    # Give browse project permission to anonymous user. # (BUG) Go to the browse project page for a project. You will get the following exception: {noformat} 172.20.9.187 /browse/QA [atlassian.plugin.web.DefaultWebInterfaceManager] Could not evaluate condition 'com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition@7526fc24' for descriptor: jira.webfragments.browse.project.links:administer_project (null) java.lang.NullPointerException at com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition.shouldDisplay(CanAdministerProjectCondition.java:61) at com.atlassian.plugin.web.DefaultWebInterfaceManager.filterFragmentsByCondition(DefaultWebInterfaceManager.java:172) at com.atlassian.plugin.web.DefaultWebInterfaceManager.getDisplayableItems(DefaultWebInterfaceManager.java:103) at com.atlassian.jira.plugin.webfragment.JiraWebInterfaceManager.getDisplayableItems(JiraWebInterfaceManager.java:67) at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:124) at com.atlassian.jira.web.action.browser.BrowseProject.getOperationLinks(BrowseProject.java:415) 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: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:414) 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.secure.views.browser.browseproject_jsp._jspx_meth_ww_005fproperty_005f1(browseproject_jsp.java:186) at org.apache.jsp.secure.views.browser.browseproject_jsp._jspService(browseproject_jsp.java:112) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) {noformat}

    Atlassian JIRA | 5 years ago | Brenden Bain [Atlassian]
    java.lang.NullPointerException
  2. 0

    # Give browse project permission to anonymous user. # (BUG) Go to the browse project page for a project. You will get the following exception: {noformat} 172.20.9.187 /browse/QA [atlassian.plugin.web.DefaultWebInterfaceManager] Could not evaluate condition 'com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition@7526fc24' for descriptor: jira.webfragments.browse.project.links:administer_project (null) java.lang.NullPointerException at com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition.shouldDisplay(CanAdministerProjectCondition.java:61) at com.atlassian.plugin.web.DefaultWebInterfaceManager.filterFragmentsByCondition(DefaultWebInterfaceManager.java:172) at com.atlassian.plugin.web.DefaultWebInterfaceManager.getDisplayableItems(DefaultWebInterfaceManager.java:103) at com.atlassian.jira.plugin.webfragment.JiraWebInterfaceManager.getDisplayableItems(JiraWebInterfaceManager.java:67) at com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:124) at com.atlassian.jira.web.action.browser.BrowseProject.getOperationLinks(BrowseProject.java:415) 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: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:414) 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.secure.views.browser.browseproject_jsp._jspx_meth_ww_005fproperty_005f1(browseproject_jsp.java:186) at org.apache.jsp.secure.views.browser.browseproject_jsp._jspService(browseproject_jsp.java:112) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) {noformat}

    Atlassian JIRA | 5 years ago | Brenden Bain [Atlassian]
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition.shouldDisplay()
    2. com.atlassian.jira
      CanAdministerProjectCondition.shouldDisplay
      1. com.atlassian.jira.plugin.webfragment.conditions.CanAdministerProjectCondition.shouldDisplay(CanAdministerProjectCondition.java:61)
      1 frame
    3. com.atlassian.plugin
      DefaultWebInterfaceManager.getDisplayableItems
      1. com.atlassian.plugin.web.DefaultWebInterfaceManager.filterFragmentsByCondition(DefaultWebInterfaceManager.java:172)
      2. com.atlassian.plugin.web.DefaultWebInterfaceManager.getDisplayableItems(DefaultWebInterfaceManager.java:103)
      2 frames
    4. com.atlassian.jira
      BrowseProject.getOperationLinks
      1. com.atlassian.jira.plugin.webfragment.JiraWebInterfaceManager.getDisplayableItems(JiraWebInterfaceManager.java:67)
      2. com.atlassian.jira.plugin.webfragment.DefaultSimpleLinkManager.getLinksForSection(DefaultSimpleLinkManager.java:124)
      3. com.atlassian.jira.web.action.browser.BrowseProject.getOperationLinks(BrowseProject.java:415)
      3 frames
    5. 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:597)
      4 frames
    6. webwork.util
      ValueStack.findValue
      1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
      2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
      3. webwork.util.ValueStack.findValue(ValueStack.java:414)
      4. webwork.util.ValueStack.findValue(ValueStack.java:213)
      4 frames
    7. webwork.view.taglib
      BasicPropertyTag.doStartTag
      1. webwork.view.taglib.WebWorkBodyTagSupport.findValue(WebWorkBodyTagSupport.java:62)
      2. webwork.view.taglib.BasicPropertyTag.doStartTag(BasicPropertyTag.java:54)
      2 frames
    8. org.apache.jsp
      browseproject_jsp._jspService
      1. org.apache.jsp.secure.views.browser.browseproject_jsp._jspx_meth_ww_005fproperty_005f1(browseproject_jsp.java:186)
      2. org.apache.jsp.secure.views.browser.browseproject_jsp._jspService(browseproject_jsp.java:112)
      2 frames
    9. GWT dev
      HttpJspBase.service
      1. org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
      1 frame
    10. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    11. GWT dev
      JspServlet.service
      1. org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
      2. org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
      3. org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
      3 frames
    12. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      1 frame
    13. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      2 frames