Re: Publishing area tree XML fails

Mark Giffin <[email protected]>
Newsgroups gmane.text.xml.fop.user
Message-ID <[email protected]>
Thanks Dave, I'll keep this info in mind. In the meantime I have tried 
the FOP "intermediate format" (IF) instead of the area tree, and I find 
I can export that, change it, and then read it in and publish it with no 
problems.

Mark

On 6/27/2023 1:29 AM, Dave Roxburgh wrote:
> Hi Mark,
>
> It might help narrow down on the issue if you tried an alternative JDK 
> - I'd suggest Temurin jdk-11
>
> It might also be a good time to update to the latest FOP version.
>
> I've tried what you're attempting to do on Temurin 11 / FOP main 
> branch and I had no issues.
>
> Regards,
> Dave
> ------------------------------------------------------------------------
> *From:* Mark Giffin <[email protected]>
> *Sent:* 26 June 2023 07:57
> *To:* [email protected] <[email protected]>
> *Subject:* Publishing area tree XML fails
> I'm using FOP 2.4 on ubuntu. I create an area tree XML file on the
> command line with this:
>
> fop -s topic.fo -at area_tree.xml
>
> This works fine. I plan to make some changes and read it in, then
> publish to PDF.
>
> I am trying to read it in and I don't know what to expect, or how to
> publish out to PDF. The docs do not go into this, that I can find. I get
> failure when I run the command below intended to produce a PDF called
> aaa.pdf:
>
> fop -atin area_tree.xml aaa.pdf
> [warning] /usr/bin/fop: JVM flavor 'sun' not understood
> [ERROR] FOP - Exception <org.apache.fop.apps.FOPException:
> java.util.EmptyStackException
> java.util.EmptyStackException>org.apache.fop.apps.FOPException:
> java.util.EmptyStackException
> java.util.EmptyStackException
>          at
> org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:296)
>          at
> org.apache.fop.cli.AreaTreeInputHandler.renderTo(AreaTreeInputHandler.java:75)
>          at org.apache.fop.cli.Main.startFOP(Main.java:183)
>          at org.apache.fop.cli.Main.main(Main.java:214)
> Caused by: java.util.EmptyStackException
>          at java.base/java.util.Stack.peek(Stack.java:102)
>          at
> org.apache.fop.area.AreaTreeParser$Handler.handleExternallyGeneratedObject(AreaTreeParser.java:1089)
> etc.
>
> Any ideas?
>
> Thanks,
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.