Hi,

(Reporting this here, since for some reason can't connect to
nagoya.apache.org... is it just me or does anyone else have this problem
too?)

While running some tests after updating to include Luca's latest patch
(bugzilla 31206), I get a ClassCastException in LineLM.getNextBreakPoss()
line 409:

while((curLM = (InlineLevelLayoutManager) getChildLM()) != null)

This seems to be due to an fo:retrieve-marker that cannot find a
corresponding fo:marker in the current page, since I get the message

found no marker with name: {marker-class-name}

immediately before the Exception is thrown.

Example FO in attach (minimized version with a fo:retrieve-marker, without
fo:marker)

(In the complete version of my test, indirectly this is caused by the
break-before/break-after properties that aren't working, but this is besides
the point...)

Anybody have an idea on how to fix this? Just a warning would be more than
enough (certainly preferable to FOP crashing over it :-) )


Greetz,

Andreas
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:fox="http://xml.apache.org/fop/extensions";>
   <fo:layout-master-set>
     <fo:simple-page-master master-name="spmA4-portrait" page-height="297mm" page-width="210mm" margin-top="10mm" margin-bottom="10mm" margin-left="25mm" margin-right="25mm">
         <fo:region-body margin-top="10mm" margin-bottom="25mm"/>
         <fo:region-before extent="10mm"/>
         <fo:region-after extent="25mm"/>
      </fo:simple-page-master>
      <fo:page-sequence-master master-name="psm-list">
         <fo:repeatable-page-master-reference master-reference="spmA4-portrait"/>
      </fo:page-sequence-master>
      <fo:page-sequence-master master-name="psm-detail">
         <fo:repeatable-page-master-reference master-reference="spmA4-portrait"/>
      </fo:page-sequence-master>
   </fo:layout-master-set>
   <fo:page-sequence master-reference="psm-list">
      <fo:static-content flow-name="xsl-region-after">
         <fo:block font-weight="bold" font-family="sans-serif" font-size="6pt" text-align="start">
           <fo:retrieve-marker retrieve-class-name="class" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
         </fo:block>
      </fo:static-content>
      <fo:flow flow-name="xsl-region-body" font-family="sans-serif">
         <fo:block>
           Blabla
         </fo:block>
      </fo:flow>
   </fo:page-sequence>
</fo:root>

Reply via email to