[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF
"Yakir Goaron (Jira)" <[email protected]> Thu, 5 Mar 2026 10:57:00 +0000 (UTC)
| Newsgroups | gmane.text.xml.fop.devel |
|---|---|
| Message-ID | <[email protected]> |
[ https://issues.apache.org/jira/browse/FOP-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18063179#comment-18063179 ]
Yakir Goaron commented on FOP-3059:
-----------------------------------
Hi ,
Yes it is still an issue. And in the new versions we found the problem worsen.
In the newer version OOTB there is a setting of : *{{XMLConstants.FEATURE_SECURE_PROCESSING}}*
which cause xslt with java classes to not work anymore.
So even though I manage to overcome the issue before by setting the environment for the default process it fails on that.
If possible in the next version to put both as a parameters / environment variables to configure the behavior .
Thanks again for the help.
> Open JDK 11 with FOP fail on transform to PDF
> ---------------------------------------------
>
> Key: FOP-3059
> URL: https://issues.apache.org/jira/browse/FOP-3059
> Project: FOP
> Issue Type: Bug
> Affects Versions: 2.4, 2.6
> Reporter: Yakir Goaron
> Priority: Critical
>
> When using FOP with SAX factory on open JDK 11 there is an error when calling the transform from java code.
> The following error shows :
> Class org.apache.fop.fo.FOTreeBuilder does not implement the requested interface org.xml.sax.ContentHandler
> Although the FOTreeBuilder implement the interface it seems that due too the java version it is incompatible.
> For now I have tried with FOP 2.4 and FOP 2.6 .
>
> Another update even without using SAX but just using Xalan and FOP 2.4 I am getting the same error of :
> Line #169; Column #172; java.lang.IncompatibleClassChangeError: Class org.apache.fop.fo.FOTreeBuilder does not implement the requested interface org.xml.sax.ContentHandler
> In the line in my xsl I invoke some java code that was customize by me with the jar file on the same location when I call the FOP
--
This message was sent by Atlassian Jira
(v8.20.10#820010)