Hi

I recently tried upgrading from GeoTools 19 to 21 for an upcoming version of 
one of our products, but got hit from lots of NullPointerExceptions happening 
in the worker threads for StreamingRenderer. This coincided with WMS-layers 
failing to show up in the map. The cause of this is that GridCoverageRenderer 
rather rudely goes about using reflection to lobotomize some of the arguments 
passed to it, but these arguments are cached by WMSLayer and passed to 
GridCoverageRenderer once again if the map is repainted.

I've attached a small class that demonstrates the problem. The crashes happen 
between the printing of "Begin 2" and "End 2".

Unfortunately, I'm at bit at a loss as to how to solve this problem, as I do 
not understand what problems caused the introduction of the code the uses 
reflection to lobotomize instances of other classes, or why it apparently 
helped.


[Logo_kartverket_mail.png]


Tor Egil Riegels Strand
Developer
Norwegian Mapping Authority
IT
System development
Direct: +47 32 11 81 61
E-mail: tor.egil.str...@kartverket.no<mailto:tor.egil.str...@kartverket.no>

Switchboard: +47 32 11 81 21
www.kartverket.no<http://www.kartverket.no/>


Attachment: WmsTest.java
Description: WmsTest.java

_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to