Package it.eng.spagobi.utilities.exceptions

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


      WorkSheetDefinition workSheetDefinition = new WorkSheetDefinition();
      // TODO set the encoding
      workSheetDefinition.load( worksheetDefinition.toString().getBytes() );
      setWorkSheetDefinition(workSheetDefinition);
    } catch(Throwable t) {
      SpagoBIRuntimeException serviceException;
      String msg = "Impossible load worksheet definition [" + worksheetDefinition + "].";
      Throwable rootException = t;
      while(rootException.getCause() != null) {
        rootException = rootException.getCause();
      }
      String str = rootException.getMessage()!=null? rootException.getMessage(): rootException.getClass().getName();
      msg += "\nThe root cause of the error is: " + str;
      serviceException = new SpagoBIRuntimeException(msg, t);
     
      throw serviceException;
    }
  }
View Full Code Here


      FormState formState = new FormState();
      // TODO set the encoding
      formState.load( formDefinition.toString().getBytes() );
      setFormState( formState );
    } catch(Throwable t) {
      SpagoBIRuntimeException serviceException;
      String msg = "Impossible load form state [" + formDefinition + "].";
      Throwable rootException = t;
      while(rootException.getCause() != null) {
        rootException = rootException.getCause();
      }
      String str = rootException.getMessage()!=null? rootException.getMessage(): rootException.getClass().getName();
      msg += "\nThe root cause of the error is: " + str;
      serviceException = new SpagoBIRuntimeException(msg, t);
     
      throw serviceException;
    }
   
  }
View Full Code Here

 
  private void loadFormValuesDefinition(JSONObject formValuesDefinition) {
    try {
      getFormState().setFormStateValues(formValuesDefinition);
    } catch(Throwable t) {
      SpagoBIRuntimeException serviceException;
      String msg = "Impossible load form state [" + formValuesDefinition + "].";
      Throwable rootException = t;
      while(rootException.getCause() != null) {
        rootException = rootException.getCause();
      }
      String str = rootException.getMessage()!=null? rootException.getMessage(): rootException.getClass().getName();
      msg += "\nThe root cause of the error is: " + str;
      serviceException = new SpagoBIRuntimeException(msg, t);
     
      throw serviceException;
    }
   
  }
View Full Code Here

      QbeEngineAnalysisState analysisState = new QbeEngineAnalysisState( dataSource );
      // TODO set the encoding
      analysisState.load( queryDefinition.toString().getBytes() );
      setAnalysisState( analysisState );
    } catch(Throwable t) {
      SpagoBIRuntimeException serviceException;
      String msg = "Impossible load query [" + queryDefinition + "].";
      Throwable rootException = t;
      while(rootException.getCause() != null) {
        rootException = rootException.getCause();
      }
      String str = rootException.getMessage()!=null? rootException.getMessage(): rootException.getClass().getName();
      msg += "\nThe root cause of the error is: " + str;
      serviceException = new SpagoBIRuntimeException(msg, t);
     
      throw serviceException;
    }
  }
View Full Code Here

  public GeoReportEngineInstance(String template, Map env) {
    super( env )
    try {
      this.guiSettings = new JSONObject(template);
    } catch (Throwable t) {
      throw new SpagoBIRuntimeException("Impossible to parse template", t);
    }
   
    includes = GeoReportEngine.getConfig().getIncludes();
  }
View Full Code Here

      if (overflow) {
        logger.warn("Query results number [" + resultNumber + "] exceeds max result limit that is [" + maxSize + "]");
    //    auditlogger.info("[" + userProfile.getUserId() + "]:: max result limit [" + maxSize + "] exceeded with SQL: " + sqlQuery);
      }
    } catch (Throwable t) {
      throw new SpagoBIRuntimeException(t);
    }
  }
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++) {
      toReturn.add(dirs[i].getName());
    }
    logger.debug("OUT");
View Full Code Here

    for(int i = 0; i < filterConditions.size(); i++) {
      String filterCondition = (String)filterConditions.get(i);
      try {
      filterCondition = StringUtils.replaceParameters(filterCondition, "P", parameters);
      } catch (Throwable t) {
        throw new SpagoBIRuntimeException("Impossible to replace parameters into filter condition [" + filterCondition +"]", t);
      }
      newFilterConditions.add(filterCondition);
    }
    return newFilterConditions;
  }
View Full Code Here

    if(modelJarFiles.size() > 1) {
      for(int i = 1; i < modelJarFiles.size(); i++) {
        modelJarFile = modelJarFiles.get(i);
        boolean b = jarFileRetriever.isAJPADatamartJarFile(modelJarFile);
        if(isJPA != b) {
          throw new SpagoBIRuntimeException("Impossible to create a composite datasource from different datasource type");
        }
      }
    }
   
    String driverName = isJPA? "jpa": "hibernate";
View Full Code Here

              "user id : " + profile.getUserId() +
              "name: " + profile.getUserName() +
              "] cannot build dataset!!");
        }
      } catch (Throwable t) {
        throw new SpagoBIRuntimeException("Cannot verify if user is able to build dataset", t);
      } finally {
        logger.debug("OUT");
      }
  }
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.