Examples of RepositoryException


Examples of atg.repository.RepositoryException

                            )
                    );
                }

            } catch ( Exception e ) {
                throw new RepositoryException(
                        "Exception caught importing files into repository.", e
                );
            }
        }
    }
View Full Code Here

Examples of com.atlassian.bamboo.repository.RepositoryException

      return QueryCommands.GetChangesets(null, revClause, mRepSpec);
    }
    catch (PlasticException ex)  {
      String message = "Error getting changesets to be committed: " + ex.getMessage();
      log.warn(message, ex);
      throw new RepositoryException(message);
    }
  }
View Full Code Here

Examples of com.caucho.env.repository.RepositoryException

      String tag = commit.getId();
     
      return deployJar(tag, gitCommit, commit.getAttributes());
    }
    catch (IOException e) {
      throw new RepositoryException(e);
    }
    finally {
      if (gitCommit != null)
        gitCommit.close();
    }
View Full Code Here

Examples of com.google.enterprise.connector.spi.RepositoryException

    ous = new Vector<String>(10);
    String[] ary = canonicalName.split("/");
    for (int i = 0; i < ary.length; i++) {
      String[] pair = ary[i].split("=");
      if (pair.length != 2) {
        throw new RepositoryException("Invalid Notes name: " + canonicalName);
      }
      if ("CN".equalsIgnoreCase(pair[0])) {
        commonName = pair[1].trim();
      } else if ("OU".equalsIgnoreCase(pair[0])) {
        ous.add(pair[1]);
      } else if ("O".equalsIgnoreCase(pair[0])) {
        organization = pair[1];
      }
    }
    if (commonName == null) {
      throw new RepositoryException(
              "Failed to compute common name: " + canonicalName);
    }
    initAbbreviateName();
   
    if (shortName == null) {
View Full Code Here

Examples of com.sun.enterprise.admin.servermgmt.RepositoryException

    protected void createDirectory(File dir) throws RepositoryException
    {
        if (!dir.exists()) {
            try {
                if (!dir.mkdirs()) {
                    throw new RepositoryException(_strMgr.getString("directoryCreationError",
                        dir));
                }
      } catch (Exception e) {
                throw new RepositoryException(_strMgr.getString("directoryCreationError",
                        dir), e);
            }
        }
    }
View Full Code Here

Examples of com.sun.enterprise.admin.wsmgmt.repository.spi.RepositoryException

        // load webservices.xml beans
        FileInputStream in = null;
        try {
            in = new FileInputStream(webservices);
        } catch(FileNotFoundException fne) {
            throw new RepositoryException(fne);
        }
        Webservices webServices = null;
        webServices = Webservices.createGraph(in);

        // bundle name is null for stand alone module
View Full Code Here

Examples of com.ubx1.pdpscanner.shared.exceptions.RepositoryException

            + UserRole.OWNER.code() + ")");

        conn.disconnect();
      } catch (SVNException e) {

        throw new RepositoryException(svnUrl, svnUser, svnPassword,
            "Project repository couldn't be reached (svn info)");
      }

      return null;
    } else {
View Full Code Here

Examples of com.volantis.mcs.repository.RepositoryException

                Document customDefinitions =
                        createNewDocument(new BufferedInputStream(input));
                mergeDefinitionDocuments(xmlDefinitionsDocument, customDefinitions);
            }
        } else {
            throw new RepositoryException(
                    exceptionLocalizer.format(
                            "device-repository-file-missing",
                            DeviceRepositoryConstants.DEFINITIONS_XML));
        }

        // Read in a JDOM document for the hierarchy from the archive.
        input = repositoryArchive.getInputFrom(DeviceRepositoryConstants.HIERARCHY_XML);
        if (input != null) {
            xmlHierarchyDocument = createNewDocument(
                    new BufferedInputStream(input));
        } else {
            throw new RepositoryException(
                    exceptionLocalizer.format(
                            "device-repository-file-missing",
                            DeviceRepositoryConstants.HIERARCHY_XML));
        }

        // Read in a JDOM document for device identification from the archive.
        input = repositoryArchive.getInputFrom(DeviceRepositoryConstants.IDENTIFICATION_XML);
        if (input != null) {
            xmlIdentificationDocument = createNewDocument(
                    new BufferedInputStream(input));
        } else {
            throw new RepositoryException(
                    exceptionLocalizer.format(
                            "device-repository-file-missing",
                            DeviceRepositoryConstants.IDENTIFICATION_XML));
        }

        // Read in a JDOM document for device TAC identification from the
        // archive.
        input = repositoryArchive.getInputFrom(DeviceRepositoryConstants.TAC_IDENTIFICATION_XML);
        if (input != null) {
            xmlTACIdentificationDocument = createNewDocument(
                    new BufferedInputStream(input));
        } else {
            // No TAC file was found - this is not an error, as TAC data is
            // not available in all repositories. Ignore this and leave the
            // document null.
        }

        // Read in a JDOM document for repository from the archive.
        revision = retrieveRevision(repositoryArchive, factory);

        try {
            properties = createMergedProperties(repositoryArchive);
        } catch (IOException ioe) {
            throw new RepositoryException(
                    exceptionLocalizer.format(
                            "device-repository-file-missing",
                            "policies.properties"),
                    ioe);
        }
View Full Code Here

Examples of javax.jcr.RepositoryException

          children[i] = new FileNode(_session, childPath);
      }

      return new BaseNodeIterator(children);
    } catch (IOException e) {
      throw new RepositoryException(e);
    }
  }
View Full Code Here

Examples of javax.jcr.RepositoryException

    throws RepositoryException
  {
    try {
      return _path.openRead();
    } catch (IOException e) {
      throw new RepositoryException(e);
    }
  }
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.