Return-Path: X-Original-To: apmail-struts-issues-archive@minotaur.apache.org Delivered-To: apmail-struts-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 547329944 for ; Tue, 3 Apr 2012 18:36:47 +0000 (UTC) Received: (qmail 63966 invoked by uid 500); 3 Apr 2012 18:36:47 -0000 Delivered-To: apmail-struts-issues-archive@struts.apache.org Received: (qmail 63928 invoked by uid 500); 3 Apr 2012 18:36:47 -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 63921 invoked by uid 99); 3 Apr 2012 18:36:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 18:36:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 18:36:45 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E6282356537 for ; Tue, 3 Apr 2012 18:36:25 +0000 (UTC) Date: Tue, 3 Apr 2012 18:36:25 +0000 (UTC) From: "Lukasz Lenart (Closed) (JIRA)" To: issues@struts.apache.org Message-ID: <986140129.7650.1333478185944.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <19703155.34510.1331135217547.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Closed] (WW-3770) NullPointerException instead of "There is no Action mapped for namespace..." (regression?) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/WW-3770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lukasz Lenart closed WW-3770. ----------------------------- Resolution: Not A Problem Assignee: Lukasz Lenart > NullPointerException instead of "There is no Action mapped for namespace..." (regression?) > ------------------------------------------------------------------------------------------ > > Key: WW-3770 > URL: https://issues.apache.org/jira/browse/WW-3770 > Project: Struts 2 > Issue Type: Bug > Components: Core Actions > Affects Versions: 2.3.1.2 > Reporter: Antoine W > Assignee: Lukasz Lenart > Fix For: 2.3.2 > > > After upgrading to Struts 2.3.1.2, we get a Nullpointer when trying to access an undefined action (in example, /badurl.do) - see complete stack below. > This is because ServletActionContext.getRequest() is NULL when getErrorMessage() gets called. > This is a major issue because it prevents 404 error to be handled correctly and it affects several websites (just Google for "org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69)") > Edit: maybe is it due to the fact I'm using deprecated FilterDispatcher... > java.lang.NullPointerException > org.apache.struts2.impl.StrutsActionProxy.getErrorMessage(StrutsActionProxy.java:69) > com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185) > org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63) > org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39) > com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) > org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:500) > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434) > [my filter extends FilterDispatcher] > com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) > com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) > org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java:102) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira