Uploaded image for project: 'GeoServer'
  1. GEOS-8929

featuretype.xml bindings reference com.vividsolutions.jts classes

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 2.14-RC
    • Fix Version/s: 2.14.0, 2.15
    • Component/s: Configuration
    • Labels:
      None
    • Environment:

      Upgrade from older data directory

      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.

      <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:

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jody.garnett Jody Garnett
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: