Hi,
The line causing the error dates back from 2008 according to git blame. It can
be seen in the RTFHandler.java class on line 217:
this.pagemaster
=
pageSeq.getRoot().getLayoutMasterSet().getSimplePageMaster(reference);
if (this.pagemaster == null) {
RTFEventProducer eventProducer =
RTFEventProducer.Provider.get(
getUserAgent().getEventBroadcaster());
eventProducer.onlySPMSupported(this, reference,
pageSeq.getLocator());
...
}
It looks as though for some reason it's not reading the simple-page-master
correctly and is therefore null.
Would it be possible for you to provide us with a shortened example to
reproduce the issue? You can blank out any sensitive data in the FO if there is
any.
Thanks,
Robert Meyer
> Date: Wed, 19 Jun 2013 03:15:44 -0700
> From: [email protected]
> To: [email protected]
> Subject: RTF - Only simple-page-masters are supported on page-sequences
>
> Hi,
>
> I had a customer yesterday request a RTF version of a document rather than a
> PDF. When I ran my FO through the Latest nightly trunk snapshot, I received
> this error.
>
> "Only simple-page-masters are supported on page-sequences. Using default
> simple-page-master from page-sequence-master "warning-recto-verso-document".
> (See position 1402:42)
> Exception
> org.apache.fop.apps.FOPException
> java.lang.NullPointerException"
>
> I know this use to work in older version of FOP. Is this a bug or was this
> disabled?
>
> Thanks
>
> Phil
>
>
>
>
> --
> View this message in context:
> http://apache-fop.1065347.n5.nabble.com/RTF-Only-simple-page-masters-are-supported-on-page-sequences-tp38734.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>