Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-1730

[taglib] "Cannot find bean * in scope null" ==> increase error specificness

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 1.0.0
    • None
    • Core
    • None
    • Operating System: other
      Platform: Other
    • 22935

    Description

      When I am getting stack traces like
      <<org.apache.jasper.JasperException: Cannot find bean user in scope null
      at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
      ...
      root cause

      javax.servlet.ServletException: Cannot find bean user in scope null
      at
      org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
      at org.apache.jsp.userprofile_en_jsp._jspService(userprofile_jsp.java:124)
      ...>>
      it would be really helpful to know where it happened in the jsp page.

      There might be dozens of struts tags referring to "user" and from the
      *_jsp.java, it is often not very obvious which one it is.

      Therefore, my RFE is to have the exception provide more hints on where it fails

      • best by citing the offenting struts-tag!

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hauser@acm.org Ralf Hauser
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: