473,769 Members | 7,375 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FOP rejects redirected file paths

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.NullP ointerException
at
org.apache.fop. cli.InputHandle r.transformTo(I nputHandler.jav a:167)
at org.apache.fop. cli.InputHandle r.renderTo(Inpu tHandler.java:
114)
at org.apache.fop. cli.Main.startF OP(Main.java:15 9)
at org.apache.fop. cli.Main.main(M ain.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

Mar 2 '07 #1
0 1208

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
3648
by: BoonHead, The Lost Philosopher | last post by:
I think the .NET framework is great! It's nice, clean and logical; in contradiction to the old Microsoft. It only saddens me that the new Microsoft still doesn't under stand there own rules when it comes to file paths. A lot of Microsoft installers for example, and also installers of other companies, do not work because they handle paths in the following manner:
3
3508
by: Vikrant | last post by:
Friends, Due an application (old) install program problem, Under AIX I could only create DB2 instance, I could also catalog it. Its complex application and I am not expert in creating full database for this application, but I have desired DB2 backup (by db2 backup db command). Can I do redirected restore (SET TABLESPACE CONTAINERS ....) only when instance is created & cataloged , I am under the impression that redirected restore is...
9
14015
by: GL | last post by:
I am running DB2 8.1.1 on AIX 5.1 Having a problem with a redirected restore. Once into the restore continue phase, I immediately get the following “SQL2059W A device full warning was encountered on device "TBS_IDX". Do you want to continue(c), terminate this device only(d), abort the utility(t) ? (c/d/t) t
1
2788
by: Jack | last post by:
Is it possible to find out what the tablespace definitions are of database you are about to build using a redirected restore? What I am wanting to do is build a script that can take only a backup file of a database and do a redirected restore into another database. This means I may not know or have access to the database where the backup originated at. It seems like once you start the redirected restore there is no way to do a list...
11
13585
by: Chris | last post by:
I have searched this group for answers and tried the responses. I am trying to Use an full online backup from our production server and apply it to our test server. The Tablespaces in the productions server are on the d drive and my test server has no d drive. The restore command i am using is: RESTORE DATABASE CENTRAL FROM "C:\DB2Backups" TAKEN AT 20050620000000 INTO CENT0620 REDIRECT;
6
3259
by: Asphalt Blazer | last post by:
Hi, I am doing a redirected restore from an offline backup file. All the paths and files have been created and I managed to do all the set tablespaces commands. But once I do the "restore db <dbnamecontinue" it gives me the following error db2 =restore db cdbdwp1 continue SQL2059W A device full warning was encountered on device "DATA32". Do you want to continue(c), terminate this device only(d), abort the utility(t) ? (c/d/t)
10
18919
by: Eric | last post by:
Hello, I have some server side includes on a Classic asp page that look something like: <!-- #include virtual="/includes/file1.asp"--> <!-- #include virtual="/includes/file2.asp" --> <!-- #include virtual="/includes/file3.asp" --> <!-- #include virtual="/includes/file4.asp" --> <!-- #include virtual="/includes/file5.asp" -->
5
4634
by: Eugene Anthony | last post by:
ds1.Tables.Rows.ItemArray.GetValue(0).ToString() contains the string path: images/5/Video1/qbert.flv if (File.Exists(ds1.Tables.Rows.ItemArray.GetValue(0).ToString())) { //code to execute } Despite the path exist along with the file name, the code never gets executed.
7
6636
by: sudhaMurugesan | last post by:
Hi all, I use asp.net with c#. I upload a file and save in a directory. I want to reopen the file so i check for file exists and then open it. But though the file exists, the file.exists(fullpath) returns false . can anyone help me ? My code is here... string paths = this.MapPath("../TerminateDoc/Excel/" + fileName.Trim()); /* paths = C:\\Inetpub\\wwwroot\\EIS\\Employee.Web\\TerminateDoc\\Excel\\fi0002264ProofDoc20080708101851.txt...
0
9589
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10049
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8873
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5309
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3565
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.