Hi David,
From a cursory look, it appears that you have multiple versions of
GeoTools hanging around as transitive dependencies in your project.
[INFO] | | +- (org.geotools:gt-opengis:jar:13.1:compile - omitted
for conflict with 15.1)
If tamping down on the dependencyManagement bits doesn't sort things
out, there's one other option. The package name org.opengis is used
by GeoAPI and by GeoTools. GeoTools has slightly extended the API.
If you have 'opengis' jars from GeoTools and the GeoAPI jars in the
same project, that could lead to the error below.
Cheers,
Jim
On 7/8/2017 1:49 AM, David Boyd wrote:
All:
I think I have a very strange dependency issue and could use
some help finding where to look.
If I run my application from the shaded jar built none of the
floating point
values in my data get into the database.
If I run the same application from eclipse, everything works fine.
So I assumed a geotools dependency issue and copied the exact
dependencies from the
https://github.com/locationtech/geomesa/blob/master/pom.xml
Now I get:
xception in thread "main"
java.lang.NoSuchMethodError:
org.opengis.feature.type.AttributeType.getName()Lorg/opengis/feature/type/Name;
at
org.geotools.feature.simple.SimpleSchema.<init>(SimpleSchema.java:225)
at
org.geotools.feature.simple.SimpleFeatureTypeBuilder.<init>(SimpleFeatureTypeBuilder.java:196)
at
org.geotools.feature.simple.SimpleFeatureTypeBuilder.<init>(SimpleFeatureTypeBuilder.java:185)
at
org.locationtech.geomesa.utils.geotools.SimpleFeatureTypes$.createType(SimpleFeatureTypes.scala:186)
at
org.locationtech.geomesa.utils.geotools.SimpleFeatureTypes$.createType(SimpleFeatureTypes.scala:99)
at
org.locationtech.geomesa.utils.geotools.SimpleFeatureTypes$.createType(SimpleFeatureTypes.scala:83)
at
org.locationtech.geomesa.index.geotools.GeoMesaDataStore$$anonfun$1.apply(GeoMesaDataStore.scala:174)
at
org.locationtech.geomesa.index.geotools.GeoMesaDataStore$$anonfun$1.apply(GeoMesaDataStore.scala:174)
at scala.Option.map(Option.scala:146)
at
org.locationtech.geomesa.index.geotools.GeoMesaDataStore.getSchema(GeoMesaDataStore.scala:174)
at
org.locationtech.geomesa.accumulo.data.AccumuloDataStore.getSchema(AccumuloDataStore.scala:144)
at
com.incadencecorp.coalesce.framework.persistance.accumulo.AccumuloPersistor.createLinkageFeature(AccumuloPersistor.java:698)
at
com.incadencecorp.coalesce.framework.persistance.accumulo.AccumuloPersistor.<init>(AccumuloPersistor.java:208)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at
java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at
com.incadencecorp.oe.common.utils.OECoalesceFramework.<init>(OECoalesceFramework.java:42)
at
com.incadencecorp.oe.ingest.gdelt.GDELT_EntityExtractor.<init>(GDELT_EntityExtractor.java:70)
at
com.incadencecorp.oe.ingest.gdelt.GDELT_Consumer.<init>(GDELT_Consumer.java:40)
at
com.incadencecorp.oe.ingest.gdelt.GDELT_Ingester.initializeConsumer(GDELT_Ingester.java:96)
at
com.incadencecorp.oe.ingest.gdelt.GDELT_Ingester.main(GDELT_Ingester.java:88)
I am going cross eyed with all these dependencies.
So I will accept help with either my original issue or where
I am now.
Also attached is my maven build output and maven dependency tree
output.
_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.locationtech.org/mailman/listinfo/geomesa-users
|