Package it.eng.spagobi.utilities.exceptions

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


   
    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


   
    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

  public IDataSource getDataSource(IDataSourceConfiguration configuration) {
    IDataSource dataSource;
    String dataSourceName;
   
    if(maxDataSource > 0 && openedDataSource == maxDataSource) {
      throw new SpagoBIRuntimeException("Maximum  number of open data source reached");
    }
   
    dataSource = null;
    dataSourceName = namingStrategy.getDataSourceName(configuration);
    if(dataSourceCacheEnabled) {
View Full Code Here

  public IDataSource getDataSource(IDataSourceConfiguration configuration) {
    IDataSource dataSource;
    String dataSourceName;
   
    if(maxDataSource > 0 && openedDataSource == maxDataSource) {
      throw new SpagoBIRuntimeException("Maximum  number of open data source reached");
    }
   
    dataSource = null;
    dataSourceName = namingStrategy.getDataSourceName(configuration);
    if(dataSourceCacheEnabled) {
View Full Code Here

      }
      this.configuration = c;
    } else if(configuration instanceof CompositeDataSourceConfiguration) {
      CompositeDataSourceConfiguration c = (CompositeDataSourceConfiguration)configuration;
      if(c.getSubConfigurations() == null || c.getSubConfigurations().size() < 1) {
        throw new SpagoBIRuntimeException("Impossible to create HibernateDataSource. Datasource sub-configurations not defined");
      }
      for(int i = 0; i < c.getSubConfigurations().size(); i++) {       
        if( !(c.getSubConfigurations().get(i) instanceof FileDataSourceConfiguration) ) {
          throw new SpagoBIRuntimeException("Impossible to create HibernateDataSource. Unable to manage sub-configuration of type [" + c.getSubConfigurations().get(i).getClass().getName() + "]");
        }
      }
      this.configuration = configuration;
    } else {
      throw new SpagoBIRuntimeException("Impossible to create HibernateDataSource. Unable to manage configuration of type [" + configuration.getClass().getName() + "]");
    }
   
   
   
   
View Full Code Here

        }
       
        classLoaderExtended = true;
      }
    } catch (Throwable t){
      throw new SpagoBIRuntimeException("Impossible to open connection", t);
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

    SourceBean templateSB = null;
    try {
      templateSB = SourceBean.fromXMLString(getTemplateAsString());
    } catch (SourceBeanException e) {
      logger.error("Impossible to decode template's content\n" + e);
      throw new SpagoBIRuntimeException(
          "Impossible to decode template's content ["
              + template.getFileName() + "]", e);

    }
View Full Code Here

    }

    try {
      templateContent = DECODER.decodeBuffer(template.getContent());
    } catch (IOException e) {
      throw new SpagoBIRuntimeException(
          "Impossible to get content from template ["
              + template.getFileName() + "]", e);
    }

    return templateContent;
View Full Code Here

  private SingletonConfig() throws Exception {
    logger.debug("IN");
    try {
      cache = (ISingletonConfigCache)Class.forName("it.eng.spagobi.commons.SingletonConfigCache").newInstance();
    } catch (Exception e) {
      throw new SpagoBIRuntimeException("Error creating SingletonConfigCache", e);
    }
  }
View Full Code Here

      if(toconvert) {
        data = convertResult(data);
      }
      dataStore = dataReader.read(data);
    } catch (Throwable t) {
      throw new SpagoBIRuntimeException("Impossible to load store", t);
    }
    logger.debug("OUT");

    return dataStore;
  }
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.