Package ca.eandb.jdcp.remote

Examples of ca.eandb.jdcp.remote.DelegationException


    } catch (UnmarshalException e) {
      if (e.getCause() instanceof EOFException) {
        logger.error("Lost connection", e);
      } else {
        logger.error("Communication error", e);
        throw new DelegationException("Error occurred delegating to server", e);
      }
    } catch (Exception e) {
      logger.error("Communication error", e);
      throw new DelegationException("Error occurred delegating to server", e);
    }
    throw new DelegationException("No connection to server");
  }
View Full Code Here


        if (e.getCause() instanceof EOFException) {
          this.service = null;
          logger.error("Lost connection", e);
        } else {
          logger.error("Communication error", e);
          throw new DelegationException("Error occurred delegating to server", e);
        }
      } catch (Exception e) {
        logger.error("Communication error", e);
        throw new DelegationException("Error occurred delegating to server", e);
      }
    }
    logger.info("Signalling connection thread to reconnect");
    synchronized (keepAlive) {
      keepAlive.notify();
    }
    throw new DelegationException("No connection to server");
  }
View Full Code Here

        AuthenticationService auth = (AuthenticationService) registry.lookup("AuthenticationService");
        logger.info("Authenticating");
        return auth.authenticate(username, password, JdcpUtil.PROTOCOL_VERSION_ID);
      } catch (Exception e) {
        logger.error("Job service not found at remote host.", e);
        throw new DelegationException("Could not connect to remote host", e);
      }
    } else {
      logger.info("Will not connect, idling");
      throw new DelegationException("Connection to remote host is down.");
    }
  }
View Full Code Here

TOP

Related Classes of ca.eandb.jdcp.remote.DelegationException

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.