Re: NPE in Fop Task

2006-02-15 Thread Jeremias Maerki
Always state the FOP and JDK version you're using. You can run Ant using the -d or -v parameters and then you should get stack traces. On 15.02.2006 07:16:55 Eike Stepper wrote: Hi, I get a NullPointerException when calling Fop from my Ant script: macrodef name=pdf

Re: NPE in Fop Task

2006-02-15 Thread Eike Stepper
I use JDK1.5.0_06 and this is the trace (the switches are very useful!): Apache Ant version 1.6.5 compiled on June 2 2005 Apache Ant version 1.6.5 compiled on June 2 2005 Buildfile: C:\ws\genfw\com.sympedia.docs\scripts\build.xml +Datatype genfw com.sympedia.genfw.ant.GenfwTask +Datatype

Re: NPE in Fop Task

2006-02-15 Thread Jeremias Maerki
I'm inclined to say so, yes. However, my biggest problem is that I cannot even reproduce the problem. I've tried using the attached Ant script with Ant 1.6.5 under JDK 1.5 with FOP 0.20.5 and FOP Trunk. Both targets doit and your (slightly modified) generate work fine here from the command line.

Re: NPE in Fop Task

2006-02-15 Thread Eike Stepper
If I configure my Eclipse launch config to start a separate JRE for the build, it works ;-) Unfortunately some other tasks require me to start the build in the same JRE as Eclipse runs in. It would be a hazzle to always trigger two separate builds. The question has to be changed: Has anyone

Re: NPE in Fop Task

2006-02-15 Thread Jeremias Maerki
I ran the script I attached earlier from within Eclipse (same VM and separate VM). Both cases worked. Hmm. On 15.02.2006 12:30:46 Eike Stepper wrote: If I configure my Eclipse launch config to start a separate JRE for the build, it works ;-) Unfortunately some other tasks require me to start