Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-13524

Glassfish Support - navigating directly to the 500 page throws a NullPointerException

    XMLWordPrintable

Details

    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      When deploying JIRA in Glassfish, navigating to the 500 page 500page.jsp results in the 500 page throwing a NullPointerException.

      Looking at the generated java code:

        public void _jspService(HttpServletRequest request, HttpServletResponse response)
              throws java.io.IOException, ServletException {
      
          PageContext pageContext = null;
          HttpSession session = null;
          Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);
          response.setStatus(((Integer)request.getAttribute("javax.servlet.error.status_code")).intValue());
      
      

      ((Integer)request.getAttribute("javax.servlet.error.status_code")) is null.

      Tomcat's equiv code:

        public void _jspService(HttpServletRequest request, HttpServletResponse response)
              throws java.io.IOException, ServletException {
      
          JspFactory _jspxFactory = null;
          PageContext pageContext = null;
          HttpSession session = null;
          Throwable exception = org.apache.jasper.runtime.JspRuntimeLibrary.getThrowable(request);
          if (exception != null) {
            response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
          }
      

      It just sets it to 500.

      When the 500page is triggered in Glassfish, it works correctly.

      There is a discussion on this here.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nick.menere Nick Menere [Atlassian] (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: