The errors where nothing has changed are always tough to debug. When it happens to me, I usually find out something has changed.
Have you tried printing out the classpath that the xslt task is using? Seems to me that it is the most likely culprit. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, August 23, 2007 9:51 AM To: [email protected] Subject: Java error in heretofore stable, working task Pertinent facts: Ant - version 1.7.0 JDK - version 1.5.0.06 I have a task that has been performing as expected for about five months. Today, with no change in the version of Ant, the build.xml file, the JDK, the stylesheet, or the XSLT processor, this error occurred for the first time (and appears on all subsequent attempts to run the task): BUILD FAILED build.xml:82: java.lang.reflect.InvocationTargetException The task beginning on line 82 is: <xslt style="${env.REPORTS_HOME}/Errors/PackedField/xslt/stage-1.xslt" in="${xml.dir}/${DSTAMP}.c.xml" out="${xml.dir}/${DSTAMP}.d.xml" processor="trax"> <param name="position-codes" expression="${env.REPORTS_HOME}/hiring-report/xml/position-translation.x ml" /> </xslt> When I run the transformation from the command line, the output document is produced with no complaint. My command line invocation is: java net.sf.saxon.Transform -o ./xml/20070823.d.xml ./xml/20070823.c.xml ./xslt/stage-1.xslt position-codes=H:/reports-FY07/hiring-report/xml/position-translation.xm l I tried replacing the <xslt> task with a <java> task to see if the problem was related to the code behind the <xslt> task, but so far I haven't been able to get the java task to execute. Java task: <java classname="net.sf.saxon.Transform" fork="true"> <arg value="o ./xml/20070823.d.xml" /> <arg value="./xml/20070823.c.xml" /> <arg value="./xslt/stage-1.xslt" /> <arg value="position-codes=H:/reports-FY07/hiring-report/xml/position-transla tion.xml" /> </java> The error I'm getting on the Java task is: stage-1: [java] Bad param=value pair on command line: ./xslt/stage-1.xslt [java] Saxon 8.7.3J from Saxonica [java] Usage: java net.sf.saxon.Transform [options] source-doc style-doc {param=value}... A Google search on "ant java.lang.reflect.InvocationTargetException xslt" has not yielded anything useful. Something that suddenly stops working without an obvious explanation is very troubling. Does anyone have an idea on this? Thanks. -- Charles Knell [EMAIL PROTECTED] - email --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
