[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-28 Thread Yakir Goaron (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17513363#comment-17513363
 ] 

Yakir Goaron commented on FOP-3059:
---

Hi 
Yes I have a full stack trace here it is :

ava.lang.IncompatibleClassChangeError: Class org.apache.fop.fo.FOTreeBuilder 
does not implement the requested interface org.xml.sax.ContentHandler
    at 
java.xml/com.sun.org.apache.xml.internal.serializer.ToSAXHandler.startDocumentInternal(ToSAXHandler.java:87)
    at 
java.xml/com.sun.org.apache.xml.internal.serializer.SerializerBase.startDocument(SerializerBase.java:1074)
    at jdk.translet/die.verwandlung.PDF_PADReport.transform()
    at 
java.xml/com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTranslet.transform(AbstractTranslet.java:624)
    at 
java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:776)
    at 
java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:370)

It is not including my code as I cannot export it.
Regarding [~ssteiner]  comment yes I did overcome this issue. But it means I 
cannot use the SAX application.

> 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  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-28 Thread Chris Bowditch (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17513264#comment-17513264
 ] 

Chris Bowditch commented on FOP-3059:
-

Do you have the full stack trace of the exception? Looks like the bug is with 
Saxon and not FOP. I use FOP with openJDK 11 without issues

> 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  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Simon Steiner (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17511782#comment-17511782
 ] 

Simon Steiner commented on FOP-3059:


What about using:
TransformerFactory factory = TransformerFactory.newInstance();

> 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  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Yakir Goaron (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17511744#comment-17511744
 ] 

Yakir Goaron commented on FOP-3059:
---

I might be able to copy the relevant parts here if thats ok . 
The whole code is a little problematic.

> 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  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Simon Steiner (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17511739#comment-17511739
 ] 

Simon Steiner commented on FOP-3059:


Can we see the java code your using

> 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  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Yakir Goaron (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17511735#comment-17511735
 ] 

Yakir Goaron commented on FOP-3059:
---

Create a java project with SAX and FOP .

Set the SAX as transformation as the converter and the FOP as output to PDF.

Then try to run it in JAVA 11 and up (I am using open JDK) there will be an 
error of incompatible 

> 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  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Commented] (FOP-3059) Open JDK 11 with FOP fail on transform to PDF

2022-03-24 Thread Simon Steiner (Jira)


[ 
https://issues.apache.org/jira/browse/FOP-3059?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17511730#comment-17511730
 ] 

Simon Steiner commented on FOP-3059:


How do you replicate this issue?

> 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  .



--
This message was sent by Atlassian Jira
(v8.20.1#820001)