Simon,
Why aren't these fatal errors--what's the gain in
having FOP continue running in an invalid state?
One-in-a-million bugs like these that occur for
inexplicable reasons should raise an
IllegalStateException and halt. FOP should not
continue running after catastrophic failures.
Glen
--- [EMAIL PROTECTED] wrote:
> + } catch (FOPException e) {
> + log.error
> + ("Failed to create a
> StaticContentLayoutManager for flow "
> + + flow.getFlowName()
> + + "; no static content will be
> laid out:");
> + log.error(e.getMessage());
> + return;
> + }
> lm.initialize();
> lm.setRegionReference(reg.getRegion());
..................
> if (pageSequence.getMainFlow() != null) {
> - PageSequenceLayoutManager pageSLM =
> - (PageSequenceLayoutManager)
> + PageSequenceLayoutManager pageSLM;
> + try {
> + pageSLM =
> (PageSequenceLayoutManager)
>
>
getLayoutManagerMaker().makeLayoutManager(pageSequence);
> + } catch (FOPException e) {
> + log.error("Failed to create a
> PageSequenceLayoutManager; no pages will be laid
> out:");
> + log.error(e.getMessage());
> + return;
> + }