[jira] [Commented] (FOP-2967) Quarkus support of FOP

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Commented] (FOP-2967) Quarkus support of FOP

Simon Steiner (Jira)

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

Jiri Ondrusek commented on FOP-2967:

[~ssteiner] I can show you my branch with the work for camel-quarkus - [https://github.com/JiriOndrusek/camel-quarkus/tree/1642-FOP-native-second-attempt]

You can see, that my font family s there [https://github.com/JiriOndrusek/camel-quarkus/blob/1642-FOP-native-second-attempt/integration-tests/fop/src/test/java/org/apache/camel/quarkus/component/fop/it/FopTest.java#L85]


My configuration is here [https://github.com/JiriOndrusek/camel-quarkus/blob/1642-FOP-native-second-attempt/integration-tests/fop/src/test/resources/mycfg.xml]


But problem is not to make FOP work, but to make it work in *native*. Which means to find how  sun.awt.X11FontManager comes into play....

Can you help me with that?

> Quarkus support of FOP
> ----------------------
>                 Key: FOP-2967
>                 URL: https://issues.apache.org/jira/browse/FOP-2967
>             Project: FOP
>          Issue Type: Improvement
>            Reporter: Jiri Ondrusek
>            Priority: Major
> I tried to create camel-quarkus extension for fop (see [https://github.com/apache/camel-quarkus/issues/1642])
> I was not able to finish it successfully as I was facing issues with fonts:
> {quote}Error: No instances of sun.nio.ch.FileChannelImpl are allowed in the image heap as this class should be initialized at image runtime. Object has been initialized without the native-image initialization instrumentation and the stack trace can't be tracked.
>  Trace: Object was reached by
>  reading field sun.font.TrueTypeFont$TTDisposerRecord.channel of
>  constant sun.font.TrueTypeFont$TTDisposerRecord@2c7b7d19 reached by
>  reading field java.util.Hashtable$Entry.value of
>  constant java.util.Hashtable$Entry@66aeea4 reached by
>  indexing into array
>  constant java.util.Hashtable$Entry[]@7be2410f reached by
>  reading field java.util.Hashtable.table of
>  constant java.util.Hashtable@33cc3b6c reached by
>  scanning method sun.java2d.Disposer.addObjectRecord(Disposer.java:250)
> {quote}
> I spent some time with debugging of the fop and I discovered that fonts are inseparable part of some rendering. Which makes it impossible to "avoid".
> I'm not sure how this could be solved. But it would be nice to have support for quarkus.
> (I can imagine that for example only some features could be supported in quarkus)

This message was sent by Atlassian Jira