Package it.eng.spagobi.utilities.exceptions

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


      propertyValue = modelProperties.getProperty(item, property.getName());
     
      // property not set
      if(propertyValue == null) {
        if(property.isOptional() == false) {
          throw new SpagoBIRuntimeException("Impossible to initialize property [" + property.getName() + "] of entity [" + item.getUniqueName() + "]");
        }
        propertyValue = property.getDefaultValue();
      }
     
      // property not set + property default value not set
View Full Code Here


      propertyValue = modelProperties.getProperty(item, property.getName());
     
      // property not set
      if(propertyValue == null) {
        if(property.isOptional() == false) {
          throw new SpagoBIRuntimeException("Impossible to initialize property [" + property.getName() + "] of field [" + item.getUniqueName() + "]");
        }
        propertyValue = property.getDefaultValue();
      }
     
      // property not set + property default value not set
View Full Code Here

    feature = null;
   
    try {       
      feature = new SbiFeature(id, geometry, properties);
    } catch(Throwable t) {
      throw new SpagoBIRuntimeException("Impossible to create a new SbiFeature for [" + id + "], ["+ geometry+ "], [" + properties+ "]", t);
    } finally {
      logger.debug("OUT");
    }
   
    return feature;
View Full Code Here

          logger.debug("Result for query [" + geoIdPName + "=" + geoIdPValue+ "]is equal to [" + result + "]");
       
          MfGeoJSONReader jsonReader = new MfGeoJSONReader(SbiFeatureFactory.getInstance());
          featureCollection = (MfFeatureCollection) jsonReader.decode(result);
      } catch(Throwable t){
        throw new SpagoBIRuntimeException(t);
      }finally {
       
      }
   
    return featureCollection;
View Full Code Here

    String lovProv = lov.getLovProvider();
    ILovDetail lovProvDet = null;
    try {
      lovProvDet = LovDetailFactory.getLovFromXML(lovProv);
    } catch (Exception e) {
      throw new SpagoBIRuntimeException("Impossible to get lov detail associated to input BIObjectParameter", e);
    }
    return lovProvDet;
  }
View Full Code Here

      IParameterUseDAO parusedao = DAOFactory.getParameterUseDAO();
      ParameterUse biParameterExecModality = parusedao.loadByParameterIdandRole(parameter.getParID(), executionRole);
      IObjParuseDAO objParuseDAO = DAOFactory.getObjParuseDAO();
      biParameterExecDependencies.addAll(objParuseDAO.loadObjParuse(parameter.getId(), biParameterExecModality.getUseID()));
    } catch (Exception e) {
      throw new SpagoBIRuntimeException("Impossible to get dependencies", e);
    }
    return biParameterExecDependencies;
  }
View Full Code Here

        logger.debug("Feature [" + geoIdPValue + "] added to result features' collection");
      } else {
        logger.warn("Impossible to find feature [" + geoIdPValue + "]");
      }
    } catch(Throwable t) {
      throw new SpagoBIRuntimeException(t);
    } finally {
      logger.debug("OUT");
    }
   
    return featureCollection;
View Full Code Here

     
      logger.debug("File [" + filename + "] indexed succesfully on attribute [" + geoIdPName + "]");
    } catch(Throwable t) {
      indexOnAttribute = null;
      lookupTable = null;
      throw new SpagoBIRuntimeException(t);
    } finally {
      logger.debug("OUT");
    }
  }
View Full Code Here

            buffer.append(line);       
          }
          reader.close();
          result = new JSONObject(buffer.toString());
      } catch(Throwable t) {
        throw new SpagoBIRuntimeException(t);
      }
       
        return result;
  }
View Full Code Here

      newModelEntity.setProperties(properties2);

      return newModelEntity;
    } catch (Exception e) {
      logger.error("Error cloning the view"+name);
      throw new SpagoBIRuntimeException("Error cloning the view"+name, e);
    }

  }
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.