You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2007/09/28 17:25:58 UTC
DO NOT REPLY [Bug 43506] New: - NPE using a Tiff Image
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43506>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43506
Summary: NPE using a Tiff Image
Product: Fop
Version: 1.0dev
Platform: All
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: images
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: bowditch_chris@hotmail.com
I receive the following NPE when running the attahed FO and TIFF image:
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:166)
at org.apache.fop.cli.Main.main(Main.java:197)
---------
java.lang.NullPointerException
at org.apache.fop.image.TIFFImage.decodeImage(TIFFImage.java:77)
at org.apache.fop.image.XmlGraphicsCommonsImage.loadDimensions
(XmlGraphi
csCommonsImage.java:79)
at org.apache.fop.image.AbstractFopImage.load
(AbstractFopImage.java:160)
at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:75)
at org.apache.fop.fo.FObj.processNode(FObj.java:125)
at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement
(FOTreeBuil
der.java:313)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:180)
at org.apache.xalan.transformer.TransformerIdentityImpl.startElement
(Tra
nsformerIdentityImpl.java:1072)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Sour
ce)
at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement
(Unkn
own Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement
(Unkn
own Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument
(Un
known 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
(Transf
ormerIdentityImpl.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:166)
at org.apache.fop.cli.Main.main(Main.java:197)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 43506] - NPE using a Tiff Image
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43506>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43506
------- Additional Comments From bowditch_chris@hotmail.com 2007-09-28 08:29 -------
Created an attachment (id=20893)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20893&action=view)
Test FO
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 43506] - NPE using a Tiff Image
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43506>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43506
------- Additional Comments From dev@cumiskey.com 2007-10-01 04:16 -------
Created an attachment (id=20901)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20901&action=view)
patch file to fix NPE
This patch will fix the null pointer exception and provides more informative
log output when there are TIFF directory fields missing.
The resulting image in the PDF and PS output is still corrupted for this
particular image. My guess is that there is still a problem with correctly
identifying and processing BILEVEL/GRAYSCALE images in xmlgraphics-commons
org.apache.xmlgraphics.image.codec.tiff.TIFFImage. Unfortunately I don't have
time at the moment to investigate this further.
Adrian.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 43506] - NPE using a Tiff Image
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43506>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43506
------- Additional Comments From bowditch_chris@hotmail.com 2007-09-28 08:30 -------
Created an attachment (id=20894)
--> (http://issues.apache.org/bugzilla/attachment.cgi?id=20894&action=view)
TIFF that causes NPE
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
DO NOT REPLY [Bug 43506] - NPE using a Tiff Image
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=43506>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43506
------- Additional Comments From jeremias@apache.org 2007-11-07 01:21 -------
There's a little problem with the patch: The TIFF spec says that "inches" is the
default resolution unit. So it is possible to always determine the resolution
unit. I'll make sure this is done properly in the image package redesign.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.