File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Error at RequestProcessor processActionPerform Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error at RequestProcessor processActionPerform" Watch "Error at RequestProcessor processActionPerform" New topic

Error at RequestProcessor processActionPerform

Nandu Arni

Joined: Jan 26, 2002
Posts: 8
Very frquently I am getting this exception when I click any link, if I re-login then i don't see error again. Here is the exception and I am also writing execute() of my DispatchAction class here. please advice me where is the error and how to solve this.

2005-05-05 19:10:48 StandardWrapperValve[ActionServlet]: Servlet.service() for servlet ActionServlet threw exception
at com.mrll.struts.apex.framework.DispatchAction.execute(Unknown Source)
at org.apache.struts.action.RequestProcessor.processActionPerform(
at org.apache.struts.action.RequestProcessor.process(
at org.apache.struts.action.ActionServlet.process(
at org.apache.struts.action.ActionServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardValveContext.invokeNext(
at org.apache.catalina.core.StandardPipeline.invoke(
at org.apache.catalina.core.StandardContextValve.invokeInternal(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardValveContext.invokeNext(
at org.apache.catalina.core.StandardPipeline.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.core.StandardValveContext.invokeNext(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardValveContext.invokeNext(
at org.apache.catalina.core.StandardPipeline.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.core.StandardValveContext.invokeNext(
at org.apache.catalina.core.StandardPipeline.invoke(
at org.apache.catalina.core.ContainerBase.invoke(
at org.apache.coyote.tomcat5.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(
at org.apache.tomcat.util.threads.ThreadPool$


public final ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {

Throwable throwable = null;
ActionForward actionForward = null;

try {
initialize(mapping, form, request, response);

Object[] parameters = new Object[] {mapping, form, request, response};
String methodName = mapping.getParameter();

if ((methodName == null) || methodName.equalsIgnoreCase("")) {
throw new NoSuchMethodException(methodName);

//As per the Merrill's request, we have added 'execute' keyword infront of the method name
//In struts-config, parameter attributes doesn't have 'execute' keyword
methodName = EXECUTE + methodName;

// Try to find a method on this object of the specified name
Method method = getClass().getMethod(methodName, PARAMETER_TYPES);

if (method == null) {
throw new NoSuchMethodException(methodName);

// Invoke the named method on the current object
actionForward = (ActionForward) method.invoke(this, parameters);
} catch (InvocationTargetException e) {
throwable = e.getTargetException();
} catch (Exception e) {
throwable = e;
} finally {

if (throwable != null) {
request.setAttribute(REQUEST_ATTRIBUTE_EXCEPTION, throwable);

cleanup(mapping, form, request, response, actionForward);

return mapping.findForward(actionForward.getName());
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Your catch blocks include:
but won't actionForward be null if an exception occurred?

A good workman is known by his tools.
I agree. Here's the link:
subject: Error at RequestProcessor processActionPerform
It's not a secret anymore!