xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: NPE in Fop Task
Date Wed, 15 Feb 2006 12:21:18 GMT
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 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 experience how to start Fop in an Eclipse environment (same VM)?
> 
> Cheers
> /Eike
> 
> 
> Jeremias Maerki schrieb:
> > 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. To run it, put the attached Ant script in the
> > root directory of the FOP distribution and call "ant -f test-ant.xml".
> > Shrug.
> > 
> > On 15.02.2006 11:47:36 Eike Stepper wrote:
> >> Jeremias Maerki schrieb:
> >>> Actually, I wanted the FOP version, too. After searching through the
> >>> various FOP versions with the line number from the stack trace I found
> >>> that you're talking about 0.20.5.
> >> Sorry, you're right this is Fop 0.20.5, although the same thing happens with
0.91beta
> >>
> >>
> >>> You're using the "fop" task inside a "macrodef". I believe the NPE
> >>> happens due to the Project instance not being set on the task which the
> >>> Task.log() method needs. Maybe that's because the "fop" task is inside a
> >>> "macrodef", but I can't tell for sure. Better ask the Ant guys what's
> >>> wrong here, because I don't know. Ant is supposed to call setProject()
> >>> as far as I know.
> >> I tried it without the macrodef indirection, the same effect resulted.
> >> Do you still think, it's an Ant issue?
> >>
> >> Cheers
> >> /Eike
> >>
> >>
> >>> On 15.02.2006 10:55:15 Eike Stepper wrote:
> >>>> 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
> >>> <snip/>
> >>>> --- Nested Exception ---
> >>>> java.lang.NullPointerException
> >>>> 	at org.apache.tools.ant.Task.log(Task.java:346)
> >>>> 	at org.apache.fop.tools.anttasks.FOPTaskStarter.run(Fop.java:354)
> >>>> 	at org.apache.fop.tools.anttasks.Fop.execute(Fop.java:256)
> >>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>>> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>>> 	at java.lang.reflect.Method.invoke(Method.java:585)
> >>>> 	at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:123)
> >>> <snip/>
> > 
> > 
> > Jeremias Maerki
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org



Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message