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

struts-examples webapp does not work (NPE at TagUtils.java:1027)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • Nightly Build
    • None
    • Example Applications
    • None
    • Operating System: Windows XP
      Platform: Other
    • 36682

    Description

      To reproduce, build and deploy struts-examples.war, then visit
      http://localhost:8080/struts-examples.

      See also: http://www.mail-archive.com/dev%40struts.apache.org/msg11843.html

      HTTP Status 500 -

      type Exception report

      message

      description The server encountered an internal error () that prevented it from
      fulfilling this request.

      exception

      javax.servlet.ServletException
      org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:192)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1934)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:429)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      root cause

      org.apache.jasper.JasperException
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:95)
      org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:55)
      org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:37)
      org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
      org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:175)
      org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
      org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:189)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1934)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:429)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      root cause

      java.lang.NullPointerException
      org.apache.struts.taglib.TagUtils.pageURL(TagUtils.java:1027)
      org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:451)
      org.apache.struts.taglib.TagUtils.computeURLWithCharEncoding(TagUtils.java:314)
      org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:463)
      org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:341)
      org.apache.jsp.welcome_jsp._jspx_meth_html_link_3(welcome_jsp.java:252)
      org.apache.jsp.welcome_jsp._jspService(welcome_jsp.java:96)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.struts.chain.commands.servlet.PerformForward.perform(PerformForward.java:95)
      org.apache.struts.chain.commands.AbstractPerformForward.execute(AbstractPerformForward.java:55)
      org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:37)
      org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
      org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:175)
      org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:166)
      org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:189)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1934)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:429)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

      note The full stack trace of the root cause is available in the Apache
      Tomcat/5.0.30 logs.
      Apache Tomcat/5.0.30

      Attachments

        Activity

          People

            Unassigned Unassigned
            wsmoak Wendy Smoak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: