[Geoserver-devel] [jira] Created: (GEOS-4038) Oracle spatial layer in EPSG:3031 (Antarctic Stereographic) projection failing to publish

Oracle spatial layer in EPSG:3031 (Antarctic Stereographic) projection failing to publish
------------------------------------------------------------------------------------------

                 Key: GEOS-4038
                 URL: http://jira.codehaus.org/browse/GEOS-4038
             Project: GeoServer
          Issue Type: Bug
          Components: Oracle
    Affects Versions: 2.0.2
         Environment: Windows XP
Geoserver 2.0.2
Tomcat 6.0
Oracle v10.2.0.4
            Reporter: Alex Tate
            Assignee: Andrea Aime
         Attachments: coast_3031.zip

We are running into an issue when publishing an Oracle (v10.2.0.4) Spatial layer using Geoserver v2.0.2 resulting in an error message of the form...

Error persisting FeatureTypeInfoImpl[FOSSIL_MAP_TEST_2] to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\workspaces\cite\geology\FOSSIL_MAP_TEST_2\featuretype.xml

A temporary featuretype.xml.tmp gets created with the following text

<featureType>
  <id>FeatureTypeInfoImpl-6b9aace9:128d9d5d3bb:-6bb8</id>
  <name>FOSSIL_MAP_TEST_2</name>
  <nativeName>FOSSIL_MAP_TEST</nativeName>
  <namespace>
    <id>NamespaceInfoImpl-4e0b98bf:12475d46fdd:-7ff4</id>
  </namespace>
  <title>FOSSIL_MAP_TEST_2</title>
  <nativeCRS class="projected"

The Oracle table has a geometry column in EPSG:3031 projection (Antarctic Stereographic). This same table publishes and displays fine in Geoserver 1.7.2. Other spatial tables in EPSG:4326 (WGS-84) do not give the same error using v2.0.2 and the same table reprojected in various other projections works fine.

The abbreviated geoserver log shows...

2010-05-27 15:00:21,906 INFO [geoserver.web] - Error saving layer
org.geoserver.catalog.CatalogException: Error persisting FeatureTypeInfoImpl[FOSSIL_MAP_TEST_2] to C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\geoserver\data\workspaces\cite\geology\FOSSIL_MAP_TEST_2\featuretype.xml
        ......
        at java.lang.Thread.run(Unknown Source)
Caused by: org.geotools.referencing.wkt.UnformattableObjectException: This "AxisDirection" object is too complex for WKT syntax.
        .......

I have also tried a shapefile (attached) in EPSG:3031 projection. While it gets through the publication process, I cannot do a map preview as it results in an error of the form...

<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM "http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd&quot;&gt; <ServiceExceptionReport version="1.1.1" > <ServiceException>
      java.lang.NullPointerException
null
</ServiceException></ServiceExceptionReport>

The same shapefile works fine in Geoserver 1.7.2. I am unsure whether the shapefile and Oracle errors are both caused by the same issue (i.e. the projection)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira