Package org.springframework.core

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


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

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

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

    }
    try {
      return new File(VFSUtils.getCompatibleURI(file));
    }
    catch (Exception ex) {
      throw new NestedIOException("Failed to obtain File reference for " + this.file, ex);
    }
  }
View Full Code Here

      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

        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

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

          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

  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

TOP

Related Classes of org.springframework.core.NestedIOException

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.