Hi Ben,
thanks a lot for the analysis! Any chance you can share a stack trace?
For the life of me I cannot get it to fail on my computer, so a full stack
trace is key to solve
what seems to be a simple issue.

I would like to revert the pull request to allow Ugo quiet time during
working hours to look at it, but I'm hesitant to do so without
a firm way to reproduce and thus analyze (cannot here) or at least a stack
trace that would point us at the problem.

Cheers
Andrea


On Fri, Jan 13, 2017 at 11:56 PM, Ben Caradoc-Davies <b...@transient.nz>
wrote:

> 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/d15b9d8410ea636f
> 76b8909dd5d3a0cae4bc138b
>
> 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/GeoServerSystemT
> estSupport.java
> index e7035feb4..eb97add5a 100644
> --- a/src/main/src/test/java/org/geoserver/test/GeoServerSystemT
> estSupport.java
> +++ b/src/main/src/test/java/org/geoserver/test/GeoServerSystemT
> estSupport.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(Geo
> ServerSystemTestSupport.java:1249)
>         at org.geoserver.wms.wms_1_1_1.GetMapIntegrationTest.testAdvanc
> edProjectionHandling(GetMapIntegrationTest.java:1094)
>
>
> Kind regards,
>
> --
> Ben Caradoc-Davies <b...@transient.nz>
> Director
> Transient Software Limited <http://transient.nz/>
> New Zealand
>



-- 
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/it488V for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via di Montramito 3/A
55054  Massarosa (LU)
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.

-------------------------------------------------------
------------------------------------------------------------------------------
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