When this (draw a polygon besides IDL on the map) occurs, the points for the Polygon on the East Side (I. e. USA) are captured with coordinates <-180 (I. e. I got things such as-252. 0201... for one of the Long coordinates ). this in turn throws an exception in contactserviceimpl because it expects points to be between-180 to 180.
As far as the issue itself, I have not found a solution for it. As
Matter of fact, it appears that it may be a known bug that some people
Are working towards a fix for. Here is an old Forum Thread about what
Appears to be the same issue: http://lists.osgeo.org/pipermail/openlayers-dev/2010-August/006360.html (sort by thread to see all 20 + messages regarding this issue). However, I don't see any resolution on the matter.
I also played with the wrapdateline field (http://dev.openlayers.org/releases/OpenLayers-2.12/doc/devdocs/files/OpenLayers/Layer-js.html#OpenLayers.Layer.wrapDateLine)
And it appears to do exactly what it says. When I set it to false on
The Google layer, it simply stops allowing the user to Pan continuously
In the longitudinal (horizontal) ction. It does not do anything in
Terms of providing polygon points that conform to the-180 to 180
Interval.