[Opensource] Struts1.1 and validation

Peter A. Pilgrim peterp at xenonsoft.demon.co.uk
Mon Nov 17 18:20:09 PST 2003


Eddie Lewis wrote:
> You are correct here Michael. I thought that the state was not even 
> getting invoked, however it seems that the exception is raised in the 
> state itself. i have localised the line where it falls over
> 
> First, Here is the stack trace
> 
> java.lang.ClassCastException at 
> com.jcorporate.expresso.core.controller.ControllerResponse.getDefaultForm(ControllerResponse.java:2332) 
> at 
> com.jcorporate.expresso.core.controller.ControllerResponse.getFormCache(ControllerResponse.java:521) 
> at 
> com.cal.cp.controller.CPLoginCont.runPromptLoginState(CPLoginCont.java:140) 
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
> at java.lang.reflect.Method.invoke(Method.java:324) at 
> com.jcorporate.expresso.core.controller.Controller.newState(Controller.java:1368) 
> at 
> com.jcorporate.expresso.core.controller.Controller.execute(Controller.java:1804) 
> at 
> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) 
> at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) 
> at 

I think this is a conflict with two action mappings with identical names,
and the framework cannot work which action mapping to invoke.

-- 
Peter Pilgrim
            __ _____ _____ _____
           / //__  // ___// ___/   +  Serverside Java
          / /___/ // /__ / /__     +  Struts
         / // ___// ___// ___/     +  Expresso Committer
      __/ // /__ / /__ / /__       +  Independent Contractor
     /___//____//____//____/       +  Intrinsic Motivation
On Line Resume
    ||
    \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''




More information about the Opensource mailing list