Bug#447951: fop: NullPointerException whilst transforming

brian m. carlson sandals at crustytoothpaste.ath.cx
Wed Oct 24 22:31:26 UTC 2007


Package: fop
Version: 1:0.93.dfsg.1-2
Severity: grave

[It is possible that fop works for other people, in which case this 
would merely be important.  Feel free to adjust.]

When transforming the attached file, I get the following messages:

Oct 24, 2007 10:15:23 PM org.apache.fop.apps.FopFactory getBaseURLfromConfig
INFO: hyphenation-base set to: file:///etc/fop/hyph/
Oct 24, 2007 10:15:23 PM org.apache.fop.apps.FopFactory initUserConfig
INFO: Source resolution set to: 72.0dpi (px2mm=0.35277778)
Oct 24, 2007 10:15:23 PM org.apache.fop.apps.FopFactory initUserConfig
INFO: Default page-height set to: 11in
Oct 24, 2007 10:15:23 PM org.apache.fop.apps.FopFactory initUserConfig
INFO: Default page-width set to: 8.5in
Oct 24, 2007 10:15:23 PM org.apache.fop.apps.FopFactory getBaseURLfromConfig
INFO: base set to: file:/home/bmc/checkouts/website-bmc/writings/./
Oct 24, 2007 10:15:23 PM org.apache.fop.apps.FOUserAgent configure
INFO: Target resolution set to: 72.0dpi (px2mm=0.35277778)
Oct 24, 2007 10:15:26 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
java.lang.NullPointerException
         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
         at org.apache.fop.cli.Main.startFOP(Main.java:160)
         at org.apache.fop.cli.Main.main(Main.java:191)

---------

java.lang.NullPointerException
         at org.apache.fop.render.pdf.FopPDFImage.setup(FopPDFImage.java:144)
         at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:726)
         at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1464)
         at org.apache.fop.render.pdf.PDFRenderer.drawImage(PDFRenderer.java:1397)
         at org.apache.fop.render.AbstractPathOrientedRenderer.drawImage(AbstractPathOrientedRenderer.java:678)
         at org.apache.fop.render.AbstractPathOrientedRenderer.drawBackAndBorders(AbstractPathOrientedRenderer.java:191)
         at org.apache.fop.render.AbstractPathOrientedRenderer.handleRegionTraits(AbstractPathOrientedRenderer.java:100)
         at org.apache.fop.render.pdf.PDFRenderer.handleRegionTraits(PDFRenderer.java:761)
         at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:283)
         at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:262)
         at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:236)
         at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:713)
         at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:120)
         at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:786)
         at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:159)
         at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:385)
         at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:148)
         at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
         at org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
         at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
         at org.apache.fop.cli.Main.startFOP(Main.java:160)
         at org.apache.fop.cli.Main.main(Main.java:191)

The default Java implementation is icedtea, but it occurs when using gcj 
as well.  Sun Java is not installed.  This bug is not fixed in 0.94; I 
tested.  I gzipped the testcase because it is 239k uncompressed, which 
is too large for email.  I also tried disabling the /etc/fop.conf file 
that I use, but this did not affect anything.

This problem can be trivially reproduced with
   fop -fo an-orange-in-flight.fo -pdf an-orange-in-flight.pdf

If you would like the DocBook 5.0CR4 source and the stylesheets used to 
transform it, I can tell you where to download them from.  Note that 
checking them out will require a HEAD version of git and some setup, 
which is why I just provided the XSL-FO.


-- System Information:
Debian Release: lenny/sid
   APT prefers unstable
   APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.23-rc9 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages fop depends on:
ii  gij [java2-r 4:4.2.1-6                   The GNU Java bytecode interpreter
ii  gij-4.1 [jav 4.1.2-16                    The GNU Java bytecode interpreter
ii  gij-4.2 [jav 4.2.2-3                     The GNU Java bytecode interpreter
ii  icedtea-java 7~b22-1.5~20071018-0ubuntu1 Java runtime based on OpenJDK
ii  libavalon-fr 4.2.0-4                     Common framework for Java server a
ii  libbatik-jav 1.6-3                       xml.apache.org SVG Library
ii  libbsf-java  1:2.3.0+cvs20050308a-2      Bean Scripting Framework to suppor
ii  libcommons-i 1.3.2-2                     Common useful IO related classes
ii  libcommons-l 1.1-1                       commmon wrapper interface for seve
ii  libxalan2-ja 2.7.0-5                     XSL Transformations (XSLT) process
ii  libxerces2-j 2.9.0-1                     Validating XML parser for Java wit
ii  libxmlgraphi 1.1.dfsg.2-1                reusable components used by Batik 
ii  libxp6       1:1.0.0.xsf1-1              X Printing Extension (Xprint) clie
ii  libxt6       1:1.0.5-3                   X11 toolkit intrinsics library
ii  libxtst6     2:1.0.3-1                   X11 Testing -- Resource extension 

fop recommends no packages.

-- no debconf information

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 713 440 7475 | http://crustytoothpaste.ath.cx/~bmc | My opinion only
a typesetting engine: http://crustytoothpaste.ath.cx/~bmc/code/thwack
OpenPGP: RSA v4 4096b 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187
-------------- next part --------------
A non-text attachment was scrubbed...
Name: an-orange-in-flight.fo.gz
Type: application/octet-stream
Size: 16342 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20071024/e9c139bd/attachment-0001.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20071024/e9c139bd/attachment-0001.pgp 


More information about the pkg-java-maintainers mailing list