Bernhard Reutner-Fischer created FOP-2401:
---------------------------------------------

             Summary: NullPointerException near InlineStackingLayoutManager
                 Key: FOP-2401
                 URL: https://issues.apache.org/jira/browse/FOP-2401
             Project: Fop
          Issue Type: Bug
    Affects Versions: 1.0
         Environment: debian gnu/linux
fop-1:1.0.dfsg2-6
            Reporter: Bernhard Reutner-Fischer


I must be doing something wrong? :)

$ xsltproc fop-bug.xsl fop-bug.xml | tee fop-bug.xml.fop | fop -d - ok.pdf
[]
getNextSimplePageMaster(page=3 isOdd=true isFirst=true isLast=false 
isBlank=false)
[3]
PLM> flow BPD =697889
start of the next element list is: page=3 col=0
Exception
org.apache.fop.apps.FOPException
java.lang.NullPointerException
        at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:302)
        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:130)
        at org.apache.fop.cli.Main.startFOP(Main.java:174)
        at org.apache.fop.cli.Main.main(Main.java:205)
Caused by: java.lang.NullPointerException
        at 
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getChangedKnuthElements(InlineStackingLayoutManager.java:376)
        at 
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getChangedKnuthElements(InlineLayoutManager.java:537)
        at 
org.apache.fop.layoutmgr.inline.InlineStackingLayoutManager.getChangedKnuthElements(InlineStackingLayoutManager.java:381)
        at 
org.apache.fop.layoutmgr.inline.InlineLayoutManager.getChangedKnuthElements(InlineLayoutManager.java:537)
        at 
org.apache.fop.layoutmgr.inline.LineLayoutManager.processUpdates(LineLayoutManager.java:1349)
[]

$ cat fop-bug.xml 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML 5.0//EN" 
"http://docbook.org/xml/5.0/dtd/docbook.dtd";>
<book>
  <info>
    <title>Bug</title>
  </info>

  <part>
    <chapter xml:id="chapter.config">
      <title>The configuration</title>
        <section xml:id="chapter.config-Available_plugins">
          <title>Available plugins</title>
          <para>
            <variablelist>
              <varlistentry>
                <term><anchor xml:id="chapter.config-plugin1_i2"/>Plugin 
1</term>
                <listitem>
                  <para>
TODO
</para>
                  <para>
                    <variablelist>
                      <varlistentry>
                        <term><anchor 
xml:id="chapter.config-user_i2"/>user</term>
                        <listitem>
                          <para>
TODO
</para>
                        </listitem>
                      </varlistentry>
                      <varlistentry>
                        <term><anchor 
xml:id="chapter.config-password_i2"/>password</term>
                        <listitem>
                          <para>
TODO
</para>
                        </listitem>
                      </varlistentry>
                    </variablelist>
                  </para>
                </listitem>
              </varlistentry>
            </variablelist>
          </para>
      </section>
    </chapter>
  </part>
</book>


$ cat fop-bug.xsl 
<?xml version='1.0'?>
<xsl:stylesheet
   version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
   exclude-result-prefixes="xsl"
>
  <xsl:import 
href="/usr/share/sgml/docbook/stylesheet/xsl/docbook-xsl/fo/docbook.xsl"/>
  <xsl:param name="paper.type" select="'A4'"/>
  <xsl:param name="draft.mode">yes</xsl:param>

<xsl:output
   method="xml"
   indent="yes"
   encoding="UTF-8"

   doctype-public="-//OASIS//DTD DocBook XML 5.0//EN"
   doctype-system="http://www.docbook.org/xml/5.0/dtd/docbook.dtd";
/>

<xsl:strip-space elements="*"/>

<xsl:template name="draft.text">
  <xsl:choose>
    <xsl:when test="$draft.mode = 'yes'">
        <xsl:text>Internal</xsl:text>
    </xsl:when>
  </xsl:choose>
</xsl:template>

<xsl:attribute-set name="monospace.verbatim.properties">
  <xsl:attribute name="wrap-option">wrap</xsl:attribute>
</xsl:attribute-set>

</xsl:stylesheet>




--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to