Examples of IvoryException


Examples of org.apache.ivory.IvoryException

            @SuppressWarnings("unchecked")
            JAXBElement<WORKFLOWAPP> jaxbElement = (JAXBElement<WORKFLOWAPP>) unmarshaller.unmarshal(this.getClass()
                    .getResourceAsStream(template));
            return jaxbElement.getValue();
        } catch (JAXBException e) {
            throw new IvoryException(e);
        }
    }
View Full Code Here

Examples of org.apache.ivory.IvoryException

            audit(request, entity, type, "SUSPEND");
            Entity entityObj = EntityUtil.getEntity(type, entity);
            if (getWorkflowEngine().isActive(entityObj))
                getWorkflowEngine().suspend(entityObj);
            else
                throw new IvoryException(entity + "(" + type + ") is not scheduled");
            return new APIResult(APIResult.Status.SUCCEEDED, entity + "(" + type + ") suspended successfully");
        } catch (Throwable e) {
            LOG.error("Unable to suspend entity", e);
            throw IvoryWebException.newException(e, Response.Status.BAD_REQUEST);
        }
View Full Code Here

Examples of org.apache.ivory.IvoryException

            @SuppressWarnings("unchecked")
            JAXBElement<COORDINATORAPP> jaxbElement = (JAXBElement<COORDINATORAPP>) unmarshaller
                    .unmarshal(AbstractOozieEntityMapper.class.getResourceAsStream(template));
            return jaxbElement.getValue();
        } catch (JAXBException e) {
            throw new IvoryException(e);
        }
    }
View Full Code Here

Examples of org.apache.ivory.IvoryException

            audit(request, entity, type, "RESUME");
            Entity entityObj = EntityUtil.getEntity(type, entity);
            if (getWorkflowEngine().isActive(entityObj))
                getWorkflowEngine().resume(entityObj);
            else
                throw new IvoryException(entity + "(" + type + ") is not scheduled");
            return new APIResult(APIResult.Status.SUCCEEDED, entity + "(" + type + ") resumed successfully");
        } catch (Throwable e) {
            LOG.error("Unable to resume entity", e);
            throw IvoryWebException.newException(e, Response.Status.BAD_REQUEST);
        }
View Full Code Here

Examples of org.apache.ivory.IvoryException

      connection.setExceptionListener(this);
      connection.start();
    } catch (Exception e) {
      LOG.error("Error starting subscriber of topic: " + this.toString(),
          e);
      throw new IvoryException(e);
    }
  }
View Full Code Here

Examples of org.apache.ivory.IvoryException

            if (cause != null)  {
                if (cause instanceof IvoryWebException) throw (IvoryWebException) cause;
                if (cause instanceof IvoryRuntimException) throw (IvoryRuntimException) cause;
                if (cause instanceof IvoryException) throw (IvoryException) cause;
            }
            throw new IvoryException("Unable to invoke on the channel " + methodName +
                    " on service : " + service.getClass().getName() + cause);
        }
    }
View Full Code Here

Examples of org.apache.ivory.IvoryException

      subscriber.close();
      connection.close();
    } catch (JMSException e) {
      LOG.error("Error closing subscriber of topic: " + this.toString(),
          e);
      throw new IvoryException(e);
    }
  }
View Full Code Here

Examples of org.apache.ivory.IvoryException

                localInitialized = true;
            }
            //return LocalOozie.getClient();
            return null;
        } catch (Exception e) {
            throw new IvoryException(e);
        }
    }
View Full Code Here

Examples of org.apache.ivory.IvoryException

            LOG.info("Deleting entity path " + entityPath + " on cluster " + clusterName);
           
            Configuration conf = ClusterHelper.getConfiguration(cluster);
            FileSystem fs = FileSystem.get(conf);
            if (fs.exists(entityPath) && !fs.delete(entityPath, true)) {
                throw new IvoryException("Unable to cleanup entity path: " + entityPath);
            }
        } catch (Exception e) {
            throw new IvoryException("Failed to cleanup entity path for " + entity.toShortString() + " on cluster " + clusterName, e);
        }
    }
View Full Code Here

Examples of org.apache.ivory.IvoryException

            String proxyClassName = deploymentProperties.
                    getProperty(serviceName + ".proxy");
            service = Class.forName(proxyClassName);
            LOG.info("Service: " + serviceName + ", url = " + urlPrefix);
        } catch (Exception e) {
            throw new IvoryException("Unable to initialize channel for "
                    + serviceName, 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.