Hello everybody,
when you send a request via http-post, the parameter ResponseForm is
optional (zero or one). But when I am doing this in Geoserver, a
NullPointer-Exception is thrown in the ExecuteResponseBuilder class.
Is this a bug in GeoServer?
I added the code
if(request.getResponseForm()==null){
Wps10Factory factory = Wps10Factpry.eINSTANCE;
ResponseFormType responseForm = factory.createResponseFormType();
request.setResponseForm(responseForm);
}
... in the class ExecuteReponseBuilder.java (package
org.geoserver.wps.executor) to avoid the exception, but I don't really know,
if this is correct?
Greetings
Max Meier
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/NullPointerException-in-Class-ExecuteResponseBuilder-tp5048286.html
Sent from the GeoServer - User mailing list archive at Nabble.com.
On Fri, Apr 19, 2013 at 2:18 PM, vermesser123 <maxmeier35@anonymised.com> wrote:
Hello everybody,
when you send a request via http-post, the parameter ResponseForm is
optional (zero or one). But when I am doing this in Geoserver, a
NullPointer-Exception is thrown in the ExecuteResponseBuilder class.
Is this a bug in GeoServer?
I added the code
if(request.getResponseForm()==null){
Wps10Factory factory = Wps10Factpry.eINSTANCE;
ResponseFormType responseForm = factory.createResponseFormType();
request.setResponseForm(responseForm);
}
... in the class ExecuteReponseBuilder.java (package
org.geoserver.wps.executor) to avoid the exception, but I don't really
know,
if this is correct?
Maybe, maybe not. Which version of GeoServer are you using?
What is the exact request you're making?
Cheers
Andrea
--
GeoServer training in Milan, 6th & 7th June 2013! Visit
http://geoserver.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
-------------------------------------------------------