Andrea,

I can now reproduce this failure locally 100% of the time (10 out of 10 
trials, running all gs-wms tests in Maven). The OWS 
ServiceExceptionReport (see below for details) contains:

org.geotools.util.SoftValueHashMap$Reference cannot be cast to 
org.opengis.referencing.operation.CoordinateOperation

The failure can be fixed locally (10 out of 10 trials, running all 
gs-wms tests in Maven) by reverting 
d15b9d8410ea636f76b8909dd5d3a0cae4bc138b on GeoTools master and 
recompiling gt-metadata:

[GEOT-5602] Better concurrent SoftValueHashMap
https://github.com/geotools/geotools/commit/d15b9d8410ea636f76b8909dd5d3a0cae4bc138b

See:
https://github.com/geotools/geotools/pull/1424
https://osgeo-org.atlassian.net/browse/GEOT-5602

We started seeing these failures soon after this PR was merged.


I obtained the OWS ServiceExceptionReport with this local change:

diff --git 
a/src/main/src/test/java/org/geoserver/test/GeoServerSystemTestSupport.java 
b/src/main/src/test/java/org/geoserver/test/GeoServerSystemTestSupport.java
index e7035feb4..eb97add5a 100644
--- 
a/src/main/src/test/java/org/geoserver/test/GeoServerSystemTestSupport.java
+++ 
b/src/main/src/test/java/org/geoserver/test/GeoServerSystemTestSupport.java
@@ -1246,7 +1246,7 @@ public class GeoServerSystemTestSupport extends 
GeoServerBaseTestSupport<SystemT
       */
      protected BufferedImage getAsImage(String path, String mime) 
throws Exception {
          MockHttpServletResponse resp = getAsServletResponse(path);
-        assertEquals(mime, resp.getContentType());
+        assertEquals(resp.getContentAsString(), mime, 
resp.getContentType());
          InputStream is = getBinaryInputStream(resp);
          return ImageIO.read(is);
      }


I then saw this:

Running org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest
Tests run: 51, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.718 
sec <<< FAILURE!
testAdvancedProjectionHandling(org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest)
 
  Time elapsed: 15 sec  <<< FAILURE!
org.junit.ComparisonFailure: <?xml version="1.0" encoding="UTF-8" 
standalone="no"?><!DOCTYPE ServiceExceptionReport SYSTEM 
"http://localhost:8080/geoserver/schemas/wms/1.1.1/WMS_exception_1_1_1.dtd";> 
<ServiceExceptionReport version="1.1.1" >   <ServiceException 
code="internalError">
       Rendering process failed
org.geotools.util.SoftValueHashMap$Reference cannot be cast to 
org.opengis.referencing.operation.CoordinateOperation
</ServiceException></ServiceExceptionReport> expected:<[image/png]> but 
was:<[application/vnd.ogc.se_xml]>
        at org.junit.Assert.assertEquals(Assert.java:115)
        at 
org.geoserver.test.GeoServerSystemTestSupport.getAsImage(GeoServerSystemTestSupport.java:1249)
        at 
org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest.testAdvancedProjectionHandling(GetMapIntegrationTest.java:1094)


Kind regards,

-- 
Ben Caradoc-Davies <b...@transient.nz>
Director
Transient Software Limited <http://transient.nz/>
New Zealand

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to