Yeah, I was getting an exception thrown in the ctor. I just added a bit more careful checking and it's solved now. Thanks a lot, Jason! :)

Jason Carreira wrote:

Did that help you find the problem?

    -----Original Message-----
    *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
    *Sent:* Monday, September 22, 2003 4:20 PM
    *To:* [EMAIL PROTECTED]
    *Subject:* RES: [OS-webwork] weird exception

Ok, done. This is XW-92 :)
-----Mensagem original-----
*De:* Jason Carreira [mailto:[EMAIL PROTECTED]
*Enviada em:* segunda-feira, 22 de setembro de 2003 16:59
*Para:* [EMAIL PROTECTED]
*Assunto:* RE: [OS-webwork] weird exception


That's a misleading exception... please create a Jira issue for
this. Here's the offending code:
protected void createAction() {
// load action
try {
action = (Action)
proxy.getConfig().getClazz().newInstance();
} catch (Exception e) {
throw new IllegalArgumentException("Unknown action name:
" + e.getMessage());
}
}
It's either an InstantiationException or an IllegalAccessException,
most likely, that's occurinig during newInstance()...
Make sure your Action has a public no-args constructor.
Jason


        -----Original Message-----
        *From:* [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
        *Sent:* Monday, September 22, 2003 3:36 PM
        *To:* [EMAIL PROTECTED]
        *Subject:* [OS-webwork] weird exception

Any ideas why this exception can be happening?

        2003-09-22 16:25:15,303 DEBUG
        [com.opensymphony.xwork.DefaultActionProxy] Creating an
        DefaultActionProxy for namespace  and action name step1

        2003-09-22 16:25:15,897 ERROR
        [com.opensymphony.webwork.dispatcher.ServletDispatcher] Could
        not execute action
        java.lang.IllegalArgumentException: Unknown action name: null
                at
        
com.opensymphony.xwork.DefaultActionInvocation.createAction(DefaultActionInvocation.java:175)

                at
        
com.opensymphony.xwork.DefaultActionInvocation.init(DefaultActionInvocation.java:226)

                at
        
com.opensymphony.xwork.DefaultActionInvocation.<init>(DefaultActionInvocation.java:64)

                at
        
com.opensymphony.xwork.DefaultActionInvocation.<init>(DefaultActionInvocation.java:57)

                at
        
com.opensymphony.xwork.DefaultActionProxyFactory.createActionInvocation(DefaultActionProxyFactory.java:29)

                at
        com.opensymphony.xwork.DefaultActionProxy.prepare(DefaultActionProxy.java:134)

                at
        com.opensymphony.xwork.DefaultActionProxy.<init>(DefaultActionProxy.java:78)

                at
        
com.opensymphony.xwork.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:40)

                at
        
com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:163)

                at
        javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                (...)

        Sounds weird, doesn't it? The first log message shows the action
        name, and then it's lost by the DefaultActionInvocation? How
        could I help you guys help me debug this, as a total WW2/XW1
        newbie? :D

        peace,
        -cv





-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to