[ https://issues.apache.org/jira/browse/FOP-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17526325#comment-17526325 ]
J Frank commented on FOP-2954: ------------------------------ I would keep the cache as it may slow down the pdf generation, idea is to compare both with and without cache Suggestion: keep the check outside fop as this is one time failure. another idea check font cache is not corrupted before generating fop, for that we need to know how to replicate the issue. > Uncaught java.lang.ClassCastException in FontCache.loadFrom() > ------------------------------------------------------------- > > Key: FOP-2954 > URL: https://issues.apache.org/jira/browse/FOP-2954 > Project: FOP > Issue Type: Bug > Components: font/unqualified > Affects Versions: 2.4 > Reporter: Jörg Weske > Priority: Major > Attachments: stacktrace.txt > > > In certain cases, de-serialization of a defective fontcache file can fail > with a java.lang.ClassCastException (see attached partial stacktrace). > The exception should be caught inside FontCache.loadFrom() and the defective > cache file discarded, as with the two other exceptions that are already being > handled appropriately (ClassNotFoundException and IOException). -- This message was sent by Atlassian Jira (v8.20.7#820007)