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 2006/02/20 04:18:41 UTC

DO NOT REPLY [Bug 38710] New: - NPE with root/page-sequence/title

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=38710>.
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=38710

           Summary: NPE with root/page-sequence/title
           Product: Fop
           Version: 1.0dev
          Platform: All
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: nils@meiers.net


Hi 

I'm trying to run the attached xml through FOP - it works fine 
without a fo:title element under fo:page-sequence. With it
the NPE below shows up - I believe lineHeight is null when
this happens.

Regards
Nils


java.lang.NullPointerException
	at
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getNextKnuthElements(InlineLayoutManager.java:232)
	at
org.apache.fop.layoutmgr.inline.ContentLayoutManager.getNextKnuthElements(ContentLayoutManager.java:254)
	at
org.apache.fop.layoutmgr.inline.ContentLayoutManager.fillArea(ContentLayoutManager.java:118)
	at
org.apache.fop.layoutmgr.inline.ContentLayoutManager.<init>(ContentLayoutManager.java:86)
	at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:131)
	at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:320)
	at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:155)
	at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:360)
	at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:196)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1050)
	at org.apache.xml.utils.TreeWalker.endNode(TreeWalker.java:480)
	at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:197)
	at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:325)

-- 
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 38710] - NPE with root/page-sequence/title

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=38710>.
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=38710





------- Additional Comments From nils@meiers.net  2006-02-20 04:19 -------
Created an attachment (id=17742)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=17742&action=view)
the offending 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 38710] - NPE with fo:title

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=38710>.
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=38710


jeremias@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|pdf                         |page-master/layout
            Summary|NPE with root/page-         |NPE with fo:title
                   |sequence/title              |




------- Additional Comments From jeremias@apache.org  2006-02-20 10:00 -------
I ran into this myself recently. However, I saw that there was no quick fix so I
let it rest for the moment. The problem is that with the recent (last few
months) work on inline layout some context information is not properly set up to
handle the fo:title element. Since we don't have a test case in our test suite
for checking this element we didn't notice when it broke.

So, the work-around for the moment as you already found out is to comment the
fo:title. Thanks for opening a Bugzilla entry. That'll help remind us that we
need to fix this eventually.

-- 
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 38710] - NPE with fo:title

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=38710>.
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=38710


a_l.delmelle@pandora.be changed:

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




------- Additional Comments From a_l.delmelle@pandora.be  2007-02-06 12:02 -------

Fixed in FOP Trunk (for quite some time already, I believe...)

-- 
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.