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

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


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

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

      if (StringUtil.isEmpty(rule.getSqlValue())) {
        LOG.error("规则: " + statement + " 执行类、规则内容都为空.");
View Full Code Here


    if (((UserTaskBehavior) userTask).getAssignmentActionClassName() != null) {
      try {
        assignAction = ProcessObjectFactory.FACTORYINSTANCE.createAssignmentHandler(((UserTaskBehavior) userTask)
            .getAssignmentActionClassName());
      } catch (Exception e) {
        throw new FixFlowClassLoadingException("用户自定义任务分配类创建失败!", e);
      }
    }

    if (((UserTaskBehavior) userTask).getTaskSubject() != null
        && ((UserTaskBehavior) userTask).getTaskSubject().getExpressionValue() != null) {
View Full Code Here

      try {
        InputStream in = ReflectUtil.getResourceAsStream(classPath);
        document = XmlUtil.read(in);
      } catch (DocumentException e) {
        log.error("持久化配置文件:"+classPath+"加载出错",e);
        throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION_DCUMENT,classPath,e);
      }

      for (Object ele : document.getRootElement().elements("dataBaseTable")) {
        Element element = (Element) ele;
View Full Code Here

    resourceSet.getResourceFactoryRegistry().getExtensionToFactoryMap().put("xml", new XMIResourceFactoryImpl());
    String classPath = getDataVariableConfigPath();
    URL url = this.getClass().getClassLoader().getResource(classPath);
    if(url == null){
      log.error("未能从{}目录下加载到datavariableconfig文件",classPath);
      throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION_FILENOTFOUND, classPath);
    }
    String filePath = url.toString();
    Resource resource = null;
    try {
      if (!filePath.startsWith("jar")) {
View Full Code Here

        this.connectionManagementInstanceConfigDefault = connectionManagementInstanceConfigTemp;
        connectionManagementDefault = (ConnectionManagement) ReflectUtil.instantiate(this.connectionManagementInstanceConfigDefault
            .getClassImpl());
        if (this.connectionManagementDefault == null) {
          log.error("数据库管理器{}加载失败",connectionManagementInstanceConfigTemp.getId());
          throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION_DEFAULT,connectionManagementInstanceConfigTemp.getClassImpl());
        }
        connectionManagementMap.put(connectionManagementInstanceConfigTemp.getId(), connectionManagementDefault);
      } else {
        ConnectionManagement connectionManagementOther = (ConnectionManagement) ReflectUtil
            .instantiate(connectionManagementInstanceConfigTemp.getClassImpl());
View Full Code Here

      log.info("开始从classes/config/fixflowconfig.xml目录加载fixflowconfig.xml文件");
    }
    URL url = this.getClass().getClassLoader().getResource(classPath);
    if(url == null){
      log.error("未能从{}目录下找到fixflowconfig.xml文件",classPath);
      throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION_FILENOTFOUND ,"fixflowconfig.xml");
    }
    String filePath = url.toString();
    Resource resource = null;
    try {
      if (!filePath.startsWith("jar")) {
        filePath = java.net.URLDecoder.decode(ReflectUtil.getResource(classPath).getFile(), "utf-8");
        resource = resourceSet.createResource(URI.createFileURI(filePath));
      } else {
        resource = resourceSet.createResource(URI.createURI(filePath));
      }
      resourceSet.getPackageRegistry().put(CoreconfigPackage.eINSTANCE.getNsURI(), CoreconfigPackage.eINSTANCE);
      resource.load(null);
    } catch (Exception e) {
      log.error("fixflowconfig.xml文件加载失败", e);
      throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION,"fixflowconfig.xml", e);
    }
    fixFlowConfig = (FixFlowConfig) resource.getContents().get(0);
    String versionString = fixFlowConfig.getVersion();
    this.fixFlowVersion = new FixFlowVersion(versionString);
  }
View Full Code Here

        fixFlowResources = (FixFlowResources) ReflectUtil.instantiate(expandClass.getClassImpl());
        break;
      }
    }
    if (fixFlowResources == null) {
      throw new FixFlowClassLoadingException(ExceptionCode.CLASSLOAD_EXCEPTION_DEFAULT,"FixFlowResources");
    }
    try {
      String path = getInternationPath();
      fixFlowResources.systemInit(path);
    } catch (Exception e) {
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.