Hi,
I am attempting to upload a shapefile via the rest configuration tool and it
is failing to configure the map's feature types. I am putting the zip file
to /geoserver/rest/workspaces/SCAMBS/datastores/UploadTest/file.shp but this
is producing the following error message:
11 May 08:47:41 ERROR [geoserver.global] - Could not load feature type
SCAMBS:Fh_apr_09_comp_region java.lang.NullPointerException
at org.geotools.referencing.CRS.decode(CRS.java:419)
at org.geotools.referencing.CRS.decode(CRS.java:348)
at
org.vfny.geoserver.global.FeatureTypeInfo.getSRS(FeatureTypeInfo.java:1008)
at
org.vfny.geoserver.global.FeatureTypeInfo.toDTO(FeatureTypeInfo.java:522)
at org.vfny.geoserver.global.Data.toDTO(Data.java:1604)
at
org.geoserver.catalog.rest.CatalogResourceBase.saveCatalog(CatalogResourceBase.java:69)
at
org.geoserver.catalog.rest.DataStoreFileResource.handlePut(DataStoreFileResource.java:285)
I had a search for this error in these forums and found a similar post which
was solved by adding the prj file to the shapefile zip, however the zip that
I am using already contains a prj file. Does anyone know what may be causing
this?
--
View this message in context: http://www.nabble.com/Problem-uploading-shapefile-via-rest-tp23478734p23478734.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
Hmmm... can you include the .prj file that is being used? Actually if you could make th entire zip available it would make figuring out the issue much easier rather than guessing.
Also, are you using cURL to do the upload?
-Justin
dk80 wrote:
Hi,
I am attempting to upload a shapefile via the rest configuration tool and it
is failing to configure the map's feature types. I am putting the zip file
to /geoserver/rest/workspaces/SCAMBS/datastores/UploadTest/file.shp but this
is producing the following error message:
11 May 08:47:41 ERROR [geoserver.global] - Could not load feature type
SCAMBS:Fh_apr_09_comp_region java.lang.NullPointerException
at org.geotools.referencing.CRS.decode(CRS.java:419)
at org.geotools.referencing.CRS.decode(CRS.java:348)
at
org.vfny.geoserver.global.FeatureTypeInfo.getSRS(FeatureTypeInfo.java:1008)
at
org.vfny.geoserver.global.FeatureTypeInfo.toDTO(FeatureTypeInfo.java:522)
at org.vfny.geoserver.global.Data.toDTO(Data.java:1604)
at
org.geoserver.catalog.rest.CatalogResourceBase.saveCatalog(CatalogResourceBase.java:69)
at
org.geoserver.catalog.rest.DataStoreFileResource.handlePut(DataStoreFileResource.java:285)
I had a search for this error in these forums and found a similar post which
was solved by adding the prj file to the shapefile zip, however the zip that
I am using already contains a prj file. Does anyone know what may be causing
this?
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.