Package org.springframework.web.util

Examples of org.springframework.web.util.NestedServletException


  public void invoke(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain)
      throws IOException, ServletException {
    try {
      super.doService(request, response);
    } catch (Exception e) {
      throw new NestedServletException("Request processing failed", e);
    }
  }
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

      // 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

  }

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

    ServletException ex = new NestedServletException("Handler processing failed", error);
    if (mappedHandler != null) {
      mappedHandler.triggerAfterCompletion(request, response, ex);
    }
    throw 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;
      }
    });
  }
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

    }
    catch (IOException ex) {
      throw ex;
    }
    catch (Throwable ex) {
      throw new NestedServletException("Execution of component controller failed", ex);
    }
  }
View Full Code Here

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

    finally {
      // Clear request attributes and reset thread-bound context.
      LocaleContextHolder.setLocaleContext(previousLocaleContext, this.threadContextInheritable);
View Full Code Here

      RemoteInvocation invocation = readRemoteInvocation(request);
      RemoteInvocationResult result = invokeAndCreateResult(invocation, this.proxy);
      writeRemoteInvocationResult(request, response, result);
    }
    catch (ClassNotFoundException ex) {
      throw new NestedServletException("Class not found during deserialization", 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

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.