Hi,
I don't know what' happening, but here are a few suggestions that _may_
help the conversation move forward:

   - Even the newest version you've tested is long gone out of support,
   please run a test on 2.13.0 instead
   - If it fails on 2.13.0 too, please report the full stack trace, not
   just a summary of it
   - Is the issue happening as soon as you add the viewparams attribute in
   the request? What happens if you remove it, and leave the rest of the
   request as-is?

Cheers
Andrea


On Tue, Apr 3, 2018 at 5:55 AM, Like-Self <[email protected]> wrote:

> I use OpenLayers to POST a wps request to GeoServer, the data in request
> is like this:
>
> <wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0"; version="1.0.0"
> service="WPS" xsi:schemaLocation="http://www.opengis.net/wps/1.0.0
> http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd"; xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance";>
> <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1
> ">gs:PointStacker</ows:Identifier>
> <wps:DataInputs>
> <wps:Input>
> <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1";>data</ows:
> Identifier>
> <wps:Reference mimeType="text/xml" xlink:href="http://geoserver/wfs";
> xmlns:xlink="http://www.w3.org/1999/xlink"; method="POST">
> <wps:Body>
> <wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs"; service="WFS"
> version="1.1.0" wfs:viewParams="USER_ID:1;ODATE=2018-03-31">
> <wfs:Query typeName="ms:general_es" srsName="EPSG:900913">
> <ogc:Filter xmlns:ogc="http://www.opengis.net/ogc";>
> <ogc:PropertyIsLike wildCard="*" singleChar="." escapeChar="!">
> <ogc:PropertyName>SN</ogc:PropertyName>
> <ogc:Literal>%65%</ogc:Literal>
> </ogc:PropertyIsLike>
> </ogc:Filter>
> </wfs:Query>
> </wfs:GetFeature>
> </wps:Body>
> </wps:Reference>
> </wps:Input>
> <wps:Input>
> <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1
> ">outputBBOX</ows:Identifier>
> <wps:Data>
> <ows:BoundingBox xmlns:ows="http://www.opengis.net/ows/1.1";
> crs="EPSG:900913">
> <ows:LowerCorner>[my lower corner]</ows:LowerCorner>
> <ows:UpperCorner>[my upper corner]</ows:UpperCorner>
> </ows:BoundingBox>
> </wps:Data>
> </wps:Input>
> <wps:Input>
> <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1";>cellSize</ows:
> Identifier>
> <wps:Data>
> <wps:LiteralData>30</wps:LiteralData>
> </wps:Data>
> </wps:Input>
> <wps:Input>
> <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1
> ">outputWidth</ows:Identifier>
> <wps:Data>
> <wps:LiteralData>1000</wps:LiteralData>
> </wps:Data>
> </wps:Input>
> <wps:Input>
> <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1";>outputHeight</
> ows:Identifier>
> <wps:Data>
> <wps:LiteralData>660</wps:LiteralData>
> </wps:Data>
> </wps:Input>
> <wps:Input>
> <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1";>normalize</ows:
> Identifier>
> <wps:Data>
> <wps:LiteralData>1</wps:LiteralData>
> </wps:Data>
> </wps:Input>
> </wps:DataInputs>
> <wps:ResponseForm>
> <wps:RawDataOutput mimeType="application/json">
> <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1";>result</ows:
> Identifier>
> </wps:RawDataOutput>
> </wps:ResponseForm>
> </wps:Execute>
>
>
> GeoServer (both 2.5.1 and 2.8.3) throws exceptions while parsing the
> params:
>
> Caused by: java.lang.RuntimeException: Unable to set property: viewParams
> for eobject: {http://www.opengis.net/wfs}GetFeatureType
>
> at org.geotools.xml.AbstractComplexEMFBinding.setProperty(
> AbstractComplexEMFBinding.java:301)
> at org.geotools.xml.AbstractComplexEMFBinding.setProperties(
> AbstractComplexEMFBinding.java:213)
> at org.geotools.xml.AbstractComplexEMFBinding.parse(
> AbstractComplexEMFBinding.java:147)
> at org.geotools.xml.impl.ParseExecutor.visit(ParseExecutor.java:156)
> ... 108 more
>
> Caused by: java.lang.ArrayStoreException: java.lang.String
>
> at org.eclipse.emf.common.util.BasicEList.assign(BasicEList.java:124)
> at org.eclipse.emf.common.util.BasicEList.addAllUnique(
> BasicEList.java:514)
> at org.eclipse.emf.common.notify.impl.NotifyingListImpl.doAddAllUnique(
> NotifyingListImpl.java:506)
> at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addAllUnique(
> NotifyingListImpl.java:478)
> at org.eclipse.emf.common.notify.impl.NotifyingListImpl.addAllUnique(
> NotifyingListImpl.java:406)
> at org.eclipse.emf.common.util.AbstractEList.addAll(
> AbstractEList.java:374)
> at org.geotools.xml.EMFUtils.add(EMFUtils.java:169)
> at org.geotools.xml.EMFUtils.add(EMFUtils.java:144)
> at org.geotools.xml.AbstractComplexEMFBinding.setProperty(
> AbstractComplexEMFBinding.java:234)
> ... 111 more
>
> Any ideas?
>
> Thanks for your  time.
>
>
>
>
> ------------------------------------------------------------
> ------------------
> 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
>
>
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>


-- 

Regards,

Andrea Aime

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

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

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

AVVERTENZE AI SENSI DEL D.Lgs. 196/2003

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.

The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.
------------------------------------------------------------------------------
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


[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to