Examples of NestedIOException


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

      }
      try {
        return new File((URI) invokeVfsMethod(VFS_UTILS_METHOD_GET_COMPATIBLE_URI, null, vfsResource));
      }
      catch (Exception ex) {
        throw new NestedIOException("Failed to obtain File reference for " + vfsResource, ex);
      }
    }
    else {
      return (File) invokeVfsMethod(GET_PHYSICAL_FILE, vfsResource);
    }
View Full Code Here

Examples of org.springframework.core.NestedIOException

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

    if (mappingLocations != null) {
      SqlMapParser mapParser = SqlMapParserFactory.createSqlMapParser(configParser);
      for (Resource mappingLocation : mappingLocations) {
        try {
          mapParser.parse(mappingLocation.getInputStream());
        }
        catch (NodeletException ex) {
          throw new NestedIOException("Failed to parse mapping resource: " + mappingLocation, ex);
        }
      }
    }

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

    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

  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

Examples of org.springframework.core.NestedIOException

  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

Examples of org.springframework.core.NestedIOException

    }
    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
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.