Examples of DataSourceException


Examples of org.apache.ibatis.datasource.DataSourceException

        } else {
          driverType = Resources.classForName(driver);
        }
        DriverManager.registerDriver(new DriverProxy((Driver) driverType.newInstance()));
      } catch (Exception e) {
        throw new DataSourceException("Error setting driver on UnpooledDataSource. Cause: " + e, e);
      }
    }
  }
View Full Code Here

Examples of org.geotools.data.DataSourceException

            SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder();
            b.init(original);
            b.setName(transfomedName);
            return b.buildFeatureType();
        } catch (Exception e) {
            throw new DataSourceException("Could not build the renamed feature type.", e);
        }
    }
View Full Code Here

Examples of org.geotools.data.DataSourceException

            FeatureTypeStyle[] fts = style.getFeatureTypeStyles();
            processStylersRaster(features, fts, layer, order);
            LOGGER.fine("encoded " + featureType.getTypeName().toString());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } catch (IllegalAttributeException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.geotools.data.DataSourceException

            FeatureTypeStyle[] fts = style.getFeatureTypeStyles();
            processStylersVector(features, fts, layer);
            LOGGER.fine("encoded " + featureType.getTypeName().toString());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } catch (IllegalAttributeException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.geotools.data.DataSourceException

            FeatureTypeStyle[] fts = style.getFeatureTypeStyles();
            processStylersCoverage(features, fts, layer);
            LOGGER.fine("encoded " + featureType.getTypeName().toString());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } catch (IllegalAttributeException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.geotools.data.DataSourceException

                write("\"/>\n");
            }

            LOGGER.fine("encoded " + featureType.getTypeName());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } catch (Exception ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        }
    }
View Full Code Here

Examples of org.geotools.data.DataSourceException

        SimpleFeatureType schema = super.getSchema(typeName);

          try {
              return DataUtilities.createSubType(schema, null, myCRS);
          } catch (SchemaException e) {
              throw new DataSourceException(e.getMessage(), e);
          }
      }
View Full Code Here

Examples of org.geotools.data.DataSourceException

            FeatureCollection<SimpleFeatureType, SimpleFeature> fc = versioningSource
                    .getVersionedFeatures(newQuery);

            return applyProjectionPolicies(targetCRS, fc);
        } catch (Exception e) {
            throw new DataSourceException(e);
        }
    }
View Full Code Here

Examples of org.geotools.data.DataSourceException

                ft = null;
            }

            LOGGER.fine("encoded " + featureType.getTypeName());
        } catch (NoSuchElementException ex) {
            throw new DataSourceException(ex.getMessage(), ex);
        } finally {
      if(iter!=null)
            //make sure we always close
        fColl.close(iter);
        }
View Full Code Here

Examples of org.geotools.data.DataSourceException

            FeatureCollection<SimpleFeatureType, SimpleFeature> fc;
            fc = versioningSource.getVersionedFeatures(newQuery);

            return applyProjectionPolicies(targetCRS, fc);
        } catch (Exception e) {
            throw new DataSourceException(e);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.