Webervice Polygon empty

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
DKula
Posts: 9
Joined: Tue Mar 17, 2015 2:26 pm

Webervice Polygon empty

Post by DKula »

Hi,

we have a crazy problem. If we call the simple webservice calculateRoute we get a result back also in polygons but the simple test if(result.getPolygon() != null) is the meaning that this object is null. We have a bigger project where we have an own webservice included where we use also CXF in version 2.7 but it seems that there are a version conflict with the used xServer client CXF version. Is there any idea how we could resolve this issue?

Many thanks in advance for any idea
Dennis
User avatar
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Webervice Polygon empty

Post by Bernd Welter »

Hello Dennis,

I got the folloing info from our DEV department (thanks, Matthias!):
Looks like this issue is located in the third-party component we use: JAXB. In version 2.1.9 it works fine but seems to occur since version 2.1.10: An array is returned but appears to be NULL. Probably this happens with self-created CXF clients.
Potential solution: create JAX-WS clients on your own as it is described in the following blog entry: http://devblog.ptvgroup.com/2013/01/23/ ... -xservers/
Does this help?

Best regards Bernd
Post Reply