You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/12/04 19:51:38 UTC

DO NOT REPLY [Bug 46336] Synchronization fault in FontInfoFinder

https://issues.apache.org/bugzilla/show_bug.cgi?id=46336





--- Comment #1 from Andreas L. Delmelle <ad...@apache.org>  2008-12-04 10:51:38 PST ---

Are you certain it is a synchronization failure, or did you only draw that
conclusion because the app is multi-threaded and the issue does not arise in
single-threaded context?

If I interpret correctly, this points to something other than a synchronization
failure...

java.lang.NullPointerException
at org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:172)
...
170             if (fontCache.containsFont(embedUrl)) {
171                 CachedFontInfo fontInfo = fontCache.getFont(embedUrl);
172                 if (fontInfo.lastModified() == fileLastModified) {


The NullPointerException must be caused by fontInfo.lastModified(). 
It therefore appears possible for the FontCache to return true for
containsFont(...) and yet return null for getFont(...) with the same URL?

Anyway, I quickly checked the source in FOP Trunk, and getFont() doesn't even
exist as a method for FontCache anymore. Can you check if the problem persists
if you use trunk instead of 0.95?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.