Examples of NestedServletException


Examples of org.springframework.web.util.NestedServletException

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

Examples of org.springframework.web.util.NestedServletException

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

Examples of org.springframework.web.util.NestedServletException

    }
    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

Examples of org.springframework.web.util.NestedServletException

      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

Examples of org.springframework.web.util.NestedServletException

          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 VelocityFormatter attribute.
View Full Code Here

Examples of org.springframework.web.util.NestedServletException

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

Examples of org.springframework.web.util.NestedServletException

      // Perform the actual XSLT transformation.
      trans.transform(source, result);
    }
    catch (TransformerConfigurationException ex) {
      throw new NestedServletException(
          "Couldn't create XSLT transformer in XSLT view with name [" + getBeanName() + "]", ex);
    }
    catch (TransformerException ex) {
      throw new NestedServletException(
          "Couldn't perform transform in XSLT view with name [" + getBeanName() + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.web.util.NestedServletException

    BurlapOutput out = new BurlapOutput(response.getOutputStream());
    try {
      this.skeleton.invoke(in, out);
    }
    catch (Throwable ex) {
      throw new NestedServletException("Burlap skeleton invocation failed", ex);
    }
  }
View Full Code Here

Examples of org.springframework.web.util.NestedServletException

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

Examples of org.springframework.web.util.NestedServletException

    }
    if (ex instanceof Error) {
      throw (Error) ex;
    }
    // Should never happen!
    throw new NestedServletException("Unknown Throwable type encountered", ex);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.