This is actually a known issue in Tomcat, and so Hudson has code to work
around this problem by overriding the default transformer setting.
// Tomcat breaks XSLT with JDK 5.0 and onward. Check if that's the
case, and if so,
// try to correct it
try {
TransformerFactory.newInstance();
// if this works we are all happy
} catch (TransformerFactoryConfigurationError x) {
// no it didn't.
Logger logger = Logger.getLogger(WebAppMain.class.getName());
logger.log(Level.WARNING, "XSLT not configured correctly. Hudson will
try to fix this. See http://issues.apache.org/bugzilla/show_bug.cgi?id=40895 for more
details",x);
System.setProperty(TransformerFactory.class.getName(),"com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
try {
TransformerFactory.newInstance();
logger.info("XSLT is set to the JAXP RI in JRE");
} catch(TransformerFactoryConfigurationError y) {
logger.log(Level.SEVERE, "Failed to correct the problem.");
}
}
Can you check your log to see if you saw one of those messages logged
here? Also see
http://issues.apache.org/bugzilla/show_bug.cgi?id=40895
Fabrizio Giudici wrote:
Hello.
I couldn't follow the discussion about a couple of SVN-related Hudson
bugs for some weeks, but I saw that they were closed thanks to the
use of SvnKit.
But with 1.77 now all my builds fail with:
Updating https://mistral.dev.java.net/svn/mistral/trunk/src
At revision 420
FATAL: Provider org.apache.xalan.transformer.TransformerImpl could
not be instantiated: java.lang.NullPointerException
javax.xml.transform.TransformerFactoryConfigurationError: Provider
org.apache.xalan.transformer.TransformerImpl could not be
instantiated: java.lang.NullPointerException
at javax.xml.transform.TransformerFactory.newInstance
(TransformerFactory.java:109)
at hudson.scm.SubversionSCM.createTransformerHandler
(SubversionSCM.java:189)
at hudson.scm.SubversionSCM.calcChangeLog(SubversionSCM.java:143)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:236)
at hudson.model.AbstractProject.checkout(AbstractProject.java:266)
at hudson.model.AbstractBuild$AbstractRunner.checkout
(AbstractBuild.java:136)
at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:
103)
at hudson.model.Run.run(Run.java:533)
at hudson.model.Build.run(Build.java:203)
at hudson.model.Executor.run(Executor.java:61)
Could it be some problem with my Tomcat configuration? Do other
experience the same? Thanks.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi@xxxxxxx
smime.p7s
Description: S/MIME Cryptographic Signature
|