[JIRA-OS] Commented: (WW-167) misleading exception is thrown from ServletDispatcher when action's constructor throws an exception

[email protected]
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
The following comment has been added to this issue:

     Author: Patrick Lightbody
    Created: Sun, 14 Sep 2003 5:38 PM
       Body:
Cameron,
Can you upload the patch again? it appears that it got deleted or something :(
---------------------------------------------------------------------
View the issue:

  http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-167


Here is an overview of the issue:
---------------------------------------------------------------------
        Key: WW-167
    Summary: misleading exception is thrown from ServletDispatcher when action's constructor throws an exception
       Type: Bug

     Status: Assigned
   Priority: Trivial

    Project: WebWork
 Components: 
             Dispatch
   Fix Fors:
             2.0-beta2
   Versions:
             2.0-beta2
             2.0-beta1

   Assignee: Patrick Lightbody
   Reporter: Cameron Braid

    Created: Thu, 1 May 2003 8:34 AM
    Updated: Sun, 13 Jul 2003 11:55 AM

Description:
When an exception is thrown from an action's constructor a NullPointerException is thrown.  The following stack trace is the result, it is misleading.

java.lang.IllegalArgumentException: Unknown action name: null
	at com.opensymphony.xwork.ActionInvocation.createAction ActionInvocation.java:169)
	at com.opensymphony.xwork.ActionInvocation.init ActionInvocation.java:217)
	at com.opensymphony.xwork.ActionInvocation.<init>(ActionInvocation.java:63)
	at com.opensymphony.xwork.ActionInvocation.<init>(ActionInvocation.java:56)
	at com.opensymphony.xwork.ActionProxy.prepare(ActionProxy.java:116)
	at com.opensymphony.xwork.ActionProxy.<init>(ActionProxy.java:56)
	at com.opensymphony.xwork.ActionProxy.createActionProxy(ActionProxy.java:62)
	at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:138)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	.....




---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://jira.opensymphony.com/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.