Examples of CommandException


Examples of org.apache.oozie.command.CommandException

            try {
                jpaService.execute(new WorkflowActionUpdateJPAExecutor(wfAction));
                jpaService.execute(new WorkflowJobUpdateJPAExecutor(wfJob));
            }
            catch (JPAExecutorException je) {
                throw new CommandException(je);
            }

        }
        catch (JPAExecutorException je) {
            throw new CommandException(je);
        }


        LOG.debug("ENDED ActionEndXCommand for action " + actionId);
        return null;
View Full Code Here

Examples of org.apache.oozie.command.CommandException

                try {
                    jpaService.execute(new WorkflowJobDeleteJPAExecutor(wfId));
                    actionDeleted += jpaService.execute(new WorkflowActionsDeleteForPurgeJPAExecutor(wfId));
                }
                catch (JPAExecutorException e) {
                    throw new CommandException(e);
                }
            }
            LOG.debug("ENDED Workflow-Purge deleted jobs :" + jobList.size() + " and actions " + actionDeleted);
        }
        else {
View Full Code Here

Examples of org.apache.oozie.command.CommandException

            if (jpaService != null) {
                this.jobList = jpaService.execute(new WorkflowJobsGetForPurgeJPAExecutor(olderThan, limit));
            }
            else {
                throw new CommandException(ErrorCode.E0610);
            }
        }
        catch (XException ex) {
            throw new CommandException(ex);
        }

    }
View Full Code Here

Examples of org.apache.oozie.command.CommandException

                this.wfAction = jpaService.execute(new WorkflowActionGetJPAExecutor(actionId));
                LogUtils.setLogInfo(wfJob, logInfo);
                LogUtils.setLogInfo(wfAction, logInfo);
            }
            else {
                throw new CommandException(ErrorCode.E0610);
            }
        }
        catch (XException ex) {
            throw new CommandException(ex);
        }
    }
View Full Code Here

Examples of org.apache.oozie.command.CommandException

            }
        }

        executor = Services.get().get(ActionService.class).getExecutor(wfAction.getType());
        if (executor == null) {
            throw new CommandException(ErrorCode.E0802, wfAction.getType());
        }
    }
View Full Code Here

Examples of org.apache.oozie.command.CommandException

            wfAction.setLastCheckTime(new Date());
            try {
                jpaService.execute(new WorkflowActionUpdateJPAExecutor(wfAction));
            }
            catch (JPAExecutorException e) {
                throw new CommandException(e);
            }
            throw new PreconditionException(ErrorCode.E0818, wfAction.getId(), wfJob.getId(), wfJob.getStatus());
        }
    }
View Full Code Here

Examples of org.apache.oozie.command.CommandException

            try {
                jpaService.execute(new WorkflowActionUpdateJPAExecutor(wfAction));
                jpaService.execute(new WorkflowJobUpdateJPAExecutor(wfJob));
            }
            catch (JPAExecutorException e) {
                throw new CommandException(e);
            }
            return null;
        }
        catch (JPAExecutorException e) {
            throw new CommandException(e);
        }

        LOG.debug("ENDED ActionCheckXCommand for wf actionId=" + actionId + ", jobId=" + jobId);
        return null;
    }
View Full Code Here

Examples of org.apache.oozie.command.CommandException

            CoordinatorActionBean action = em.find(CoordinatorActionBean.class, coordActionId);
            if (action != null) {
                em.remove(action);
            }
            else {
                throw new CommandException(ErrorCode.E0605, coordActionId);
            }

            return null;
        }
        catch (Exception e) {
View Full Code Here

Examples of org.apache.stratos.cli.exception.CommandException

    // Initialize Service Stub
    try {
      initializeApplicationManagementStub(serverURL, username, password);
    } catch (AxisFault e) {
      System.out.println("Error connecting to the back-end");
      throw new CommandException(e);
    }
   
    try {
      if (validateLogin) {
        String tenantDomain = stub.getTenantDomain();
        if (logger.isDebugEnabled()) {
          logger.debug("Tenant Domain {}", tenantDomain);
        }
        return (tenantDomain != null);
      } else {
        // Just return true as we don't need to validate
        return true;
      }
    } catch (RemoteException e) {
      System.out.println("Authentication failed!");
      throw new CommandException(e);
    }
  }
View Full Code Here

Examples of org.bukkit.command.CommandException

            try {
                report.write(dest);
                sender.sendMessage(ChatColor.YELLOW + "CraftBook report written to "
                        + dest.getAbsolutePath());
            } catch (IOException e) {
                throw new CommandException("Failed to write report: " + e.getMessage());
            }

            if (args.hasFlag('p')) {
                CraftBookPlugin.inst().checkPermission(sender, "craftbook.report.pastebin");
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.