Hello,
yes please, open a JIRA about that along with logs and, possibly,
instructions to reproduce.

Thanks,
Alessio.


Il giorno gio 16 ago 2018 alle ore 03:25 mortac8 <ashley_c_m...@raytheon.com>
ha scritto:

> Would this qualify as a bug?  I can make a Jira issue for it if that would
> help.  Thanks!
>
>
> mortac8 wrote
> > Hello all!  I am getting an error in GeoServer 2.13.0 when I am trying to
> > update a task via the Importer REST API.
> >
> > Basically, my goal is for my Importer to always 'REPLACE' to handle the
> > case if the user imports an updated file with the same name but updated
> > data.  I was trying to just set all my Tasks to be update mode: "REPLACE"
> > but that gives me the confusing error below.  Can anyone provide any tips
> > or ideas?  Thanks so much!!
> >
> >
> > 13 Aug 18:43:10 ERROR [geoserver.rest] - com.sun.proxy.$Proxy27 cannot be
> > cast to org.geoserver.catalog.impl.LayerInfoImpl
> > java.lang.ClassCastException: com.sun.proxy.$Proxy27 cannot be cast to
> > org.geoserver.catalog.impl.LayerInfoImpl
> >         at
> >
> org.geoserver.importer.rest.ImportTaskController.updateLayer(ImportTaskController.java:442)
> >         at
> >
> org.geoserver.importer.rest.ImportTaskController.handleTaskPut(ImportTaskController.java:364)
> >         at
> >
> org.geoserver.importer.rest.ImportTaskController.lambda$taskPut$4(ImportTaskController.java:167)
> >         at
> >
> org.geoserver.importer.rest.converters.ImportWrapperMessageConverter.writeJSON(ImportWrapperMessageConverter.java:84)
> >         at
> >
> org.geoserver.importer.rest.converters.ImportWrapperMessageConverter.writeInternal(ImportWrapperMessageConverter.java:67)
> >         at
> >
> org.geoserver.importer.rest.converters.ImportWrapperMessageConverter.writeInternal(ImportWrapperMessageConverter.java:26)
> >         at
> >
> org.springframework.http.converter.AbstractHttpMessageConverter.write(AbstractHttpMessageConverter.java:227)
> >
> >
> > POST http://localhost:12121/geoserver/rest/imports
> >
> {"import":{"targetWorkspace":{"workspace":{"name":"myWorkspace"}},"data":{"type":"file","file":"D:\\testdata\\CIB.gpkg"}}}
> >
> > {
> >     "import": {
> >         "id": 24,
> >         "href": "http://localhost:12121/geoserver/rest/imports/24";,
> >         "state": "PENDING",
> >         "archive": false,
> >         "targetWorkspace": {
> >             "workspace": {
> >                 "name": " myWorkspace ",
> >                 "isolated": false
> >             }
> >         },
> >         "data": {
> >             "type": "file",
> >             "format": "GeoPackage (tiles)",
> >             "file": "CIB.gpkg"
> >         },
> >         "tasks": [
> >             {
> >                 "id": 0,
> >                 "href":
> > "http://localhost:12121/geoserver/rest/imports/24/tasks/0";,
> >                 "state": "READY"
> >             }
> >         ]
> >     }
> > }
> >
> > PUT http://localhost:12121/geoserver/rest/imports/24/tasks/0
> > {"task":{"updateMode":"REPLACE"}}
>
>
>
>
>
> --
> Sent from:
> http://osgeo-org.1560.x6.nabble.com/GeoServer-User-f3786390.html
>
>
> ------------------------------------------------------------------------------
> 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
>
> If you want to request a feature or an improvement, also see this:
> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>
>
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>


-- 

==

GeoServer Professional Services from the experts! Visit http://goo.gl/it488V
for more information.
==
Ing. Alessio Fabiani

@alfa7691
Founder/Technical Lead


GeoSolutions S.A.S.
Via di Montramito 3/A - 55054  Massarosa (LU) - Italy
phone: +39 0584 962313
fax:     +39 0584 1660272
mob:   +39 331 6233686


http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si
precisa che ogni circostanza inerente alla presente email (il suo
contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è
riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il
messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra
operazione è illecita. Le sarei comunque grato se potesse darmene notizia.


This email is intended only for the person or entity to which it is
addressed and may contain information that is privileged, confidential or
otherwise protected from disclosure. We remind that - as provided by
European Regulation 2016/679 “GDPR” - copying, dissemination or use of this
e-mail or the information herein by anyone other than the intended
recipient is prohibited. If you have received this email by mistake, please
notify us immediately by telephone or e-mail.
------------------------------------------------------------------------------
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

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

Reply via email to