Package org.springframework.web.util

Examples of org.springframework.web.util.NestedServletException


          throw (ServletException) ex;
        }
        if (ex instanceof RuntimeException) {
          throw (RuntimeException) ex;
        }
        throw new NestedServletException("Unhandled exception", ex);
      }
    }
  }
View Full Code Here


      // Trigger after-completion for thrown exception.
      triggerAfterCompletion(mappedHandler, interceptorIndex, processedRequest, response, ex);
      throw ex;
    }
    catch (Error err) {
      ServletException ex = new NestedServletException("Handler processing failed", err);
      // Trigger after-completion for thrown exception.
      triggerAfterCompletion(mappedHandler, interceptorIndex, processedRequest, response, ex);
      throw ex;
    }
View Full Code Here

    }
    catch (BeansException ex) {
      String msg = "Failed to set bean properties on filter '" +
        filterConfig.getFilterName() + "': " + ex.getMessage();
      logger.error(msg, ex);
      throw new NestedServletException(msg, ex);
    }

    // Let subclasses do whatever initialization they like.
    initFilterBean();
View Full Code Here

    try {
      invoke(request.getInputStream(), response.getOutputStream());
    }
    catch (Throwable ex) {
      throw new NestedServletException("Burlap skeleton invocation failed", ex);
    }
  }
View Full Code Here

        public Object call() throws Exception {
          if (result instanceof Exception) {
            throw (Exception) result;
          }
          else if (result instanceof Throwable) {
            throw new NestedServletException("Async processing failed", (Throwable) result);
          }
          return result;
        }
      }, CALLABLE_METHOD);
      setHandlerMethodReturnValueHandlers(ServletInvocableHandlerMethod.this.returnValueHandlers);
View Full Code Here

    }
    catch (IOException ex) {
      throw ex;
    }
    catch (Exception ex) {
      throw new NestedServletException("View rendering failed", ex);
    }
  }
View Full Code Here

      failureCause = ex;
      throw ex;
    }
    catch (Throwable ex) {
      failureCause = ex;
      throw new NestedServletException("Request processing failed", ex);
    }

    finally {
      resetContextHolders(request, previousLocaleContext, previousAttributes);
      if (requestAttributes != null) {
View Full Code Here

  }

  private void triggerAfterCompletionWithError(HttpServletRequest request, HttpServletResponse response,
      HandlerExecutionChain mappedHandler, Error error) throws Exception {

    ServletException ex = new NestedServletException("Handler processing failed", error);
    if (mappedHandler != null) {
      mappedHandler.triggerAfterCompletion(request, response, ex);
    }
    throw ex;
  }
View Full Code Here

          Object tool = toolClass.newInstance();
          initTool(tool, velocityContext);
          velocityContext.put(attributeName, tool);
        }
        catch (Exception ex) {
          throw new NestedServletException("Could not instantiate Velocity tool '" + attributeName + "'", ex);
        }
      }
    }

    // Expose locale-aware DateTool/NumberTool attributes.
View Full Code Here

    try {
      template.merge(context, response.getWriter());
    }
    catch (MethodInvocationException ex) {
      Throwable cause = ex.getWrappedThrowable();
      throw new NestedServletException(
          "Method invocation failed during rendering of Velocity view with name '" +
          getBeanName() + "': " + ex.getMessage() + "; reference [" + ex.getReferenceName() +
          "], method '" + ex.getMethodName() + "'",
          cause==null ? ex : cause);
    }
View Full Code Here

TOP

Related Classes of org.springframework.web.util.NestedServletException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.