Package org.apache.excalibur.source

Examples of org.apache.excalibur.source.SourceNotFoundException


                CocoonComponentManager.leaveEnvironment();
            }
            return new ByteArrayInputStream(os.toByteArray());

        } catch (ResourceNotFoundException e) {
            throw new SourceNotFoundException("Exception during processing of " + this.systemId, e);
        } catch (Exception e) {
            throw new SourceException("Exception during processing of " + this.systemId, e);
        } finally {
            // Unhide wrapped environment output stream
            this.environment.setOutputStream(null);
View Full Code Here


                }
            }
        } while (document != null && found == false);

        if (document == null) {
            throw new SourceNotFoundException(
                "The document "
                    + documentName
                    + " is not in the archive "
                    + this.archive.getURI());
        }
View Full Code Here

                    }
                }
            }
       } catch (HttpException e) {
            if (e.getReasonCode() == HttpStatus.SC_NOT_FOUND) {
                throw new SourceNotFoundException("Not found: " + getSecureURI(), e);
            }
            final String msg = "Could not initialize webdav resource. Server responded "
                + e.getReasonCode() + " (" + e.getReason() + ") - " + e.getMessage();
            throw new SourceException(msg, e);
       } catch (IOException e) {
View Full Code Here

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

     */
    public InputStream getInputStream() throws IOException, SourceException {
        try {
            return this.source.getInputStream();
        } catch (ResourceNotFoundException rnfe) {
            throw new SourceNotFoundException("Source not found.", rnfe);
        } catch (ProcessingException pe) {
            throw new SourceException("ProcessingException", pe);
        }
    }
View Full Code Here

                }
            }
        } catch (ServiceException e) {
            throw new ProcessingException("Can't lookup source resolver", e);
        } catch (MalformedURLException e) {
            throw new SourceNotFoundException("Invalid resource URL: " + sourceURL, e);
        } finally {
            if (source != null) {
                resolver.release(source);
            }
            manager.release(resolver);
View Full Code Here

                CocoonComponentManager.leaveEnvironment();
            }
            return new ByteArrayInputStream(os.toByteArray());

        } catch (ResourceNotFoundException e) {
            throw new SourceNotFoundException("Exception during processing of " + this.systemId, e);
        } catch (Exception e) {
            throw new SourceException("Exception during processing of " + this.systemId, e);
        } finally {
            // Unhide wrapped environment output stream
            this.environment.setOutputStream(null);
View Full Code Here

      // load coplet base data
      map.put("profile", "copletbasedata");
      map.put("objectmap", null);
      Object[] result = this.getProfile(map, portalPrefix+"/CopletBaseData", service);
      if (result[0] == null) {
        throw new SourceNotFoundException("Could not find coplet base data profile.");
      }
      CopletBaseDataManager copletBaseDataManager = (CopletBaseDataManager)result[0];
      boolean lastLoaded = ((Boolean)result[1]).booleanValue();

      // load coplet data
      map.put("profile", "copletdata");
      map.put("objectmap", copletBaseDataManager.getCopletBaseData());
      result = this.getDeltaProfile(map, portalPrefix+"/CopletData", service);
      if (result[0] == null) {
        throw new SourceNotFoundException("Could not find coplet data profile.");
      }
      CopletDataManager copletDataManager = (CopletDataManager)result[0];
      boolean loaded = ((Boolean)result[1]).booleanValue();
      if (lastLoaded && !loaded) {
        copletDataManager.update(copletBaseDataManager);
View Full Code Here

        // load global profile
        map.remove("type");
        result = this.getProfile(key, location+"-global", service);

        if (result[0] == null) {
          throw new SourceNotFoundException("Could not find global or role profile to create user profile.");
        }
      }
     
      // save profile as user profile
      MapSourceAdapter adapter = null;
View Full Code Here

        {
            return new FileInputStream(m_file);
        }
        catch (FileNotFoundException fnfe)
        {
            throw new SourceNotFoundException(m_uri + " doesn't exist.", fnfe);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.excalibur.source.SourceNotFoundException

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.