J. below is my layout-master-set followed by the way I start the page
sequence for my repeatable page.

<fo:layout-master-set>
   <fo:simple-page-master master-name="paramsPage"
       page-height="21cm" 
         page-width="29.7cm"
         margin-top="1.5cm" 
         margin-bottom="1.5cm" 
         margin-left="1.5cm" 
         margin-right="1.5cm"            
       border-width=".5pt" 
       border-style="solid">
       <fo:region-before extent="2.5cm"/>
       <fo:region-after extent="1cm"/>
       <fo:region-body 
           margin-top="1.1cm"
           margin-bottom="1.1cm"/>
    </fo:simple-page-master>
 
    <fo:simple-page-master master-name="detailPage"
        page-height="21cm" 
          page-width="29.7cm"
          margin-top="1.5cm" 
          margin-bottom="1.5cm" 
          margin-left="1.5cm" 
          margin-right="1.5cm">            
        <fo:region-before extent=".5cm"/>
        <fo:region-after extent=".5cm"/>
        <fo:region-body margin-top=".5cm" margin-bottom=".5cm"
border-style="solid"/>
    </fo:simple-page-master>

    <fo:simple-page-master master-name="summaryPage"
        page-height="21cm" 
          page-width="29.7cm"
          margin-top="1.5cm" 
          margin-bottom="1.5cm" 
          margin-left="1.5cm" 
          margin-right="1.5cm">            
        <fo:region-before extent=".5cm" border-width=".5pt"
border-style="solid"/>
        <fo:region-after extent=".5cm"  border-width=".5pt"
border-style="solid"/>
        <fo:region-body margin-top=".5cm" margin-bottom=".5cm"
border-width=".5pt" border-style="solid"/>
    </fo:simple-page-master>
         
    <fo:page-sequence-master master-name="reportDetails">
       <fo:repeatable-page-master-alternatives>
          <fo:conditional-page-master-reference master-name="detailPage"
blank-or-not-blank="not-blank"/>
       </fo:repeatable-page-master-alternatives>            
    </fo:page-sequence-master>
     
</fo:layout-master-set>

<fo:page-sequence master-reference="reportDetails">
</fo:page-sequence>

-----Original Message-----
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: 01 May 2002 21:22
To: [EMAIL PROTECTED]
Subject: Re: Trying to resolve memory exception through correct use of
page se quencing


John Bourke wrote:
> I think the problem is caused by me having a page sequence called detail
> page, into which my 500 pages worth of data is placed with a page break
> before each page full. BUT, this is all within the one page sequence which
I
> think FOP is trying to render all at once.

FOP tries to render page by page, however, ending a
page sequence will usually free additional memory
(perhaps a lot of additional memory, according to
the stories on the list).

> Then when rendering FOP throws the following exception:
> ---------
> java.lang.NullPointerException
> at
>
org.apache.fop.fo.pagination.PageSequence.getNextPageMaster(PageSequence.jav
> a:526)

This has nothing to do with a memory problem. You
probably have referenced a page master which doesn't
exist, or hit another FOP bug. Can you post your
layout-master-set?


J.Pietschmann


***********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. Any unauthorised distribution or copying is strictly 
prohibited.

Whilst Cedar Plc takes steps to prevent the transmission of 
viruses via e-mail, we can not guarantee that any email or 
attachment is free from computer viruses and you are strongly
advised to undertake your own anti-virus precautions.

Cedar Plc grants no warranties regarding performance,
use or quality of any e-mail or attachment and undertakes no 
liability for loss or damage, howsoever caused.
************************************************************************

Reply via email to