Bug#892156: xsl:number throws an exception

Ole Streicher olebole at debian.org
Tue Mar 6 08:30:55 UTC 2018


Package: libsaxonhe-java
Version: 9.8.0.8+dfsg+1-1
Severity: serious
Control: reassign 892119 libsaxonhe-java
Control: forcemerge -1 892119
Control: affects -1 src:starjava-topcat
Control: reassign 892120 libsaxonhe-java
Control: forcemerge -1 892120
Control: affects -1 src:starjava-ttools

When using xsl:number in an xslt script, saxon throws an exception:

$ cat sheet.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="2.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="/">
    <xsl:number count="sect"/>
  </xsl:template>
</xsl:stylesheet>
$ java -jar /usr/share/java/Saxon-HE.jar sheet.xsl sheet.xsl
Exception in thread "main" java.lang.ExceptionInInitializerError
	at
net.sf.saxon.expr.number.NumberFormatter.<clinit>(NumberFormatter.java:124)
	at net.sf.saxon.style.XSLNumber.prepareAttributes(XSLNumber.java:159)
	at net.sf.saxon.style.StyleElement.processAttributes(StyleElement.java:634)
	at
net.sf.saxon.style.StyleElement.processAllAttributes(StyleElement.java:579)
	at
net.sf.saxon.style.StyleElement.processAllAttributes(StyleElement.java:584)
	at
net.sf.saxon.style.XSLTemplate.processAllAttributes(XSLTemplate.java:397)
	at
net.sf.saxon.style.PrincipalStylesheetModule.processAllAttributes(PrincipalStylesheetModule.java:609)
	at
net.sf.saxon.style.PrincipalStylesheetModule.preprocess(PrincipalStylesheetModule.java:386)
	at net.sf.saxon.style.Compilation.compilePackage(Compilation.java:288)
	at
net.sf.saxon.style.StylesheetModule.loadStylesheet(StylesheetModule.java:258)
	at
net.sf.saxon.style.Compilation.compileSingletonPackage(Compilation.java:106)
	at net.sf.saxon.s9api.XsltCompiler.compile(XsltCompiler.java:739)
	at net.sf.saxon.Transform.doTransform(Transform.java:709)
	at net.sf.saxon.Transform.main(Transform.java:81)
Caused by: java.lang.RuntimeException: Unable to read categories.xml file
	at net.sf.saxon.regex.charclass.Categories.build(Categories.java:116)
	at net.sf.saxon.regex.charclass.Categories.getCategory(Categories.java:206)
	at net.sf.saxon.regex.charclass.Categories.<clinit>(Categories.java:180)
	... 14 more


This is an regression and did not happen with version 9.7. It leads to
FTBFS in the topcat and ttools packages; therefore the severity.



More information about the pkg-java-maintainers mailing list