Examples of DelegationException


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

Examples of ca.eandb.jdcp.remote.DelegationException

        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

Examples of ca.eandb.jdcp.remote.DelegationException

        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

Examples of org.jbpm.graph.def.DelegationException

      {
        graphElement.raiseException(exception, executionContext);
      }
      else
      {
        throw new DelegationException(exception, executionContext);
      }
    }
  }
View Full Code Here

Examples of org.jbpm.graph.def.DelegationException

        outputMap.put(outputName, outputValue);
      }
      log.debug("script output: " + outputMap);
    }
    catch (ParseException e) {
      throw new DelegationException("parse error occurred", e);
    }
    catch (TargetError e) {
      throw new DelegationException("script threw exception", e.getTarget());
    }
    catch (EvalError e) {
      log.warn("exception during evaluation of script expression", e);
      throw new DelegationException("script evaluation failed", e);
    }

    return outputMap;
  }
View Full Code Here

Examples of org.jbpm.graph.def.DelegationException

    Class<?> delegationClass = null;
    try {
      delegationClass = Class.forName(className, false, classLoader);
    }
    catch (ClassNotFoundException e) {
      throw new DelegationException("could not load delegation class '" + className + "'", e);
    }

    // find the instantiator
    Instantiator instantiator = instantiatorCache.get(configType);
    if (instantiator == null) {
View Full Code Here

Examples of org.jbpm.graph.def.DelegationException

    } catch (Exception exception) {
      GraphElement graphElement = executionContext.getEventSource();
      if (graphElement!=null) {
        graphElement.raiseException(exception, executionContext);
      } else {
        throw new DelegationException(exception, executionContext);
      }
    }
  }
View Full Code Here

Examples of org.jbpm.graph.def.DelegationException

    } catch (Exception exception) {
      GraphElement graphElement = executionContext.getEventSource();
      if (graphElement!=null) {
        graphElement.raiseException(exception, executionContext);
      } else {
        throw new DelegationException(exception, executionContext);
      }
    }
  }
View Full Code Here

Examples of org.jbpm.graph.def.DelegationException

                        }
                        if (!handled) {
                            if (exception instanceof JbpmException) {
                                throw (JbpmException) exception;
                            } else {
                                throw new DelegationException(exception, null);
                            }
                        }
                    }
                }
            }
View Full Code Here

Examples of org.jbpm.graph.def.DelegationException

      clazz = clazz.getSuperclass();
    }
    if (exception instanceof JbpmException) {
      throw (JbpmException) exception;
    } else {
      throw new DelegationException(exception, null);
    }
  }
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.