Hello everyone!

I'm trying (and to this point it's working) to load a directory of 
shapefiles into Geoserver 2.1.0 with cURL.
I need to repeat the process several times, so here is what I've done:
With the web administration interface, I created a data_dir containing 
only the styles that I need, but otherwise empty.
Each time I run the process
* I copy this data_dir
* I copy the directory of shapefiles intodata_dir/data
* I start Geoserver 2.1.0 with the right path for the data_dir I just copied
* I add the namespace, the datastore, each featuretype, and then I apply 
the right style to each featuretype.

Up to this point, it's working exactly as I want. The issue is when I 
then copy the data_dir to use it. GetMap requests work fine, but 
GetFeature requests give me this error:
INFO   | jvm 1    | 2011/08/25 10:52:41 | 2011-08-25 10:52:41,665 INFO 
21307627@qtp-10040639-4 org.geoserver.wfs -
INFO   | jvm 1    | 2011/08/25 10:52:41 | Request: getFeature
INFO   | jvm 1    | 2011/08/25 10:52:41 |     handle = null
INFO   | jvm 1    | 2011/08/25 10:52:41 |     service = WFS
INFO   | jvm 1    | 2011/08/25 10:52:41 |     version = 1.1.0
INFO   | jvm 1    | 2011/08/25 10:52:41 |     baseUrl = 
http://localhost:8080/geoserver/
INFO   | jvm 1    | 2011/08/25 10:52:41 |     providedVersion = null
INFO   | jvm 1    | 2011/08/25 10:52:41 |     extendedProperties = {}
INFO   | jvm 1    | 2011/08/25 10:52:41 |     query = 
[net.opengis.wfs.impl.QueryTypeImpl@1fcc4f8 (group: null, propertyName: 
null, function: null, filter: [ IDU = 264 ], sortBy: null, 
featureVersion: null, handle: null, srsName: EPSG:4326, typeName: 
[{http://www.Operis.fr/Operis}COMMUNE])]
INFO   | jvm 1    | 2011/08/25 10:52:41 |     maxFeatures = 1000
INFO   | jvm 1    | 2011/08/25 10:52:41 |     outputFormat = text/xml; 
subtype=gml/2.1.2
INFO   | jvm 1    | 2011/08/25 10:52:41 |     resultType = results
INFO   | jvm 1    | 2011/08/25 10:52:41 |     traverseXlinkDepth = null
INFO   | jvm 1    | 2011/08/25 10:52:41 |     traverseXlinkExpiry = null
INFO   | jvm 1    | 2011/08/25 10:52:41 |     formatOptions = {}
INFO   | jvm 1    | 2011/08/25 10:52:41 |     metadata = null
INFO   | jvm 1    | 2011/08/25 10:52:41 | 2011-08-25 10:52:41,665 ERROR 
21307627@qtp-10040639-4 org.geoserver.ows -
INFO   | jvm 1    | 2011/08/25 10:52:41 | java.lang.NullPointerException
INFO   | jvm 1    | 2011/08/25 10:52:41 |     at 
org.geoserver.wfs.xml.GML2OutputFormat.prepare(GML2OutputFormat.java:149)

I've searched into the source code, and it seems to be related to the 
namespace.
I've found that if I log with the web administration interface and save 
(whithout changing anything) the workspace, I don't get this error 
anymore. Unfortunately for what I'm trying to do, I can't use the web 
administration interface.

Could you tell me what saving the workspace does, so I might try to do 
the same an other way, or how to make it work with just cURL?

Thanks
Laure-Hélène

------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to