You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Paul Benedict (JIRA)" <ji...@apache.org> on 2012/07/06 05:10:33 UTC
[jira] [Created] (WW-3848) NPE forwarding to tile without an action
class
Paul Benedict created WW-3848:
---------------------------------
Summary: NPE forwarding to tile without an action class
Key: WW-3848
URL: https://issues.apache.org/jira/browse/WW-3848
Project: Struts 2
Issue Type: Bug
Components: Core Actions
Affects Versions: 2.3.1
Reporter: Paul Benedict
Struts config:
{noformat}
<package name="default" namespace="/" extends="struts-default">
<action name="test">
<result type="tiles">test.tile</result>
</action>
</package>
{noformat}
Stack trace:
{noformat}
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)
{noformat}
Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439327#comment-13439327 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
Ok, got exactly the same problem - NPE. The solution is easy, please use the new filter. As a follow up, I'm going to add a huge warning message when someone is using the deprecated FilterDispatcher.
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Updated] (WW-3848) NPE forwarding to tile without an action
class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated WW-3848:
------------------------------
Attachment: www3848.zip
In your browser, just go to the root of the application. I am running GlassFish, BTW.
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13419934#comment-13419934 ]
Paul Benedict commented on WW-3848:
-----------------------------------
I don't know what is the real cause to this problem. If I access an action directly that does nothing more than go to "success" and forward to a tile, this error shows up too.
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427097#comment-13427097 ]
Paul Benedict commented on WW-3848:
-----------------------------------
I'll try that out but would you agree the NPE still needs fixing?
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426341#comment-13426341 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
Did you include Tiles Plugin ? If so your "default" package must extends "tiles-default" instead "struts-default".
I did a simple example base on the blank app and that [1] and it works like charm :-)
[1] http://www.dzone.com/tutorials/java/struts-2/struts-2-example/struts-2-tiles-example-1.html
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439304#comment-13439304 ]
Paul Benedict commented on WW-3848:
-----------------------------------
I guess you have to try it on GlassFish to verify my results.
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438108#comment-13438108 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
I've got
{code}
HTTP ERROR: 404
There is no Action mapped for namespace [/] and action name [nowhere] associated with context path [/struts2-blank].
RequestURI=/struts2-blank/nowhere
Powered by Jetty://
{code}
Could you prepare an example app ?
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439317#comment-13439317 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
And try to access /hello action
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Updated] (WW-3848) NPE forwarding to tile without an action
class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated WW-3848:
------------------------------
Affects Version/s: 2.3.4
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Updated] (WW-3848) NPE forwarding to tile without an action
class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3848:
------------------------------
Fix Version/s: 2.3.5
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439313#comment-13439313 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
Did that with the same result - GlassFish Server 3.1.2. Could you try on your side with the new filter ?
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Comment Edited] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438109#comment-13438109 ]
Lukasz Lenart edited comment on WW-3848 at 8/21/12 6:18 AM:
------------------------------------------------------------
And this happened when I disabled {code:xml}<default-action-ref name="index" />{code}, before I was redirected to /index action - my test base on struts2-blank app
was (Author: lukaszlenart):
And this happened when I disabled {code:xml}<default-action-ref name="index" />{code}, before I was redirected to /index action
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13438109#comment-13438109 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
And this happened when I disabled {code:xml}<default-action-ref name="index" />{code}, before I was redirected to /index action
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Updated] (WW-3848) NPE forwarding to tile using old
dispatch filter
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Benedict updated WW-3848:
------------------------------
Summary: NPE forwarding to tile using old dispatch filter (was: NPE forwarding to tile without an action class)
> NPE forwarding to tile using old dispatch filter
> ------------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439325#comment-13439325 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
Just a second, I'll revert to the original configuration.
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile using old
dispatch filter
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439387#comment-13439387 ]
Hudson commented on WW-3848:
----------------------------
Integrated in Struts2 #517 (See [https://builds.apache.org/job/Struts2/517/])
WW-3848 adds warning message that the FilterDispatcher is deprecated and can produce errors when used with other web stacks (Revision 1375926)
Result = SUCCESS
lukaszlenart :
Files :
* /struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/FilterDispatcher.java
> NPE forwarding to tile using old dispatch filter
> ------------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439323#comment-13439323 ]
Paul Benedict commented on WW-3848:
-----------------------------------
I get an error because of my config but I say the issue is solved. It's solved by changing the filter but it is still mysterious why you can't reproduce the problem. Perhaps it's not worth looking into any further?
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Resolved] (WW-3848) NPE forwarding to tile using old
dispatch filter
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart resolved WW-3848.
-------------------------------
Resolution: Fixed
Added a warning message to not use FilterDispatcher and switch to the new filters. Thanks for repotring!
> NPE forwarding to tile using old dispatch filter
> ------------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427121#comment-13427121 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
I must know where the problem is, I've tried to reproduce your problem but I didn't get NPE and NPE on that line is because of that:
String contextPath = ServletActionContext.getRequest().getContextPath();
which means getRequest() returns null which means something went really, really bad and I would like to know what it was.
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439293#comment-13439293 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
When I used Jetty and accessed http://localhost:8080/www3848/hello I got
{code}
Struts Problem Report
Struts has detected an unhandled exception:
Messages:
No result defined for action test.HelloAction and result SUCCCESS
Stacktraces
No result defined for action test.HelloAction and result SUCCCESS
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:376)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:278)
org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:256)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:265)
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:138)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:236)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:236)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:90)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:145)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:171)
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:192)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)
org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:54)
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:511)
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1041)
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:354)
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:226)
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627)
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149)
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123)
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141)
org.mortbay.jetty.Server.handle(Server.java:269)
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:430)
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:687)
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:492)
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:199)
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:339)
org.mortbay.jetty.nio.HttpChannelEndPoint.run(HttpChannelEndPoint.java:270)
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
You are seeing this page because development mode is enabled. Development mode, or devMode, enables extra debugging behaviors and reports to assist developers. To disable this mode, set:
struts.devMode=false
in your WEB-INF/classes/struts.properties file.
{code}
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13426342#comment-13426342 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
Could you attach the whole example ?
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Comment Edited] (WW-3848) NPE forwarding to tile using old
dispatch filter
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439341#comment-13439341 ]
Lukasz Lenart edited comment on WW-3848 at 8/22/12 6:59 PM:
------------------------------------------------------------
Added a warning message to not use FilterDispatcher and switch to the new filters. Thanks for reporting!
was (Author: lukaszlenart):
Added a warning message to not use FilterDispatcher and switch to the new filters. Thanks for repotring!
> NPE forwarding to tile using old dispatch filter
> ------------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439296#comment-13439296 ]
Lukasz Lenart commented on WW-3848:
-----------------------------------
And the same thing happened on Apache Tomcat 7.
What I have changed was the filter, to use the new filter
{code:xml}
<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
{code}
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439315#comment-13439315 ]
Paul Benedict commented on WW-3848:
-----------------------------------
Using the new filter, I now get your result: "There is no Action mapped for namespace"
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
> Attachments: www3848.zip
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Assigned] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Lukasz Lenart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart reassigned WW-3848:
---------------------------------
Assignee: Lukasz Lenart
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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
[jira] [Commented] (WW-3848) NPE forwarding to tile without an
action class
Posted by "Paul Benedict (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WW-3848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13428792#comment-13428792 ]
Paul Benedict commented on WW-3848:
-----------------------------------
Reproduce it by submitting a form to an action that doesn't exist. Make <s:form action="nowhere">
> NPE forwarding to tile without an action class
> ----------------------------------------------
>
> Key: WW-3848
> URL: https://issues.apache.org/jira/browse/WW-3848
> Project: Struts 2
> Issue Type: Bug
> Components: Core Actions
> Affects Versions: 2.3.1, 2.3.4
> Reporter: Paul Benedict
> Assignee: Lukasz Lenart
> Fix For: 2.3.5
>
>
> Struts config:
> {noformat}
> <package name="default" namespace="/" extends="struts-default">
> <action name="test">
> <result type="tiles">test.tile</result>
> </action>
> </package>
> {noformat}
> Stack trace:
> {noformat}
> 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)
> {noformat}
> Specifying the Action class makes the exception go away.
--
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