tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <spr...@gmx.eu>
Subject RE: java.lang.ClassCastException: com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader cannot be cast to com.sun.media.imageioimpl.plugins.tiff.TIFFImageReader
Date Tue, 21 Dec 2010 15:58:13 GMT
> ImageIO pins the classloader it first uses. So if that's a
> WebappClassloader & you subsequently reload the app you'll have a
> memory leak & the potential for class cast exceptions.

As I said, nobody reloads the app (at least I cannot see this in the logs).
It just happens after a while.

> The leak prevention stuff handles this, but you've turned it off.

When I active the listener I get a NPE...

Iterator it = ImageIO.getImageReadersByFormatName("TIF");
r = (TIFFImageReader)it.next(); //<== NPE

Thank you!


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message