[ https://issues.apache.org/jira/browse/FOP-2954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17525955#comment-17525955 ]
Simon Steiner commented on FOP-2954: ------------------------------------ createRestrictedIO will avoid the font cache: FopFactoryBuilder confBuilder = new FopConfParser(new ByteArrayInputStream(fopxconf.getBytes()), EnvironmentalProfileFactory.createRestrictedIO(new File(".").toURI(), cloudResourceResolver)).getFopFactoryBuilder(); FopFactory fopFactory = confBuilder.build(); > 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)