Hi,
I have used json request with success
curl -x our.proxy.fi:8888 -v -k -u user:password -XPOST -H "Content-type: application/json" -d "{'seedRequest':{'name':'GWC_aerials','bounds':{'coords':{ 'double':['3200000.0','6800000.0','3300000.0','6900000.0']}},'srs':{'number':2393},'zoomStart':8,'zoomStop':11,'format':'image\/png','type':'seed','threadCount':4}}}" "http://localhost:8080/geoserver/gwc/rest/seed/GWC_aerials.json"
-Jukka Rahkonen-
stephanos_ch wrote:
Hello,
When using the following curl seeding task everything works ok:
curl.exe -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d
"<seedRequest><name>Layer</name><gridSetId>EPSG:900913</gridSetId><zoo
mStart>5</zoomStart><zoomStop>6</zoomStop><format>image/png8</forma
t><type>reseed</type><threadCount>3</threadCount></seedRequest>"
"http://localhost:8080/geoserver/gwc/rest/seed/Layer.xml"
However when I include the boundaries:
curl.exe -v -u admin:geoserver -XPOST -H "Content-type: text/xml" -d
"<seedRequest><name>Layer</name><bounds><coords><double>Xmin</doubl
e><double>Ymin</double><double>Xmax</double><double>Ymax</double></c
oords></bounds><gridSetId>EPSG:900913</gridSetId><zoomStart>5</zoomStar
t><zoomStop>6</zoomStop><format>image/png8</format><type>reseed</typ
e><threadCount>3</threadCount></seedRequest>"
"http://localhost:8080/geoserver/gwc/rest/seed/Layer.xml"
the following error occurs:
Cannot construct org.geowebcache.grid.BoundingBox as it does not have a no-
args constructor
Please advice how to solve this.
Thanks,
Stephanos
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Error-with-
gwc-when-using-curl-seedrequest-with-bounds-tp5129526.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the
definitive new guide to graph databases and their applications. Written by three
acclaimed leaders in the field, this first edition is now available. Download your
free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Hello,
Unfortunately that didn't work either. I am using Geoserver 2.1.3
The full error given is
...
Accept: */*
Content-type: text/xml
Content-Length: 372
* upload completely sent off: 372 out of 372 bytes
< HTTP/1.1 500 Internal Server Error
< Transfer-Encoding: chunked
* Server Jetty(6.1.8) is not blacklisted
< Server: Jetty(6.1.8)
<
Cannot construct org.geowebcache.grid.BoundingBox as it does not have a
no-args constructor : Cannot construct org.geowebcache.grid.BoundingBox as
it does not have a no-args constructor
---- Debugging information ----
message : Cannot construct org.geowebcache.grid.BoundingBox as
it does not have a no-args constructor
cause-exception :
com.thoughtworks.xstream.converters.reflection.ObjectAccessException
cause-message : Cannot construct org.geowebcache.grid.BoundingBox as
it does not have a no-args constructor
class : org.geowebcache.seed.SeedRequest
required-type : org.geowebcache.grid.BoundingBox
-------------------------------* Connection #0 to host localhost left intact
Hope someone could help me.
Thanks in advance.
Stephanos
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Re-Error-with-gwc-when-using-curl-seedrequest-with-bounds-tp5130377p5133754.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
On Tue, Apr 8, 2014 at 9:39 AM, stephanos_ch <stephanos_ch@anonymised.com> wrote:
Hello,
Unfortunately that didn't work either. I am using Geoserver 2.1.3
The full error given is
...
> Accept: */*
> Content-type: text/xml
> Content-Length: 372
>
* upload completely sent off: 372 out of 372 bytes
< HTTP/1.1 500 Internal Server Error
< Transfer-Encoding: chunked
* Server Jetty(6.1.8) is not blacklisted
< Server: Jetty(6.1.8)
<
Cannot construct org.geowebcache.grid.BoundingBox as it does not have a
no-args constructor : Cannot construct org.geowebcache.grid.BoundingBox as
it does not have a no-args constructor
Ah, I've already seen this one, it happens when an old XStream library is
told
to deserialize a XML when running on Java 7.
You have two choices:
* upgrade GeoServer to a more recent version, a recent 2.4.x series
* downgrade java to version 6
Cheers
Andrea
--
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
for more information.
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------