Examples of NestedIOException


Examples of org.springframework.core.NestedIOException

      InputStream is = configLocations[i].getInputStream();
      try {
        client = configParser.parse(is, properties);
      }
      catch (RuntimeException ex) {
        throw new NestedIOException("Failed to parse config resource: " + configLocations[i], ex.getCause());
      }
    }

    if (mappingLocations != null) {
      SqlMapParser mapParser = SqlMapParserFactory.createSqlMapParser(configParser);
      for (int i = 0; i < mappingLocations.length; i++) {
        try {
          mapParser.parse(mappingLocations[i].getInputStream());
        }
        catch (NodeletException ex) {
          throw new NestedIOException("Failed to parse mapping resource: " + mappingLocations[i], ex);
        }
      }
    }

    return client;
View Full Code Here

Examples of org.springframework.core.NestedIOException

        logger.debug("No Velocity view found for URL: " + getUrl());
      }
      return false;
    }
    catch (Exception ex) {
      throw new NestedIOException(
          "Could not load Velocity template for URL [" + getUrl() + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.core.NestedIOException

      // Never use ASM for core java types
      try {
        return new SourceClass(this.resourceLoader.getClassLoader().loadClass(className));
      }
      catch (ClassNotFoundException ex) {
        throw new NestedIOException("Failed to load class [" + className + "]", ex);
      }
    }
    return new SourceClass(this.metadataReaderFactory.getMetadataReader(className));
  }
View Full Code Here

Examples of org.springframework.core.NestedIOException

          return asSourceClass(clazz);
        }
        catch (ClassNotFoundException ex) {
          // Ignore -> fall back to ASM next, except for core java types.
          if (className.startsWith("java")) {
            throw new NestedIOException("Failed to load class [" + className + "]", ex);
          }
          return new SourceClass(metadataReaderFactory.getMetadataReader(className));
        }
      }
      return asSourceClass(className);
View Full Code Here

Examples of org.springframework.core.NestedIOException

  public URL getURL() throws IOException {
    try {
      return VfsUtils.getURL(this.resource);
    }
    catch (Exception ex) {
      throw new NestedIOException("Failed to obtain URL for file " + this.resource, ex);
    }
  }
View Full Code Here

Examples of org.springframework.core.NestedIOException

  public URI getURI() throws IOException {
    try {
      return VfsUtils.getURI(this.resource);
    }
    catch (Exception ex) {
      throw new NestedIOException("Failed to obtain URI for " + this.resource, ex);
    }
  }
View Full Code Here

Examples of org.springframework.core.NestedIOException

    URL url = getURL();
    try {
      return ResourceUtils.toURI(url);
    }
    catch (URISyntaxException ex) {
      throw new NestedIOException("Invalid URI [" + url + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.core.NestedIOException

      // Check that we can get the template, even if we might subsequently get it again.
      getTemplate(this.layoutUrl);
      return true;
    }
    catch (ResourceNotFoundException ex) {
      throw new NestedIOException("Cannot find Velocity template for URL [" + this.layoutUrl +
          "]: Did you specify the correct resource loader path?", ex);
    }
    catch (Exception ex) {
      throw new NestedIOException(
          "Could not load Velocity template for URL [" + this.layoutUrl + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.core.NestedIOException

        logger.debug("No Velocity view found for URL: " + getUrl());
      }
      return false;
    }
    catch (Exception ex) {
      throw new NestedIOException(
          "Could not load Velocity template for URL [" + getUrl() + "]", ex);
    }
  }
View Full Code Here

Examples of org.springframework.core.NestedIOException

    for (int i = 0; i < configLocations.length; i++) {
      InputStream is = configLocations[i].getInputStream();
      try {
        client = configParser.parse(is, properties);
      } catch (RuntimeException ex) {
        throw new NestedIOException("Failed to parse config resource: " + configLocations[i], ex.getCause());
      }
    }

    if (mappingLocations != null) {
      SqlMapParser mapParser = SqlMapParserFactory.createSqlMapParser(configParser);
      for (int i = 0; i < mappingLocations.length; i++) {
        try {
          mapParser.parse(mappingLocations[i].getInputStream());
        } catch (NodeletException ex) {
          throw new NestedIOException("Failed to parse mapping resource: " + mappingLocations[i], ex);
        }
      }
    }

    return client;
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.