Package org.springframework.web.util

Examples of org.springframework.web.util.NestedServletException


    try {
      return this.engine.createTemplateByPath(viewUrl);
    }
    catch (ClassNotFoundException ex) {
      Throwable cause = (ex.getCause() != null ? ex.getCause() : ex);
      throw new NestedServletException("Could not find class while rendering Groovy Markup view with name '" +
          getUrl() + "': " + ex.getMessage() "'", cause);
    }
  }
View Full Code Here


              return "anything";
            }
          });
        }
        catch (Exception e) {
          throw new NestedServletException("", e);
        }
      }
    };

    assertFalse(TransactionSynchronizationManager.hasResource(sf));
View Full Code Here

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

    }
    catch (IOException ex) {
      throw ex;
    }
    catch (Exception ex) {
      throw new NestedServletException("View rendering failed", 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

      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

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

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.