Package it.eng.spagobi.utilities.exceptions

Examples of it.eng.spagobi.utilities.exceptions.SpagoBIRuntimeException


      logger.debug("Relesing resources ...");
      if(resultSet != null) {
        try {
          resultSet.close();
        } catch (SQLException e) {
          throw new SpagoBIRuntimeException("Impossible to release [resultSet]", e);
        }
        logger.debug("[resultSet] released succesfully");
      }
     
      if(statement != null) {
        try {
          statement.close();
        } catch (SQLException e) {
          throw new SpagoBIRuntimeException("Impossible to release [statement]", e);
        }
        logger.debug("[statement] released succesfully");
      }
     
      if(connection != null) {
        try {
          connection.close();
        } catch (SQLException e) {
          throw new SpagoBIRuntimeException("Impossible to release [connection]", e);
        }
        logger.debug("[connection] released succesfully");
      }   
      logger.debug("All resources have been released succesfully");
    } finally {
View Full Code Here


 
  /* (non-Javadoc)
   * @see it.eng.qbe.dao.DatamartPropertiesDAO#saveModelViews()
   */
  public void saveModelViews(List<JSONObject> views) {
    throw new SpagoBIRuntimeException("saveDatamartProperties method not supported");
  }
View Full Code Here

 
  /* (non-Javadoc)
   * @see it.eng.qbe.dao.DatamartPropertiesDAO#saveDatamartProperties(java.lang.String, it.eng.qbe.bo.DatamartProperties)
   */
  public void saveModelProperties(IModelProperties modelProperties) {
    throw new SpagoBIRuntimeException("saveDatamartProperties method not supported");
  }
View Full Code Here

    if(getParameters() != null) {
      try {
        queryStr = StringUtils.replaceParameters(queryStr.trim(), "P", getParameters());
      } catch (IOException e) {
        throw new SpagoBIRuntimeException("Impossible to set parameters in query", e);
      }
     
    } 
   
    setQueryString(queryStr);
View Full Code Here

   
    Set subqueryIds;
    try {
      subqueryIds = StringUtils.getParameters(queryStr, "Q");
    } catch (IOException e) {
      throw new SpagoBIRuntimeException("Impossible to set parameters in query", e);
    }
   
    Iterator it = subqueryIds.iterator();
    while(it.hasNext()) {
      String id = (String)it.next();
View Full Code Here

      Date operandValueToBoundDate = df.parse(date);
      df = new SimpleDateFormat(dbDfString);   
      toReturn =  "'"+df.format(operandValueToBoundDate)+"'";
    } catch (ParseException e) {
      logger.error("Error parsing the date "+date);
      throw new SpagoBIRuntimeException("Error parsing the date "+date+". Check the format, it should be "+userDfString);
    }
    return toReturn;
  }
View Full Code Here

      SourceBean daoConfigSourceBean =(SourceBean) configSingleton.getFilteredSourceBeanAttribute("SPAGOBI.DAO-CONF.DAO","name", daoName);
      String daoClassName = (String)daoConfigSourceBean.getAttribute("implementation");
      logger.debug("DAO ["+daoName+"] Implementation class ["+daoClassName+"]");
      daoObject = Class.forName(daoClassName).newInstance();
    } catch (Exception e) {
      throw new SpagoBIRuntimeException("Cannot instantiate " + daoName, e);
    }
    logger.debug("DAO ["+daoName+"] instantiated successfully");
    return daoObject;
   
  }
View Full Code Here

          logger.debug("SPAGOBI_HOST not set, using the default value ");
          tmp = "http://localhost:8080";
        }
      } catch (Exception e) {
        logger.error("Error while recovering SpagoBI host url", e);
        throw new SpagoBIRuntimeException("Error while recovering SpagoBI host url", e);
      }
      try {
        new URL(tmp);
      } catch (MalformedURLException e) {
        SpagoBIRuntimeException sre = new SpagoBIRuntimeException("SpagoBI host URL is malformed!!", e);
        sre.addHint("Check configuration for spagobi_host_url environment variable");
        throw sre;
      }
      SPAGOBI_HOST = tmp;
    }
    logger.debug("OUT:" + SPAGOBI_HOST);
View Full Code Here

          }
          return false;
        }
      });
      if (dirs == null || dirs.length == 0) {
        throw new SpagoBIRuntimeException("No datamarts found!! Check configuration for datamarts repository");
      }
      for (int i = 0; i < dirs.length; i++) {
        File dir = dirs[i];
        File[] models = dir.listFiles(new FileFilter() {
          public boolean accept(File file) {
View Full Code Here

      boolean toReturn = false;
      String userName = (String) userProfile.getUserName();
      try {
        toReturn = userFunctionalityRootExists(userName);
      } catch (Exception e) {
        throw new SpagoBIRuntimeException("Cannot find if user functionality exists for user [" + userName + "]", e);
      }
      return toReturn;
    }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.utilities.exceptions.SpagoBIRuntimeException

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.