struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: ProcessAction - Scaffold package
Date Tue, 28 Jan 2003 22:08:30 GMT
It's being caught and wrapped inside of a ResourceAction (which supports 
Exception chaining), as intended.

-Ted.

Senthivel U S wrote:
> Greetings,
> 
> We are using ProcessAction and Access Layer. Our Access Layer Component
> throws SQLException. If exception is thrown , it should be caught by
> BaseAction but that is not happening in my case. 
> 
> It gives 
> 
> java.sql.SQLException: Could not process (--our error message from
> stored procedure)
>         <<no stack trace available>>
> 
> in tomcat log.
> 
> Any suggestions is highly appreciated.
> 
> I am attaching herewith the tomcat stack trace. 
> 
> Regards,
> Sen.
> 
> 
> ------------------------------------------------------------------------
> 
> org.apache.commons.scaffold.lang.ResourceException: ResourceException: A require
> d resource is not available.
>         at M2AAccessBase.findCollection(M2AAccessBase.java:110)
>         at BeneficiaryTestBean.execute(BeneficiaryTestBean.java:29)
> 
>         at M2AProcessBeanBase.execute(M2AProcessBeanBase.java:232)
>         at M2AProcessBridgeAction.executeLogic(M2AProcessBridgeAc
> tion.java:724)
>         at org.apache.struts.scaffold.BaseHelperAction.executeLogic(Unknown Sour
> ce)
>         at org.apache.struts.scaffold.BaseAction.execute(Unknown Source)
>         at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
> tProcessor.java:446)
>         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
> va:266)
>         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
> 2)
>         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
> 
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> icationFilterChain.java:247)
>         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
> ilterChain.java:193)
>         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:260)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:191)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
> 2396)
>         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:180)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
> rValve.java:170)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:172)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:174)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:643)
>         at org.apache.catalina.valves.RequestDumperValve.invoke(RequestDumperVal
> ve.java:221)
>         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
> t.invokeNext(StandardPipeline.java:641)
>         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
> a:480)
>         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 
>         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
> 3)
>         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :405)
>         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ssConnection(Http11Protocol.java:380)
>         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
> :508)
>         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
> ool.java:533)
>         at java.lang.Thread.run(Thread.java:484)
> Caused by:
> java.sql.SQLException: Could not process
>         <<no stack trace available>>


-- 
Ted Husted,
Struts in Action <http://husted.com/struts/book.html>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message