Well, I did write "FIOY" in the README, so just a few tips so you can
FIOY:

- Set debug="true" on the javac tasks. That gives you line numbers in
the stacktrace and will point you right to the line where the NPE
happens.
- Or set up the project in your favourite IDE and set an exception
breakpoint for NullPointerException.

Since I don't see any line numbers in the stack trace right now, I can
only guess. FopReadme.java is not that big and the only place where an
NPE can happen is at line 34 with the Class.getResource() call. That
would indicate that "../userconfig-default.xml" can't be found in the
classpath...... So maybe you forgot to copy a few non-Java files to
${build.dest}????????

On 21.06.2011 10:03:21 polymorphisme wrote:
> 
> Hello,
> 
> thank you, Jeremias.
> 
> For running the test, I have do a file build.xml :
> 
>   ... 
> 
>   <path id="project-classpath">
>     <pathelement location="." />
>     <pathelement location="${build.dest}" />   
>     <fileset dir="${lib}">
>       <include name="*.jar"/>
>     </fileset>                 
>   </path>
> 
>   <target name="build">       
>     <copy todir="${build.src}">
>       <fileset dir="${src}"/>
>     </copy>      
>     <javac srcdir="${build.src}"
>        destdir="${build.dest}"
>        optimize="on"
>        deprecation="on">
>       <classpath refid="project-classpath" />    
>     </javac> 
>   </target>
>         
>   <target name="run" depends="build">
>     <java classname="org.maerki.benchmark.Main" fork="yes">    
>       <classpath refid="project-classpath" />    
>     </java>
>   </target>
> 
>   ...
> 
> But the target run return the erreur bellow :
> 
> [run]      
>      [java] BenchmarkRunner starting...
>      [java] java.specification.version: 1.6
>      [java] java.vm.name: Java HotSpot(TM) Client VM
>      [java] java.vm.vendor: Sun Microsystems Inc.
>      [java] java.vm.version: 14.2-b01
>      [java] java.lang.NullPointerException
>      [java]   at
> org.maerki.benchmark.examples.fop.readme.FopReadme.<init>(Unknown Source)
>      [java]   at
> org.maerki.benchmark.BenchmarkRunner.addExampleScenarios(Unknown Source)
>      [java]   at org.maerki.benchmark.Main.main(Unknown Source)
>      [java] Java Result: -1
> BUILD SUCCESSFUL
> Total time: 2 seconds
> 
> I don't know why ! Have you an idee ? Thank at all.
> 
> 
> polymorphisme wrote:
> > 
> > Hello,
> > 
> > do you know where I can find the program used for the
> >  http://people.apache.org/~jeremias/fop/benchmark-2009-02-13/ Performance
> > Analysis for Apache FOP's new Intermediate Format  of Jeremias Märki.
> > 
> > Thank.
> > 
> 
> -- 
> View this message in context: 
> http://old.nabble.com/Performance-Analysis-tp31874238p31892115.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
> 




Jeremias Maerki


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

Reply via email to