Package it.eng.spagobi.engines.geo

Examples of it.eng.spagobi.engines.geo.GeoEngineException


    if(conf instanceof String) {
      try {
        confSB = SourceBean.fromXMLString( (String)conf );
      } catch (SourceBeanException e) {
        logger.error("Impossible to parse configuration block for DataSetProvider", e);
        throw new GeoEngineException("Impossible to parse configuration block for DataSetProvider", e);
      }
    } else {
      confSB = (SourceBean)conf;
    }
   
View Full Code Here


   
    if(dataSource.getJndi() != null) {
      logger.info("Datasource is of type jndi connection. Referenced jndi resource is " + dataSource.getJndi());
    } else if (dataSource.getDriver() == null || dataSource.getUrlConnection() == null){
      logger.error("Missing driver name or url in datasource configuration settings");
      throw new GeoEngineException("Missing driver name or url in datasource configuration settings");
    }
   
    return dataSource;
  }
View Full Code Here

       
        dataStoreMeta.addFiedMeta(fieldMeta);
       
        logger.debug("Link column [" + fieldName + ": " + link + "] added succesfully");
      } catch(Throwable t) {
        throw new GeoEngineException("Impossible to add link column [" + fieldName + ": " + link + "] to datastore", t);
      }
     
      record = null;
      try {
        logger.debug("Valorizing link column [" + fieldName + ": " + link + "] for each record in the dataset ...");
        Iterator it = dataStore.iterator();
        while(it.hasNext()) {
          record = (IRecord)it.next();
          if(link != null) {
            logger.debug("Added link value [" + link.toXString(record, env) + "]");
            field = new Field( link.toXString(record, env) )
          } else {
            field = new Field( Link.DEFAULT_BASE_URL );   
            logger.debug("Added link value [" + Link.DEFAULT_BASE_URL + "]");
          }
             
          record.appendField( field );
        }
        logger.debug("Link column [" + fieldName + ": " + link + "] has been succesfully valorized for each record in the dataset ");
      } catch(Throwable t) {
        throw new GeoEngineException("Impossible to valorize link column for record [" + record + "]", t);
      }
    } catch(Throwable t) {
      GeoEngineException e;
      if(t instanceof GeoEngineException) {
        e = (GeoEngineException)t;
      } else {
        e = new GeoEngineException("An unpredicted error occurred while adding link fields to datastore", t);
      }
     
      throw e;
    }
  }
View Full Code Here

    if(conf instanceof String) {
      try {
        confSB = SourceBean.fromXMLString( (String)conf );
      } catch (SourceBeanException e) {
        logger.error("Impossible to parse configuration block for DataSetProvider", e);
        throw new GeoEngineException("Impossible to parse configuration block for DataSetProvider", e);
      }
    } else {
      confSB = (SourceBean)conf;
    }
   
View Full Code Here

            Assert.assertNotNull(aggFunc, "Attribute [" + GeoEngineConstants.COLUMN_AFUNC_REF_ATTRIBUTE + "] of tag [" + GeoEngineConstants.COLUMN_TAG + "] cannot be null");
            metaData.setColumnProperty(columnName, "func", aggFunc);       
          }
          logger.debug("Column  [" + i + "] parsed succesfully");
        } catch (Throwable t) {
          throw new GeoEngineException("An error occurred while parsing column [" + columnSB + "]", t);
        }
      }
   
    } catch (Throwable t) {
      GeoEngineException e = new GeoEngineException("An error occurred while parsing metadata [" + metadataSB + "]", t);
      e.addHint("Download document template and fix the problem that have coused the syntax/semantic error");
      throw e;
    } finally {
      logger.debug("OUT");
    }
   
View Full Code Here

    if(conf instanceof String) {
      try {
        confSB = SourceBean.fromXMLString( (String)conf );
      } catch (SourceBeanException e) {
        logger.error("Impossible to parse configuration block for DataSetProvider", e);
        throw new GeoEngineException("Impossible to parse configuration block for DataSetProvider", e);
      }
    } else {
      confSB = (SourceBean)conf;
    }
   
View Full Code Here

   
    if(dataSource.getJndi() != null) {
      logger.info("Datasource is of type jndi connection. Referenced jndi resource is " + dataSource.getJndi());
    } else if (dataSource.getDriver() == null || dataSource.getUrlConnection() == null){
      logger.error("Missing driver name or url in datasource configuration settings");
      throw new GeoEngineException("Missing driver name or url in datasource configuration settings");
    }
   
    return dataSource;
  }
View Full Code Here

TOP

Related Classes of it.eng.spagobi.engines.geo.GeoEngineException

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.