You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Jim Quest <qu...@gmail.com> on 2012/07/15 12:26:51 UTC
writing-mode="lr" causing null-pointer-exception in fop1.1rc1
hello,
i have seen that this fo causes a null-pointer-exception at fop1.1rc1.
the same fo is perfectly fine if writing-mode="lr" or not specified
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Arial"
writing-mode="rl">
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm"
master-name="a4">
<fo:region-body margin-top="11mm" margin-bottom="12mm"
margin-right="10mm" margin-left="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="a4">
<fo:flow flow-name="xsl-region-body">
<fo:block id="1">وكلما</fo:block>
<fo:block text-align-last="justify">More text <fo:leader
leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
not exactly sure which bit of the following is causing it.
<fo:block text-align-last="justify">More text <fo:leader
leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/> </fo:block>
have tried several variations of it, and some of it woks and others don't.
Re: writing-mode="lr" causing null-pointer-exception in fop1.1rc1
Posted by Glenn Adams <gl...@skynav.com>.
Thanks for the reminder. The correct way to handle this is to file a
bugzilla report as described at [1].
[1] http://xmlgraphics.apache.org/fop/bugs.html#issues_new
On Mon, Nov 12, 2012 at 6:30 AM, James Quest <qu...@gmail.com> wrote:
> in july, i reported a null-pointer-exception on fop1.1r1
>
> i have just tried it again now with the stable 1.1 release, and see the
> identical issue still appearing.
>
> this is the fo
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Arial"
> writing-mode="rl">
> <fo:layout-master-set>
> <fo:simple-page-master page-height="297mm" page-width="210mm"
> master-name="a4">
> <fo:region-body margin-top="11mm" margin-bottom="12mm"
> margin-right="10mm" margin-left="10mm"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="a4">
> <fo:flow flow-name="xsl-region-body">
> <fo:block id="1">وكلما</fo:block>
> <fo:block text-align-last="justify">More text <fo:leader
> leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
>
> </fo:root>
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/writing-mode-lr-causing-null-pointer-exception-in-fop1-1rc1-tp36345p37334.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
Re: writing-mode="lr" causing null-pointer-exception in fop1.1rc1
Posted by James Quest <qu...@gmail.com>.
in july, i reported a null-pointer-exception on fop1.1r1
i have just tried it again now with the stable 1.1 release, and see the
identical issue still appearing.
this is the fo
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Arial"
writing-mode="rl">
<fo:layout-master-set>
<fo:simple-page-master page-height="297mm" page-width="210mm"
master-name="a4">
<fo:region-body margin-top="11mm" margin-bottom="12mm"
margin-right="10mm" margin-left="10mm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="a4">
<fo:flow flow-name="xsl-region-body">
<fo:block id="1">وكلما</fo:block>
<fo:block text-align-last="justify">More text <fo:leader
leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/writing-mode-lr-causing-null-pointer-exception-in-fop1-1rc1-tp36345p37334.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: writing-mode="lr" causing null-pointer-exception in fop1.1rc1
Posted by James Quest <qu...@gmail.com>.
hello,
below is the stack trace.
not sure whether it is <fo:leader> that is the issue.
indeed if <fo:leader> is removed, then there is no issue.
however, you you remove *any* of these 3 things, then there is no issue
either
1. <fo:leader>
2. <fo:page-number-citation>
3. text-align-last="justify"
james.
----------------------------------
java.lang.NullPointerException
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:303)
at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
at org.apache.fop.cli.Main.startFOP(Main.java:177)
at org.apache.fop.cli.Main.main(Main.java:208)
Caused by: java.lang.NullPointerException
at
org.apache.fop.area.inline.FilledArea.applyVariationFactor(FilledArea.java:127)
at org.apache.fop.area.LineArea.finish(LineArea.java:261)
at org.apache.fop.area.LineArea.handleIPDVariation(LineArea.java:239)
at
org.apache.fop.area.inline.InlineArea.notifyIPDVariation(InlineArea.java:267)
at
org.apache.fop.area.inline.InlineArea.handleIPDVariation(InlineArea.java:255)
at
org.apache.fop.area.inline.UnresolvedPageNumber.resolveIDRef(UnresolvedPageNumber.java:122)
at org.apache.fop.area.PageViewport.resolveIDRef(PageViewport.java:341)
at org.apache.fop.area.IDTracker.tryIDResolution(IDTracker.java:151)
at org.apache.fop.area.IDTracker.tryIDResolution(IDTracker.java:172)
at
org.apache.fop.layoutmgr.AbstractPageSequenceLayoutManager.finishPage(AbstractPageSequenceLayoutManager.java:310)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:191)
at
org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:115)
at
org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:267)
at
org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:128)
at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:347)
at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:181)
at
org.apache.xalan.transformer.TransformerIdentityImpl.endElement(TransformerIdentityImpl.java:1101)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.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.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:484)
at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:300)
--
View this message in context: http://apache-fop.1065347.n5.nabble.com/writing-mode-lr-causing-null-pointer-exception-in-fop1-1rc1-tp36345p36350.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: writing-mode="lr" causing null-pointer-exception in fop1.1rc1
Posted by Glenn Adams <gl...@skynav.com>.
the problem is with <fo:leader/>; if removed, there is no exception; i will
create a bug to track this and should be able to resolve, or at least
eliminate exception for final 1.1 release
On Sun, Jul 15, 2012 at 4:26 AM, Jim Quest <qu...@gmail.com> wrote:
> hello,
> i have seen that this fo causes a null-pointer-exception at fop1.1rc1.
> the same fo is perfectly fine if writing-mode="lr" or not specified
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Arial"
> writing-mode="rl">
> <fo:layout-master-set>
> <fo:simple-page-master page-height="297mm" page-width="210mm"
> master-name="a4">
> <fo:region-body margin-top="11mm" margin-bottom="12mm"
> margin-right="10mm" margin-left="10mm"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="a4">
> <fo:flow flow-name="xsl-region-body">
> <fo:block id="1">وكلما</fo:block>
> <fo:block text-align-last="justify">More text <fo:leader
> leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
>
> </fo:root>
>
> not exactly sure which bit of the following is causing it.
> <fo:block text-align-last="justify">More text <fo:leader
> leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/> </fo:block>
>
> have tried several variations of it, and some of it woks and others don't.
>
Re: writing-mode="lr" causing null-pointer-exception in fop1.1rc1
Posted by Glenn Adams <gl...@skynav.com>.
please post the console output, including exception stack backtrace if shown
On Sun, Jul 15, 2012 at 4:26 AM, Jim Quest <qu...@gmail.com> wrote:
> hello,
> i have seen that this fo causes a null-pointer-exception at fop1.1rc1.
> the same fo is perfectly fine if writing-mode="lr" or not specified
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Arial"
> writing-mode="rl">
> <fo:layout-master-set>
> <fo:simple-page-master page-height="297mm" page-width="210mm"
> master-name="a4">
> <fo:region-body margin-top="11mm" margin-bottom="12mm"
> margin-right="10mm" margin-left="10mm"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
>
> <fo:page-sequence master-reference="a4">
> <fo:flow flow-name="xsl-region-body">
> <fo:block id="1">وكلما</fo:block>
> <fo:block text-align-last="justify">More text <fo:leader
> leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
>
> </fo:root>
>
> not exactly sure which bit of the following is causing it.
> <fo:block text-align-last="justify">More text <fo:leader
> leader-pattern="dots"/> <fo:page-number-citation ref-id="1"/> </fo:block>
>
> have tried several variations of it, and some of it woks and others don't.
>