Package it.eng.spago.error

Examples of it.eng.spago.error.EMFInternalError


      it = errors.iterator();
      while(it.hasNext()) {
        Object o = it.next();
        logger.debug("Error type [" + o.getClass().getName()+ "]");
        if(o instanceof EMFInternalError) {
          EMFInternalError error = (EMFInternalError)o;
          Exception e = error.getNativeException();
          if(e instanceof SpagoBIEngineServiceException) {
            SpagoBIEngineServiceException serviceError = (SpagoBIEngineServiceException)e;
            logError(serviceError);
          } else {
            logger.error("Unespected exception",e);   
View Full Code Here


      it = errors.iterator();
      while(it.hasNext()) {
        Object o = it.next();
        logger.debug("Error type [" + o.getClass().getName()+ "]");
        if(o instanceof EMFInternalError) {
          EMFInternalError error = (EMFInternalError)o;
          Exception e = error.getNativeException();
          if(e instanceof SpagoBIEngineServiceException) {
            SpagoBIEngineServiceException serviceError = (SpagoBIEngineServiceException)e;
            logError(serviceError);
           
            try {
View Full Code Here

                    Constants.NOME_MODULO,
                    TracerSingleton.WARNING,
                    "AdapterPortlet::processAction: coordinator nullo !");
                serviceException = new Exception("Coordinatore non trovato");
                emfErrorHandler.addError(
                    new EMFInternalError(
                        EMFErrorSeverity.ERROR,
                        "Coordinatore non trovato !"));
            } // if (coordinator == null)
            else {
                ((RequestContextIFace) coordinator).setRequestContext(
                    requestContext);
                responseContainer.setBusinessType(
                        coordinator.getBusinessType());
                    responseContainer.setBusinessName(
                        coordinator.getBusinessName());
                try {
                    coordinator.service(serviceRequest, serviceResponse);
                } // try
                catch (Exception ex) {
                    TracerSingleton.log(
                        Constants.NOME_MODULO,
                        TracerSingleton.CRITICAL,
                        "AdapterPortlet::processAction:",
                        ex);
                    serviceException = ex;
                    emfErrorHandler.addError(
                        new EMFInternalError(EMFErrorSeverity.ERROR, ex));
                    responseContainer.setAttribute(PORTLET_EXCEPTION, serviceException);
                } // catch (Exception ex)
                 ((RequestContextIFace) coordinator).setRequestContext(null);
            } // if (coordinator == null) else
           
View Full Code Here

              coordinator = DispatcherManager.getCoordinator(requestContext);
              if (coordinator == null) {
                  TracerSingleton.log(Constants.NOME_MODULO, TracerSingleton.WARNING,
                          "AdapterHTTP::service: coordinator nullo !");
                  serviceException = new Exception("Coordinatore non trovato");
                  emfErrorHandler.addError(new EMFInternalError(EMFErrorSeverity.ERROR,
                          "Coordinatore non trovato !"));
              } // if (coordinator == null)
              else {
                  ((RequestContextIFace) coordinator).setRequestContext(requestContext);
                  responseContainer.setBusinessType(coordinator.getBusinessType());
View Full Code Here

            result = executeQuery(requestContainer, responseContainer, dataConnection, query, type);
        } // try
        catch (EMFInternalError ex) {
            logger.error((Exception) ex);
            responseContainer.getErrorHandler().addError(
                    new EMFInternalError(EMFErrorSeverity.ERROR, ex.getNativeException()));
        } // catch (Exception ex) try
        finally {
            Utils.releaseResources(dataConnection, null, null);
            logger.debug("OUT");
        } // finally try
View Full Code Here

            result = executeQuery(dataConnection, statement.toString(), type, inputParameters);
        } // try
        catch (EMFInternalError ex) {
            logger.error((Exception) ex);
            responseContainer.getErrorHandler().addError(
                    new EMFInternalError(EMFErrorSeverity.ERROR, ex.getNativeException()));
        } // catch (Exception ex) try
        catch (Exception ex) {
            logger.error((Exception) ex);
            responseContainer.getErrorHandler().addError(
                    new EMFInternalError(EMFErrorSeverity.ERROR, ex));
        } // catch (Exception ex) try
        finally{
            logger.debug("OUT");
        }
        return result;
View Full Code Here

      Iterator it = errors.iterator();
      // if there is a CannotWriteErrorsToClient exception, CANNOT SEND ERRORS TO CLIENT
      while (it.hasNext()) {
        EMFAbstractError error = (EMFAbstractError) it.next();
        if (error instanceof EMFInternalError) {
          EMFInternalError internalError = (EMFInternalError) error;
          Exception e = internalError.getNativeException();
          if(e instanceof CannotWriteErrorsToClientException) {
            logger.error(e);
            return;
          }
        }
View Full Code Here

    } catch (EMFUserError eex) {
      EMFErrorHandler errorHandler = getErrorHandler();
      errorHandler.addError(eex);
      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(
          EMFErrorSeverity.ERROR, ex);
      EMFErrorHandler errorHandler = getErrorHandler();
      errorHandler.addError(internalError);
      return;
    }
View Full Code Here

                    Constants.NOME_MODULO,
                    TracerSingleton.WARNING,
                    "AdapterPortlet::processAction: coordinator nullo !");
                serviceException = new Exception("Coordinatore non trovato");
                emfErrorHandler.addError(
                    new EMFInternalError(
                        EMFErrorSeverity.ERROR,
                        "Coordinatore non trovato !"));
            } // if (coordinator == null)
            else {
                ((RequestContextIFace) coordinator).setRequestContext(
                    requestContext);
                responseContainer.setBusinessType(
                        coordinator.getBusinessType());
                    responseContainer.setBusinessName(
                        coordinator.getBusinessName());
                try {
                    coordinator.service(serviceRequest, serviceResponse);
                } // try
                catch (Exception ex) {
                    TracerSingleton.log(
                        Constants.NOME_MODULO,
                        TracerSingleton.CRITICAL,
                        "AdapterPortlet::processAction:",
                        ex);
                    serviceException = ex;
                    emfErrorHandler.addError(
                        new EMFInternalError(EMFErrorSeverity.ERROR, ex));
                    responseContainer.setAttribute(PORTLET_EXCEPTION, serviceException);
                } // catch (Exception ex)
                 ((RequestContextIFace) coordinator).setRequestContext(null);
            } // if (coordinator == null) else
           
View Full Code Here

      tx.commit();
  } catch (HibernateException he) {
      logger.error("HibernateException",he);
      if (tx != null)
    tx.rollback();
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "100");
  } finally {
      if (aSession != null) {
    if (aSession.isOpen())
        aSession.close();
      }
View Full Code Here

TOP

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

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.