[Opensource] 5.0.1 (cvs version) errors on Setup?
Michael Rimov
rimovm at centercomp.com
Tue Nov 12 21:46:11 PST 2002
At 12:44 PM 11/12/2002 -0600, you wrote:
>I have an empty database and am running Setup - I get:
>2002-11-12 13:50:13 StandardWrapperValve[action]: Servlet.service() for
>servlet action threw exception
>javax.servlet.ServletException: You cannot set a null Controller Request here
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:261)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>...
>----- Root Cause -----
>com.jcorporate.expresso.core.controller.ControllerException: You cannot
>set a null Controller Request here
> at
> com.jcorporate.expresso.core.controller.ControllerResponse.setRequest(ControllerResponse.java:295)
> at
> com.jcorporate.expresso.core.controller.Controller.handleException(Controller.java:545)
> at
> com.jcorporate.expresso.core.controller.Controller.perform(Controller.java:1773)
> at
> org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
>
>
>Is this just me? I've changed DBMaint mappings and other stuff, but my
>initial debugging doesn't show that to be the problem...
Hmmm... well it looks like some sort of Exception is happening and
Controller is trying to handle it badly. Reading the code, it tries to
handle an error by creating a controller-like response. I think it's
probably a bad idea since an exception at that level means that something
is amiss and the whole controller system could be out of whack.
Probably what would be best is a ControllerError bean that the controller
could put in the request, and then forward to the "error" style, and that
error page would read the ControllerError bean for its data.
I guess that's one to put on the task list!
Now back to actually being some help :)
Put a breakpoint at the beginning of handleException and you'll get to see
what the REAL exception being thrown is. [including its stack trace]. That
should at least give you a start.
HTH
-Mike
More information about the Opensource
mailing list