Hi,

after updating GeoServer from 2.10.1 to 2.12-RC1 I'm experiencing the same 
behaviour when POSTing to the REST API for seeding tiles in the integrated GWC. 
Sending the xml document

<?xml version="1.0" encoding="UTF-8"?>
<seedRequest>
        <name>workspace:layer</name>
        <bounds>
                <coords>
                        <double>1445211.16687</double>
                        <double>6064302.74797</double>
                        <double>1461859.20951</double>
                        <double>6083740.16150</double>
                </coords>
        </bounds>
        <gridSetId>EPSG:3857hidpi</gridSetId>
        <zoomStart>17</zoomStart>
        <zoomStop>17</zoomStop>
        <format>image/png8</format>
        <type>reseed</type>
        <threadCount>4</threadCount>
</seedRequest>

to /geoserver/gwc/rest/seed/workspace:layer.xml results in an HTTP 500 
response. Geoserver.log is showing the following exception:

2017-10-19 15:16:05,914 ERROR [geoserver.rest] - seedRequest
com.thoughtworks.xstream.mapper.CannotResolveClassException: seedRequest
        at 
com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81)
...

A similar problem has been discussed on StackOverflow 
(https://stackoverflow.com/questions/10438124/xstream-cannotresolveclassexception),
 which leads me to the conclusion, that xstream fails to deserialize the posted 
xml document because the specified type, in my case 'seedRequest', in your case 
'user', has not been found in the current java package. As I'm not a java 
developer I'm unable to dig in further.

Regards,
Daniel Calliess


On Wed, Oct 18, 2017 at 8:56 PM, Anton Lundkvist <antonlundkvist@gm...> wrote:
>Hi,
>
>I'm experiencing problems with the REST endpoints in GeoServer 2.12.0
>
>- The docs says the url for the usergroup api should be
>/rest/usergroup/users, however I only got the request to work at
>/rest/security/usergroup/users. I guess this is a miss in the docs?
>
>- I can only perform requests using content-type and accept headers of
>application/xml. When trying application/json i get an 406 Not acceptable
>error.
>
>- According to the docs it should be possible to perform POST requests to
>the above endpoint (for creating a user) but I get a 500 error. From the
>logs: (18 Oct 20:52:19 ERROR [geoserver.rest] - user
>geoserver    | com.thoughtworks.xstream.mapper.CannotResolveClassException:
>user)
>
>Anyone else experiencing this problem?
>
>/
>
>Anton Lundkvist
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to