Return-Path: Delivered-To: apmail-struts-issues-archive@locus.apache.org Received: (qmail 57679 invoked from network); 6 Jun 2007 07:34:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jun 2007 07:34:50 -0000 Received: (qmail 1879 invoked by uid 500); 6 Jun 2007 07:34:52 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 1774 invoked by uid 500); 6 Jun 2007 07:34:51 -0000 Mailing-List: contact issues-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list issues@struts.apache.org Received: (qmail 1765 invoked by uid 99); 6 Jun 2007 07:34:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 00:34:51 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jun 2007 00:34:47 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3B2EF71418F for ; Wed, 6 Jun 2007 00:34:27 -0700 (PDT) Message-ID: <10024020.1181115267239.JavaMail.jira@brutus> Date: Wed, 6 Jun 2007 00:34:27 -0700 (PDT) From: "Cyril Gambis (JIRA)" To: issues@struts.apache.org Subject: [jira] Created: (WW-1969) Error in TagUtils (NullPointerException) when viewing a page which didn't go through Struts 2 interceptor stack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Error in TagUtils (NullPointerException) when viewing a page which didn't go through Struts 2 interceptor stack --------------------------------------------------------------------------------------------------------------- Key: WW-1969 URL: https://issues.apache.org/struts/browse/WW-1969 Project: Struts 2 Issue Type: Bug Components: Views Affects Versions: 2.0.6 Environment: Tomcat 4.1 Java 1.4 Struts 2 - Java 1.4 retrotranslated version Reporter: Cyril Gambis Priority: Critical I searched for that item and havn't find anything in JIRA. I think there may be a patch because it is quite a serious issue and it is a regression from Struts 2.0.5 as I read on some forum. With this bug, some HelloWorld tutorials don't work anymore. The stack trace is: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrappe r.java:467) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) root cause java.lang.NullPointerException org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:58) org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport .java:54) org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport .java:49) org.apache.jsp.WebContent.index_jsp._jspx_meth_s_005fhead_005f0(index_jsp.java: 155) org.apache.jsp.WebContent.index_jsp._jspService(index_jsp.java:77) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:328) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) I understand that if you access directly a jsp page containing a tag like s:text, s:a or s:url, which usually won't need for a value stack. A solution may be to have everything go through the struts 2 interceptor stack, but believe me, for legacy application it is sometimes not easy at all (one of my developer has work on this problem for 2 days, currently). Is there any patch, anywhere? Especially for the Java 1.4 version or Struts 2? Some links: http://forums.opensymphony.com/thread.jspa?messageID=155149𥸍 http://www.mail-archive.com/user@struts.apache.org/msg57582.html Thanks! Cyril Gambis -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.