Here is my "PPIO":
*
public class MyProcessPPIO extends XStreamPPIO {
public MyProcessPPIO() {
super(MyProcessPPIO.DownloadUrl.class);
}
@Override
protected XStream buildXStream() {
XStream xstream = new XStream() {
protected MapperWrapper wrapMapper(MapperWrapper next) {
return new UppercaseTagMapper(next);
};
};
xstream.alias("DownloadUrl", MyProcessPPIO.DownloadUrl.class);
return xstream;
}*
}
Here is the request:
*<Execute version="1.0.0" xmlns="http://www.opengis.net/wps/1.0.0"
xmlns:ns="http://www.opengis.net/ows/1.1">
<ns:Identifier>MyProcess</ns:Identifier>
<DataInputs>
<Input>
<ns:Identifier>ASP Request</ns:Identifier>
<Data>
<LiteralData>...</LiteralData>
</Data>
</Input>
.
.
.
.
</DataInputs>
<ResponseForm>
<ResponseDocument storeExecuteResponse="true">
<Output mimeType="text/xml" asReference="true">
<ows:Identifier xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:ows="
http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">url</ows:Identifier>
</Output>
</ResponseDocument>
</ResponseForm>
</Execute>*
here the responses:
*<wps:ExecuteResponse xml:lang="en" service="WPS"
statusLocation="localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionStatus&executionId=e4a577fd-8475-4e68-afdd-6d781e4c946c"
version="1.0.0"><wps:Process
wps:processVersion="1.0.0"><ows:Identifier>gs:FireSimulation</ows:Identifier><ows:Title>WPS
wrapping **AAA service</ows:Title><ows:Abstract>WPS wrapping AAA
service</ows:Abstract>
</wps:Process>
<wps:Status creationTime="2012-10-17T09:12:57.294Z"><wps:ProcessAccepted>Process
accepted.</wps:ProcessAccepted></wps:Status></wps:ExecuteResponse>*
*<wps:ExecuteResponse xml:lang="en" service="WPS"
statusLocation="localhost:8080/geoserver/ows?service=WPS&version=1.0.0&request=GetExecutionStatus&executionId=e4a577fd-8475-4e68-afdd-6d781e4c946c"
version="1.0.0"><wps:Process
wps:processVersion="1.0.0"><ows:Identifier>gs:FireSimulation</ows:Identifier><ows:Title>WPS
wrapping **AAA service</ows:Title><ows:Abstract>WPS wrapping **AAA
service</ows:Abstract>
</wps:Process>
<wps:Status creationTime="2012-10-17T09:12:57.294Z"><wps:ProcessAccepted>Process
failed during execution
java.lang.NullPointerException
null</wps:ProcessAccepted></wps:Status></wps:ExecuteResponse>*
and the log:
* Mapped URL path [/animate/*] onto handler 'dispatcher'
2012-10-17 11:17:07,727 WARN [geotools.xml] - cvc-complex-type.4: Attribute
'service' must appear on element 'Execute'.
2012-10-17 11:17:07,918 WARN [geoserver.wps] - cvc-complex-type.4:
Attribute 'service' must appear on element 'Execute'.
2012-10-17 11:17:20,028 INFO [geowebcache.GeoWebCacheDispatcher] - Loading
GWC Service extensions...
2012-10-17 11:17:20,413 INFO [geowebcache.GeoWebCacheDispatcher] - Done
loading GWC Service extensions. Found : [tms, gmaps, mgmaps, ve, kml, wms,
wmts]
2012-10-17 11:17:20,416 INFO [geowebcache.GeoWebCacheDispatcher] - Read 425
from blank PNG file (expected 425).
2012-10-17 11:18:35,476 ERROR [wps.executor] - Request failed during
execution
org.geotools.process.ProcessException: java.lang.NullPointerException
at
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:385)
at
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:215)
at
org.geoserver.wps.executor.DefaultProcessManager$ProcessCallable.call(DefaultProcessManager.java:189)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NullPointerException
at java.lang.StringBuffer.<init>(StringBuffer.java:103)
at org.geoserver.ows.util.ResponseUtils.baseURL(ResponseUtils.java:434)
at
org.geoserver.wps.WPSStorageCleaner.getURL(WPSStorageCleaner.java:135)
at
org.geoserver.wps.gs.FireSimulationProcess.execute(FireSimulationProcess.java:208)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.geotools.process.factory.AnnotationDrivenProcessFactory$InvokeMethodProcess.execute(AnnotationDrivenProcessFactory.java:369)
... 7 more*
thanks
2012/10/16 Andrea Aime <andrea.a...@geo-solutions.it>
> On Tue, Oct 16, 2012 at 9:35 AM, Pietro Arena <pietro.ar...@gmail.com>wrote:
>
>> Hi,
>>
>> I defined an asynchronous wps that creates a zip file containing a
>> GeoTiff and returns an *XML *with some information the users need, for
>> example the URL from where it is possible to download the file. I created a
>> specific type(*DownloadURL*) and a specific* PPIO class* for my wps to
>> achieve my goal. If I test my wps using *WPS Request Builder* everything
>> works correctly, as I expect, but if I test it using *DemoRequestsPage *and
>> then performing a *GetExecutionStatus *I get a NullPointer as output.
>>
>
> Kind of impossible to tell since we're lacking the sources of your
> process, PPIO, the sequence of requests and the full responses at each
> steps (and the logs to see what happened)
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it 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
>
> -------------------------------------------------------
>
>
--
Pietro Arena
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users