Bug#689436: fop: NullPointerException if a docbook anchor element is inside an emphasis element
Vincent Hobeïka
vincent.hobeika at gmail.com
Tue Oct 2 15:24:35 UTC 2012
Package: fop
Version: 1:1.0.dfsg2-6
Severity: important
Dear maintainer,
I encounter a java.lang.NullPointerException with fop 1:1.0.dfsg2-6
when processing a valid docbook 4.5 file. If an anchor is placed inside an
emphasis element, the produced .fo file will make fop crash.
I attach some sample files showing the problem.
The steps to reproduce the bug are the following:
vincent at hal:~$ /usr/bin/xmllint --postvalid --noout --nonet fop.segv.xml
vincent at hal:~$ echo $?
0
vincent at hal:~$ /usr/bin/xsltproc --stringparam use.extensions 1 --stringparam fop1.extensions 1 --stringparam tablecolumns.extension 0 --stringparam callouts.extension 0 -o /home/vincent/fop.segv.fo /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl /home/vincent/fop.segv.xml
Making portrait pages on USletter paper (8.5inx11in)
vincent at hal:~$ /usr/bin/fop -c /home/vincent/fop.xconf -fo /home/vincent/fop.segv.fo -pdf /home/vincent/fop.segv.pdf
[warning] /usr/bin/fop: Unable to locate servlet-api in /usr/share/java
Image not found. URI: images/draft.png. (See position 2:9549)
Image not found. URI: images/draft.png. (See position 2:10207)
Image not found. URI: images/draft.png. (See position 2:10863)
Image not found. URI: images/draft.png. (See position 2:11516)
Image not found. URI: images/draft.png. (See position 2:12166)
Image not found. URI: images/draft.png. (See position 2:12816)
Image not found. URI: images/draft.png. (See position 2:13463)
Image not found. URI: images/draft.png. (See position 2:14115)
Image not found. URI: images/draft.png. (See position 2:14767)
Image not found. URI: images/draft.png. (See position 2:15416)
Image not found. URI: images/draft.png. (See position 2:16067)
Image not found. URI: images/draft.png. (See position 2:16718)
Image not found. URI: images/draft.png. (See position 2:17366)
Image not found. URI: images/draft.png. (See position 2:18017)
Image not found. URI: images/draft.png. (See position 2:18668)
Image not found. URI: images/draft.png. (See position 2:19316)
Image not found. URI: images/draft.png. (See position 2:19968)
Image not found. URI: images/draft.png. (See position 2:20620)
Image not found. URI: images/draft.png. (See position 2:21269)
Font "Symbol,normal,700" not found. Substituting with "Symbol,normal,400".
Font "ZapfDingbats,normal,700" not found. Substituting with "ZapfDingbats,normal,400".
Exception
java.lang.NullPointerException
vincent at hal:~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-sun
vincent at hal:~$ apt-cache policy fop
fop:
Installed: 1:1.0.dfsg2-6
Candidate: 1:1.0.dfsg2-6
Version table:
*** 1:1.0.dfsg2-6 0
50 http://debian.mirror.evertje.net/debian/ testing/main amd64 Packages
50 http://ftp.nerim.net/debian/ sid/main amd64 Packages
100 /var/lib/dpkg/status
1:1.0.dfsg2-6~bpo60+1 0
400 http://backports.debian.org/debian-backports/ squeeze-backports/main amd64 Packages
1:0.95.dfsg-11 0
500 http://debian.advalem.net/debian/ squeeze/main amd64 Packages
vincent at hal:~$ apt-cache policy xsltproc
xsltproc:
Installed: 1.1.26-6+squeeze1
Candidate: 1.1.26-6+squeeze1
Version table:
1.1.26-13 0
50 http://debian.mirror.evertje.net/debian/ testing/main amd64 Packages
50 http://ftp.nerim.net/debian/ sid/main amd64 Packages
*** 1.1.26-6+squeeze1 0
500 http://debian.advalem.net/debian/ squeeze/main amd64 Packages
100 /var/lib/dpkg/status
I am at your disposal if you require more information.
Best regards.
-- System Information:
Debian Release: 6.0.5
APT prefers stable
APT policy: (500, 'stable'), (50, 'unstable'), (50, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-0.bpo.3-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages fop depends on:
ii default-jre-headl 1:1.6-40 Standard Java or Java compatible R
ii gcj-4.4-jre-headl 4.4.5-2 Java runtime environment using GIJ
ii gcj-jre-headless 4:4.4.5-1 Java runtime environment using GIJ
ii libfop-java 1:1.0.dfsg2-6 XML formatter driven by XSL Format
ii openjdk-6-jre-hea 6b18-1.8.13-0+squeeze2 OpenJDK Java runtime, using Hotspo
ii sun-java6-jre [ja 6.26-0squeeze1 Sun Java(TM) Runtime Environment (
Versions of packages fop recommends:
ii libsaxon-java 1:6.5.5-6 The Saxon XSLT Processor
Versions of packages fop suggests:
pn fop-doc <none> (no description available)
ii libservlet2.5-java 6.0.35-1+squeeze2 Servlet 2.5 and JSP 2.1 Java API c
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fop.segv.xml
Type: application/xml
Size: 356 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20121002/b21cef30/attachment-0001.xml>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fop.segv.fo
Type: application/xml
Size: 39559 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20121002/b21cef30/attachment-0002.wsdl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fop.xconf
Type: application/xml
Size: 327 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20121002/b21cef30/attachment-0003.wsdl>
More information about the pkg-java-maintainers
mailing list