[fop] [ERROR] Anttask

Having trouble installing <oXygen/>? Got a bug to report? Post it all here.
ludmila
Posts: 2

[fop] [ERROR] Anttask

Sun Apr 24, 2016 11:55 pm

In case of assembly of PDF of the document in oxygen XML author 18 with use of DITA OT1.8.M2 there is an error:
[fop] [ERROR] Anttask - Error rendering fo file: D:\Docs\test\temp\oxygen_dita_temp\topic.fo <java.lang.IllegalArgumentException: URI scheme is not "file">java.lang.IllegalArgumentException: URI scheme is not "file"

Prompt, please, how I can solve it?
adrian
Posts: 2337

Re: [fop] [ERROR] Anttask

Mon Apr 25, 2016 5:08 pm

Hi,

It looks like a file path is used for the input FO where a URI with the file scheme is expected by Apache FOP. Problem seems to be between the scripts from the very old DITA-OT version you are using and an unknown version of FOP (can't say without seeing what you have configured).

If I may ask, is there a reason why you're still using a milestone (beta) release of DITA-OT 1.8 (1.8.M2)?
Why are you not using at least DITA-OT 1.8.5?

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
zaqrack
Posts: 4

Re: [fop] [ERROR] Anttask

Fri Apr 29, 2016 2:55 pm

Hello,

we receive a similar error calling an external DITA-OT 2.2.1 from oXygen Author 18.
The same plugin and configuration works with DITA-OT 2.2.1 and oXygen 17.1.

Description: [fop] [ERROR] Anttask - Error rendering fo file: C:\DITA\sources\temp\pdf\oxygen_dita_temp\topic.fo <java.lang.IllegalArgumentException: URI is not hierarchical>java.lang.IllegalArgumentException: URI is not hierarchical

We also tried the same plugin with an external DITA-OT 2.2.4 instance called from oXygen 18 but received the same error.


[fop] [ERROR] Anttask - Error rendering fo file: C:\DITA\HPE_sources\simulap\temp\pdf\oxygen_dita_temp\topic.fo <java.lang.IllegalArgumentException: URI is not hierarchical>java.lang.IllegalArgumentException: URI is not hierarchical
[fop] at org.apache.fop.tools.anttasks.FOPTaskStarter.renderInputHandler(Unknown Source)
[fop] at org.apache.fop.tools.anttasks.FOPTaskStarter.render(Unknown Source)
[fop] at org.apache.fop.tools.anttasks.FOPTaskStarter.run(Unknown Source)
[fop] at org.apache.fop.tools.anttasks.Fop.execute(Unknown Source)
[fop] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[fop] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[fop] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[fop] at java.lang.reflect.Method.invoke(Unknown Source)
[fop] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fop] at org.apache.tools.ant.Task.perform(Task.java:348)
[fop] at org.apache.tools.ant.Target.execute(Target.java:435)
[fop] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[fop] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[fop] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[fop] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[fop] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
[fop] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[fop] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[fop] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[fop] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[fop] at java.lang.reflect.Method.invoke(Unknown Source)
[fop] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fop] at org.apache.tools.ant.Task.perform(Task.java:348)
[fop] at org.apache.tools.ant.Target.execute(Target.java:435)
[fop] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[fop] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[fop] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[fop] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[fop] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
[fop] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[fop] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[fop] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[fop] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[fop] at java.lang.reflect.Method.invoke(Unknown Source)
[fop] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fop] at org.apache.tools.ant.Task.perform(Task.java:348)
[fop] at org.apache.tools.ant.Target.execute(Target.java:435)
[fop] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[fop] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[fop] at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
[fop] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[fop] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)
[fop] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
[fop] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
[fop] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
[fop] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[fop] at java.lang.reflect.Method.invoke(Unknown Source)
[fop] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
[fop] at org.apache.tools.ant.Task.perform(Task.java:348)
[fop] at org.apache.tools.ant.Target.execute(Target.java:435)
[fop] at org.apache.tools.ant.Target.performTasks(Target.java:456)
[fop] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
[fop] at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
[fop] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
[fop] at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
[fop] at org.apache.tools.ant.Main.runBuild(Main.java:851)
[fop] at org.apache.tools.ant.Main.startAnt(Main.java:235)
[fop] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
[fop] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
adrian
Posts: 2337

Re: [fop] [ERROR] Anttask

Fri Apr 29, 2016 6:05 pm

HI,

There may be something in your scenario configuration that interferes with this. Have you tried with the builtin scenario?

I tested in Oxygen v18.0 with the following steps, but could not reproduce the problem you are describing:
1. I configured an external (untouched) DITA-OT 2.2.1 in Options > Preferences, DITA, Custom
2. I opened the samples/dita/flowers/flowers.ditamap
3. I applied the builtin transformation "DITA Map PDF" and the PDF was generated successfully.
Can you please confirm if this works for you?

If it doesn't, please send us the full DITA-OT transformation output log to support@oxygenxml.com.
If this works but your scenario doesn't, please export your scenario and send it to us.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
zaqrack
Posts: 4

Re: [fop] [ERROR] Anttask

Mon Jan 09, 2017 3:11 pm

Hello Adrian,

We reverted using 17.1 for a while, hence my late reply.
I confirm the vanilla external DITA-OT 2.2.1 works. The problem only appears if we use a custom transformation scenario / custom plugin. Will investigate our DITA-OT plugin to find the root cause and get back to you if we do not succeed.

Thanks,
Peter
zaqrack
Posts: 4

Re: [fop] [ERROR] Anttask

Fri Jan 13, 2017 2:14 pm

The exception is thrown after transform.fo2pdf.fop when FOP is building the font cache. Our customizations include custom fonts.

Disabling the FOP font cache the build runs fine. Seems to be a FOP bug with FOP 2.x:

https://issues.apache.org/jira/browse/FOP-2611

oXygen 17.1 still uses FOP 1.x so I assume that's why the issue is not present there. The exception is thrown with oXygen 18.0 and 18.1 likewise.

With the default PDF transformation there are no custom fonts so likely this is why without customizations the build runs fine.
adrian
Posts: 2337

Re: [fop] [ERROR] Anttask

Fri Jan 13, 2017 5:06 pm

Hi,

Thank you for reporting your findings.
So, to clarify, if you disable the FOP font cache in the FOP config file (<use-cache>false</use-cache>) the problem is avoided.

We will update FOP as soon as a new release becomes available.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
zaqrack
Posts: 4

Re: [fop] [ERROR] Anttask

Tue Jan 17, 2017 6:10 pm

Yes, I confirm adding

<use-cache>false</use-cache>

solves the build issue. It does introduce some font rendering issues, but that is unrelated to oXygen and must be originating in our FOP configuration.

Return to “Common Problems”

Who is online

Users browsing this forum: No registered users and 4 guests