Package com.founder.fix.fixflow.core.exception

Examples of com.founder.fix.fixflow.core.exception.FixFlowClassLoadingException


    InputStream inputStream = null;
    String filePath = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getDefaultTemplatePath();
    try {
      inputStream = ReflectUtil.getResourceAsStream(filePath);
    }catch(Exception ex){
      throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION,ex);
    }
    FileOutputStream outputStream = null;
    BufferedOutputStream buffOS = null;
    InputStream inputStreamNewFile = null;
    try{
View Full Code Here


      InputStream in = null;
      in = ReflectUtil.getResourceAsStream(filePath);
      definitions = getDefinitions("node-tempplate",in);
      return definitions;
    }catch(Exception ex){
      throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION,ex);
    }
   
  }
View Full Code Here

  public Definitions getDefinitions(String processKey,InputStream input){
    ResourceSet resourceSet = getResourceSet();
    String fixflowFilePath = ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getNoneTemplateFilePath();
    URL url = ReflectUtil.getResource(fixflowFilePath);
    if(url == null){
      throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION_FILENOTFOUND,fixflowFilePath);
    }
    String filePath = url.toString();
    Resource ddddResource = null;
    try {
      if (!filePath.startsWith("jar")) {
View Full Code Here

       }
     }
   }
 
   if(clazz == null) {
     throw new FixFlowClassLoadingException(className, throwable);
   }
   return clazz;
  }
View Full Code Here

        byte[] bytes = (byte[]) bytesObject;
        ResourceSet resourceSet = getResourceSet();
        String fixflowFilePath =  ProcessEngineManagement.getDefaultProcessEngine().getProcessEngineConfiguration().getNoneTemplateFilePath();
        URL url = ReflectUtil.getResource(fixflowFilePath);
        if(url == null){
          throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION_FILENOTFOUND,fixflowFilePath);
        }
        String filePath = url.toString();
        Resource ddddResource = null;
        try {
          if (!filePath.startsWith("jar")) {
            filePath = java.net.URLDecoder.decode(url.getFile(),"utf-8");
            ddddResource = resourceSet.createResource(URI.createFileURI(filePath));
          } else {
            ddddResource = resourceSet.createResource(URI.createURI(filePath));
          }
          ddddResource.load(new ByteArrayInputStream(bytes), null);
        } catch (Exception e) {
          throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION, e);
        }
        DefinitionsBehavior definitions = (DefinitionsBehavior) ddddResource.getContents().get(0).eContents().get(0);
        definitions.setProcessId(processId);

        for (RootElement rootElement : definitions.getRootElements()) {
View Full Code Here

        try {
          this.jobClassName=(Class<? extends AbstractJob>)Class.forName(classNameString);
        } catch (ClassNotFoundException e) {
          // TODO 自动生成的 catch 块
          e.printStackTrace();
          throw new FixFlowClassLoadingException(classNameString, e);
        }
       
        continue;
      }
     
View Full Code Here

        }
      } else {

        LOG.error("规则解释类:" + classPath + " 未找到.");

        throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOADEXCEPTION_RULECLASS, classPath);

      }
    } else {
      String ruleText = rule.getSqlValue();
      if (StringUtil.isNotEmpty(ruleText)) {
View Full Code Here

          throw new FixFlowException(ExceptionCode.RULEEXCEPTION_CLASSEXEC, e, statement, classPath, e.getMessage());
        }
      } else {
        LOG.error("规则解释类:" + classPath + " 未找到.");

        throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOADEXCEPTION_RULECLASS, classPath);
      }
    } else {

      String ruleText = rule.getSqlValue();
      if (StringUtil.isNotEmpty(ruleText)) {
View Full Code Here

          throw new FixFlowException(ExceptionCode.RULEEXCEPTION_CLASSEXEC, e, statement, classPath, e.getMessage());
        }
      } else {
        LOG.error("规则解释类:" + classPath + " 未找到.");

        throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOADEXCEPTION_RULECLASS, classPath);
      }
    } else {

      String ruleText = rule.getSqlValue();
      if (StringUtil.isNotEmpty(ruleText)) {
View Full Code Here

          throw new FixFlowException(ExceptionCode.RULEEXCEPTION_CLASSEXEC, e, statement, classPath, e.getMessage());
        }
      } else {
        LOG.error("规则解释类:" + classPath + " 未找到.");

        throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOADEXCEPTION_RULECLASS, classPath);
      }
    } else {
      String ruleText = rule.getSqlValue();
      if (StringUtil.isNotEmpty(ruleText)) {
        try {
View Full Code Here

TOP

Related Classes of com.founder.fix.fixflow.core.exception.FixFlowClassLoadingException

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.