On Feb 1, 2007, at 21:53, Koen Heene wrote:
<snip /> I have the feeling that the image cache doesn't properly reuse the image (maybe because of the multi threaded environment), holds a lock on the PNG file and therefore doesn't allow that file to be re-read.
Looking into the code, it seems like clearCaches() should be removed (it is used nowhere; if it is not meant to be called, then it should be suppressed).
In the normal course of events, images are released via a call to ImageCache.releaseImage(). clearCaches() works differently, leading to this strange NPE...
What Exception do you get when a PDF is rendered first? There's a patch in queue (bugzilla 41488) which may solve your problem.
HTH! Cheers, Andreas