Package org.ogce.gfac.exception

Examples of org.ogce.gfac.exception.GfacException


      GramJob job = new GramJob("");
      job.setID(context.getExecutionModel().getJobID());
      job.setCredentials(((GSISecurityContext) context.getSecurityContext()).getGssCredentails());
      job.cancel();
    } catch (MalformedURLException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    } catch (GramException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    } catch (GSSException e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }

  }
View Full Code Here


      } else {
        log.info(myproxyUserName + " " + (myproxyPasswd != null) + " " + myproxyServer + " " + myproxyLifetime);
        this.proxyRenewer = null;
      }
    } catch (NumberFormatException e) {
      throw new GfacException(e, FaultCode.InvaliedLocalArgumnet);
    } catch (Exception e) {
      throw new GfacException(e, FaultCode.InternalServiceError);
    }
  }
View Full Code Here

          gssCredentails = this.proxyRenewer.renewProxy();
        }
      }
      return gssCredentails;
    } catch (Exception e) {
      throw new GfacException(e, FaultCode.ErrorAtDependentService);
    }
  }
View Full Code Here

      String hostcerts = loadFromProperty(SSL_HOSTCERTS_KEY_FILE, true);

      this.registryService = new XregistryServiceWrapper(registryURL, trustcerts, hostcerts);

    } catch (Exception e) {
      throw new GfacException("Error initialize the generic service", e);
    }
  }
View Full Code Here

        }

        this.scheduler = spiClass.newInstance();

      } catch (ClassNotFoundException ex) {
        throw new GfacException("Scheduler " + className + " not found", ex);
      } catch (Exception ex) {
        throw new GfacException("Scheduler " + className + " could not be instantiated: " + ex, ex);
      }
    }
    return this.scheduler;
  }
View Full Code Here

   */
  private String loadFromProperty(String propertyName, boolean required) throws GfacException {
    String propValue = this.properties.getProperty(propertyName);
    if (propValue == null) {
      if (required)
        throw new GfacException("Property \"" + propertyName + "\" is not found", FaultCode.InvalidConfig);
      return null;
    }
    return propValue;
  }
View Full Code Here

          }
          context.addMessageContext(OUTPUT_MESSAGE_CONTEXT, outtmp);
        }

      } catch (XmlException e) {
        throw new GfacException(e, FaultCode.InitalizationError);
      }
    } else {
      throw new GfacException("Service Map for " + context.getServiceName() + " does not found on resource Catalog " + registryService, FaultCode.InvalidRequest);
    }

    return false;
  }
View Full Code Here

          session.close();
        } catch (Exception e) {
        }
      }
    } catch (Exception e) {
      throw new GfacException(e.getMessage(), e);
    } finally {
      try {
        ssh.disconnect();
      } catch (Exception e) {
      }
View Full Code Here

          session.close();
        } catch (Exception e) {
        }
      }
    } catch (Exception e) {
      throw new GfacException(e.getMessage(), e);
    } finally {
      try {
        ssh.disconnect();
      } catch (Exception e) {
      }
View Full Code Here

    } else if (app.getMaxWallTime() > 0) {
      log.info("Setting max wall clock time to " + app.getMaxWallTime());

      if (app.getMaxWallTime() > 30 && app.getQueue() != null && app.getQueue().equals("debug")) {
        throw new GfacException("NCSA debug Queue only support jobs < 30 minutes", FaultCode.InvalidConfig);
      }

      jobAttr.setMaxWallTime(app.getMaxWallTime());
      jobAttr.set("proxy_timeout", "1");
    } else {
View Full Code Here

TOP

Related Classes of org.ogce.gfac.exception.GfacException

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.