Package it.eng.spago.error

Examples of it.eng.spago.error.EMFInternalError


              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


           SQLMapper sqlMapper = (SQLMapper)mapperClass.newInstance();
           dataCon = new DataConnection(con, "2.1", sqlMapper);
       } catch(Exception e) {
           SpagoBITracer.major(SpagoBIConstants.NAME_MODULE, DelegatedHibernateConnectionListService.class.getName() , "getDataConnection",
                   "Error while getting Spago DataConnection " + e);
           throw new EMFInternalError(EMFErrorSeverity.ERROR, "cannot build DataConnection object");
       }
       return dataCon;
   }
View Full Code Here

      errorHandler.addError(eex);
      request.setAttribute(SpagoBIConstants.AUTHENTICATION_FAILED_MESSAGE, eex.getDescription());
      getServletContext().getRequestDispatcher(targetJsp).forward(request, response);
      return;
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
      request.setAttribute(SpagoBIConstants.AUTHENTICATION_FAILED_MESSAGE, ex.getMessage());
      getServletContext().getRequestDispatcher(targetJsp).forward(request, response);
      return;
    }
View Full Code Here

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

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

      }
     
    } catch (EMFUserError emfue) {
      errorHandler.addError(emfue);
    } catch (Exception ex) {
      EMFInternalError internalError = new EMFInternalError(EMFErrorSeverity.ERROR, ex);
      errorHandler.addError(internalError);
      return;
    } finally {
      logger.debug("OUT");
    }
View Full Code Here

   * @throws EMFInternalError the EMF internal error
   */
  public static HashMap getAllProfileAttributes(IEngUserProfile profile) throws EMFInternalError {
    logger.debug("IN");
    if (profile == null)
      throw new EMFInternalError(EMFErrorSeverity.ERROR,
      "getAllProfileAttributes method invoked with null input profile object");
    HashMap profileattrs = new HashMap();
    Collection profileattrsNames = profile.getUserAttributeNames();
    if (profileattrsNames == null || profileattrsNames.size() == 0)
      return profileattrs;
View Full Code Here

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

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

      }
      tx.commit();
    } catch (HibernateException he) {
      logException(he);
      if (tx != null) tx.rollback()
      throw new EMFInternalError(EMFErrorSeverity.ERROR, "100")
    } finally {
      if (aSession != null) {
        if (aSession.isOpen()) aSession.close();
      }
      logger.debug("OUT");
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.