RE: resetting image cache during processing

2004-11-30 Thread Agar, Robert
Agar, Robert wrote:
 Is it safe to call FopImageFactory.resetCache() during processing?
 We need to reduce the memory usage as much as possible, so I was
 considering calling it every time a page rendered info event is
 logged.  Or does this sound like a really bad idea?

It should be safe but useless, because the PDF renderer keeps
references to the cached structures. At worst, memory usage
goes through the roof due to reloding repeated images (don't know
offhand whether this applies to images in static content).
There's no easy fix, if there was one it would have been integrated
a long time ago.

J.Pietschmann

Yes - I tried it out, but as you say there was no effect.  All the images were 
used once, so there were no ill effects either.

R


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



resetting image cache during processing

2004-11-26 Thread Agar, Robert
hi all,

Is it safe to call FopImageFactory.resetCache() during processing?  We need to 
reduce the memory usage as much as possible, so I was considering calling it 
every time a page rendered info event is logged.  Or does this sound like a 
really bad idea?

cheers
Rob


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Error] null

2004-11-11 Thread Agar, Robert
hi all

I'm getting this rather less than helpful error message:

[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] FOP 0.20.5
[INFO] Using org.apache.xerces.parsers.SAXParser as SAX2 Parser
[INFO] building formatting object tree
[INFO] setting up fonts
[ERROR] null

In the list achives there's mention of this being caused by block-container 
elements that are not the direct children of fo:flow, but that's not the case 
as the xsl-fo doesn't include any block-container elements.

Any thoughts anyone?

thanks
Rob
  


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [Error] null

2004-11-11 Thread Agar, Robert
Andreas:
 A couple of hints:
 
 1. try running FOP with the '-d' command line switch. This 
 should give you
 more information, maybe even more helpful :-)

... tracked down the error to a null pointer exception at 
org.apache.fop.fo.pagination.PageSequence.init(PageSequence.java:173), caused 
by the fo:layout-master-set element being missing.

thanks very much Andreas!

Rob
 


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



exception on error

2004-10-22 Thread Agar, Robert
hi all,

I have FOP running embedded in a java program. How do I make it throw an 
exception on an error, rather than just logging it?

The particular error I want it to fail on is this:
[ERROR] Error while creating area : Error with image URL: Images\test.jpeg (The 
system cannot find the path specified) and no base URL is specified

thanks
Rob


**
This message is sent in strict confidence for the addressee only.  It may
contain legally privileged information. The contents are not to be disclosed
to anyone other than the addressee. Unauthorised recipients are requested
to preserve this confidentiality and to advise the sender immediately of any
error in transmission.
This footnote also confirms that this email message has been swept for the
presence of computer viruses, however we cannot guarantee that this message
is free from such problems.
**


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]