We're updating the issue view to help you get more done. 

featuretype.xml bindings reference com.vividsolutions.jts classes

Description

Catalogs created with earlier version of GeoServer record attribute binding information, we need to be relaxed about accepting com.vividsolutions.jts references without failure/warning.

1 2 3 4 5 6 7 <attribute> <name>geom</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>true</nillable> <binding>com.vividsolutions.jts.geom.Point</binding> </attribute>

Producing exceptions like this:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 com.thoughtworks.xstream.converters.ConversionException: Cannot load java class com.vividsolutions.jts.MultiPolygon ---- Debugging information ---- message : Cannot load java class com.vividsolutions.jts.MultiPolygon class : java.lang.Class required-type : java.lang.Class converter-type : com.thoughtworks.xstream.converters.SingleValueConverterWrapper wrapped-converter : com.thoughtworks.xstream.converters.extended.JavaClassConverter line number : 57 class[1] : org.geoserver.catalog.impl.AttributeTypeInfoImpl converter-type[1] : com.thoughtworks.xstream.converters.reflection.ReflectionConverter class[2] : java.util.ArrayList converter-type[2] : org.geoserver.config.util.XStreamPersister$ProxyCollectionConverter class[3] : org.geoserver.catalog.impl.FeatureTypeInfoImpl converter-type[3] : org.geoserver.config.util.XStreamPersister$FeatureTypeInfoConverter version : not available ------------------------------- at com.thoughtworks.xstream.converters.extended.JavaClassConverter.fromString(JavaClassConverter.java:71) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.fromString(SingleValueConverterWrapper.java:41) at com.thoughtworks.xstream.converters.SingleValueConverterWrapper.unmarshal(SingleValueConverterWrapper.java:49) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)

This does not prevent the catalog loading, but the affected layers are skipped

Environment

Upgrade from older data directory

Status

Assignee

Unassigned

Reporter

Jody Garnett

Triage

None

Fix versions

Affects versions

2.14-RC

Components

Priority

High