Package org.apache.manifoldcf.core.interfaces

Examples of org.apache.manifoldcf.core.interfaces.ManifoldCFException


        try {
          AuthenticationUtils.endSession();
        } catch (Exception e) {
          Logging.connectors.error(
              "Alfresco: Error during releasing the connection.");
          throw new ManifoldCFException( "Alfresco: Error during releasing the connection.");
        }
        session = null;
        lastSessionFetch = -1L;
    }
  }
View Full Code Here


          getSession();
          String ticket = AuthenticationUtils.getTicket();
          if(StringUtils.isEmpty(ticket)){
            Logging.connectors.error(
                "Alfresco: Error during checking the connection.");
            throw new ManifoldCFException( "Alfresco: Error during checking the connection.");
          }
          AuthenticationUtils.endSession();
        } catch (Exception e) {
          Logging.connectors.error(
              "Alfresco: Error during checking the connection.");
          throw new ManifoldCFException( "Alfresco: Error during checking the connection.");
        }
        session=null;
        return;
    }
  }
View Full Code Here

          lastSessionFetch = -1L;
        } catch (Exception e) {
          Logging.connectors.error(
              "Alfresco: Error during polling: "
                  + e.getMessage(), e);
          throw new ManifoldCFException("Alfresco: Error during polling: "
              + e.getMessage(),e);
        }
    }
  }
View Full Code Here

              is.close();
            }
          } catch (InterruptedIOException e) {
            errorCode = "Interrupted error";
            errorDesc = e.getMessage();
            throw new ManifoldCFException(e.getMessage(), e,
                ManifoldCFException.INTERRUPTED);
          } catch (IOException e) {
            errorCode = "IO ERROR";
            errorDesc = e.getMessage();
            Logging.connectors.warn(
View Full Code Here

  }
 
  private static void handleIOException(IOException e)
      throws ManifoldCFException, ServiceInterruption {
      if (!(e instanceof java.net.SocketTimeoutException) && (e instanceof InterruptedIOException)) {
        throw new ManifoldCFException("Interrupted: " + e.getMessage(), e,
          ManifoldCFException.INTERRUPTED);
      }
      long currentTime = System.currentTimeMillis();
      throw new ServiceInterruption("IO exception: "+e.getMessage(), e, currentTime + 300000L,
        currentTime + 3 * 60 * 60000L,-1,false);
 
View Full Code Here

        currentTime + 3 * 60 * 60000L,-1,false);
  }
 
  private void handleParseException(ParseException e)
      throws ManifoldCFException {
    throw new ManifoldCFException(
        "Alfresco: Error during parsing date values. This should never happen: "+e.getMessage(),e);
  }
View Full Code Here

        if (line.length() > 0)
          set.add(line);
      }
      return set;
    } catch (IOException e) {
      throw new ManifoldCFException(e);
    } finally {
      if (br != null)
        IOUtils.closeQuietly(br);
    }
  }
View Full Code Here

  protected JiraSession getSession() throws ManifoldCFException {
    if (session == null) {
      // Check for parameter validity

      if (StringUtils.isEmpty(jiraprotocol)) {
        throw new ManifoldCFException("Parameter " + JiraConfig.JIRA_PROTOCOL_PARAM
            + " required but not set");
      }

      if (Logging.authorityConnectors.isDebugEnabled()) {
        Logging.authorityConnectors.debug("JIRA: jiraprotocol = '" + jiraprotocol + "'");
      }

      if (StringUtils.isEmpty(jirahost)) {
        throw new ManifoldCFException("Parameter " + JiraConfig.JIRA_HOST_PARAM
            + " required but not set");
      }

      if (Logging.authorityConnectors.isDebugEnabled()) {
        Logging.authorityConnectors.debug("JIRA: jirahost = '" + jirahost + "'");
      }

      if (Logging.authorityConnectors.isDebugEnabled()) {
        Logging.authorityConnectors.debug("JIRA: jiraport = '" + jiraport + "'");
      }

      if (StringUtils.isEmpty(jirapath)) {
        throw new ManifoldCFException("Parameter " + JiraConfig.JIRA_PATH_PARAM
            + " required but not set");
      }

      if (Logging.authorityConnectors.isDebugEnabled()) {
        Logging.authorityConnectors.debug("JIRA: jirapath = '" + jirapath + "'");
View Full Code Here

  }

  private static void handleIOException(IOException e)
    throws ManifoldCFException {
    if (!(e instanceof java.net.SocketTimeoutException) && (e instanceof InterruptedIOException)) {
      throw new ManifoldCFException("Interrupted: " + e.getMessage(), e,
        ManifoldCFException.INTERRUPTED);
    }
    Logging.authorityConnectors.warn("JIRA: IO exception: "+e.getMessage(), e);
    throw new ManifoldCFException("IO exception: "+e.getMessage(), e);
  }
View Full Code Here

    throw new ManifoldCFException("IO exception: "+e.getMessage(), e);
  }

  private static void handleResponseException(ResponseException e)
    throws ManifoldCFException {
    throw new ManifoldCFException("Response exception: "+e.getMessage(),e);
  }
View Full Code Here

TOP

Related Classes of org.apache.manifoldcf.core.interfaces.ManifoldCFException

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.