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 2010/06/17 09:45:49 UTC

DO NOT REPLY [Bug 49452] New: NullPointerException in LineHeightPropertyMaker.java:57

https://issues.apache.org/bugzilla/show_bug.cgi?id=49452

           Summary: NullPointerException in
                    LineHeightPropertyMaker.java:57
           Product: Fop
           Version: 0.95
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: dominik.stadler@gmx.at


We use FOP to generate PDF reports. On one machine it started to fail with the
following error with no apparent reason. It seems this is an intermittent
problem as it did work before without code change. Also the same code runs fine
on other machines. 

We will restart the machine soon and see if it keeps appearing on this one or
if it really is gone again after restarting.

I am attaching the XSL-FO that is used here, but generating this on another
machine works fine so it doesn't seem to be the cause.

Caused by: javax.xml.transform.TransformerException:
java.lang.NullPointerException
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:717)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:313)
at
com.dynatrace.diagnostics.report.velocity.VelFopProcessor.merge(VelFopProcessor.java:136)
at
com.dynatrace.diagnostics.report.velocity.VelFOPReportRenderer.renderLayoutComponents(VelFOPReportRenderer.java:70)
... 40 more
Caused by: java.lang.NullPointerException
at
org.apache.fop.fo.properties.LineHeightPropertyMaker.make(LineHeightPropertyMaker.java:57)
at
org.apache.fop.fo.properties.LineHeightPropertyMaker.compute(LineHeightPropertyMaker.java:75)
at
org.apache.fop.fo.properties.PropertyMaker.findProperty(PropertyMaker.java:267)
at org.apache.fop.fo.properties.PropertyMaker.get(PropertyMaker.java:296)
at
org.apache.fop.fo.properties.CompoundPropertyMaker.get(CompoundPropertyMaker.java:145)
at org.apache.fop.fo.PropertyList.get(PropertyList.java:176)
at org.apache.fop.fo.StaticPropertyList.get(StaticPropertyList.java:72)
at org.apache.fop.fo.PropertyList.get(PropertyList.java:156)
at org.apache.fop.fo.flow.Block.bind(Block.java:120)
at org.apache.fop.fo.FObj.processNode(FObj.java:126)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:286)
at org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:163)
at
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:204)
at
com.sun.org.apache.xml.internal.serializer.ToXMLSAXHandler.characters(ToXMLSAXHandler.java:524)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:463)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transformIdentity(TransformerImpl.java:637)
at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:708)
... 43 more

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49452] NullPointerException in LineHeightPropertyMaker.java:57

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49452

--- Comment #2 from Dominik Stadler <do...@gmx.at> 2010-06-17 07:27:16 EDT ---
Created an attachment (id=25602)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25602)
Screenshot of analysis with our production analysis tool

This shows that the LineHeightPropertyMaker is called with a property of type
"SpaceProperty", which does not work as LenghtProperty.Maker.convertProperty()
does not handle SpaceProperties and always returns null in this case.

So the question is why is the combination of LineHeightPropertyMaker and
SpaceProperty possible in this case?

Or should LengthProperty.convertProperty() handle SpaceProperty as well?

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49452] NullPointerException in LineHeightPropertyMaker.java:57

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49452

Dominik Stadler <do...@gmx.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Dominik Stadler <do...@gmx.at> 2010-06-29 07:27:06 EDT ---
After a lot of investigation I found that this is related to the following
things:
- JDK 1.6.0 patch 14 64-bit
- JDK Flag -XX:+UseCompressedOops 

It seems the UseCompressedOops flag has a bug in patchlevel 14, when using
later patchlevels, e.g. 20, it does not occur any more.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49452] NullPointerException in LineHeightPropertyMaker.java:57

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49452

--- Comment #1 from Dominik Stadler <do...@gmx.at> 2010-06-17 03:53:06 EDT ---
Created an attachment (id=25601)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25601)
Smal XSL-FO file which triggers this on one machine, but likely the problem is
intermittent

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49452] NullPointerException in LineHeightPropertyMaker.java:57

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49452

--- Comment #3 from Dominik Stadler <do...@gmx.at> 2010-06-24 03:19:17 EDT ---
Created an attachment (id=25636)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25636)
Debug view of when the problem happens with very strange implications

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 49452] NullPointerException in LineHeightPropertyMaker.java:57

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=49452

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #5 from Glenn Adams <gl...@skynav.com> 2012-04-01 06:28:30 UTC ---
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.