Package it.eng.spago.error

Examples of it.eng.spago.error.EMFUserError


      logger.error("Error while modifing the distribution list with id " + ((aDistributionList == null)?"":String.valueOf(aDistributionList.getId())), he);

      if (tx != null)
        tx.rollback();

      throw new EMFUserError(EMFErrorSeverity.ERROR, 9105);

    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
        logger.debug("OUT");
View Full Code Here


      logger.error("Error while getting the objects associated with the distribution list with id " + dlId, he);

      if (tx != null)
        tx.rollback();

      throw new EMFUserError(EMFErrorSeverity.ERROR, 100);

    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
      }
View Full Code Here

      logger.error("Error while subscribing to the distribution list with id " + ((aDistributionList == null)?"":String.valueOf(aDistributionList.getId())), he);

      if (tx != null)
        tx.rollback();

      throw new EMFUserError(EMFErrorSeverity.ERROR, 9102);

    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
        logger.debug("OUT");
View Full Code Here

      logger.error("Error while unsubscribing to the distribution list with id " + ((aDistributionList == null)?"":String.valueOf(aDistributionList.getId())), he);

      if (tx != null)
        tx.rollback();

      throw new EMFUserError(EMFErrorSeverity.ERROR, 9103);

    } finally {
      if (aSession!=null){
        if (aSession.isOpen()) aSession.close();
        logger.debug("OUT");
View Full Code Here

      fos = new FileOutputStream(archive);
      fos.write(archiveContent);
      fos.flush();
    } catch (Exception ioe) {
      logger.error("Error while writing archive content into a tmp file ", ioe);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      if (fos != null) {
        try {
          fos.close();
        } catch (IOException e) {
          logger.error("Error while closing stream", e);
        }
      }
    }
    // decompress archive
    ImportUtilities.decompressArchive(pathImpTmpFold, pathArchiveFile);
    // erase archive file
    archive.delete();
    int lastDotPos = archiveName.lastIndexOf(".");
    if (lastDotPos != -1)
      archiveName = archiveName.substring(0, lastDotPos);
    pathImportTmpFolder = pathImpTmpFold;
    pathBaseFolder = pathImportTmpFolder + "/" + archiveName;
    pathDBFolder = pathBaseFolder + "/metadata";
    String propFilePath = pathBaseFolder + "/export.properties";
    FileInputStream fis = null;
    try {
      fis = new FileInputStream(propFilePath);
      props = new Properties();
      props.load(fis);
    } catch (Exception e) {
      logger.error("Error while reading properties file ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      if (fis != null)
        try {
          fis.close();
        } catch (IOException e) {
View Full Code Here

      txExpDB = sessionExpDB.beginTransaction();
      sessionCurrDB = HibernateUtil.currentSession();
      txCurrDB = sessionCurrDB.beginTransaction();
    } catch (Exception e) {
      logger.error("Error while opening session. May be the import manager was not correctly initialized.", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    }
    logger.debug("OUT");
  }
View Full Code Here

        Integer otherRoleExpId = (Integer) iterRoleAssKeys2.next();
        if (otherRoleExpId.compareTo(roleExpId) != 0) {
          Integer otherRoleAssId = (Integer) roleAssociations.get(otherRoleExpId);
          if (otherRoleAssId.compareTo(roleAssId) == 0) {
            logger.debug("OUT. The checkRoleReferences method doesn't work ");
            throw new EMFUserError(EMFErrorSeverity.ERROR, "8001", "component_impexp_messages");
          }
        }
      }
    }
    logger.debug("OUT");
View Full Code Here

    } catch (Exception e) {
      if (role != null) {
        logger.error("Error while importing exported role with name [" + role.getName() + "].", e);
      }
      logger.error("Error while inserting object ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

    } catch (Exception e) {
      if (engine != null) {
        logger.error("Error while importing exported engine with label [" + engine.getLabel() + "].", e);
      }
      logger.error("Error while inserting object ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

    } catch (Exception e) {
      if (exportedObjMetadata != null) {
        logger.error("Error while importing exported ObjectMetadata with label [" + exportedObjMetadata.getLabel() + "].", e);
      }
      logger.error("Error while inserting object ", e);
      throw new EMFUserError(EMFErrorSeverity.ERROR, "8004", "component_impexp_messages");
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

TOP

Related Classes of it.eng.spago.error.EMFUserError

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.