Examples of SourceNotFoundException


Examples of org.apache.excalibur.source.SourceNotFoundException

      if (!isSourceNotFoundException(e))
        throw e;
    }
   
    if (result == null)
      throw new SourceNotFoundException("Global "+keyMap.get("profile")+" does not exist.");
   
    // change references to objects where no delta has been applied
    result.adjustReferences(global);
   
    service.setAttribute(location, result);
View Full Code Here

Examples of org.apache.excalibur.source.SourceNotFoundException

            if (!uri.endsWith("/")) {
                sb.append('/');
            }

        } catch (IOException e) {
            throw new SourceNotFoundException("Cannot resolve catalogue base URI <" + base + ">", e);
        } finally {
            this.resolver.release(src);
        }

        // Append catalogue name
View Full Code Here

Examples of org.apache.excalibur.source.SourceNotFoundException

    public InputStream getInputStream() throws IOException {
        ZipInputStream zipStream = new ZipInputStream(this.archive.getInputStream());
        try {
            ZipEntry entry = findEntry(zipStream);
            if (entry == null) {
                throw new SourceNotFoundException("File " + this.filePath + " is not found in the archive " +
                                                  this.archive.getURI());
            }

            // Now we will extract the document and write it into a byte array
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
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.