Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


FOP rejects redirected file paths

From: oaksong@-------.---
To: NULL
Date: 3/2/2007 11:23:00 AM

I'm trying to use a batch file to call FOP using redirection.
Apparently this is a no-no. Does anyone have a suggestion as to how I
can get FOP to run using files that are not located in the FOP
directory?

The file locations have such a long directory structure that the only
solution I have is redirection.
([...] indicates the rest of the directory structure)
----------------------------------------------------------------------------------------------------------------------------------
C:\[....]\FOP>call fop -xml ..\Reports
\print-200702061400-1703-02-07.xml -xsl ..\myFO.xslt -foout ..\Reports
\print-200702061400-1703-02-07.fo

Mar 2, 2007 1:12:03 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException
        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:167)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:
114)
        at org.apache.fop.cli.Main.startFOP(Main.java:159)
        at org.apache.fop.cli.Main.main(Main.java:190)
----------------------------------------------------------------------------------------------------------------------------------
I'm using a batch file to call fop with the first call creating
the .FO file and the second call creating the .PDF file.

This works fine when all the source files are located in the FOP
directory.

tia

Chris



transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent