DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13699>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13699

PDF-Renderer Not Threadsafe

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |



------- Additional Comments From [EMAIL PROTECTED]  2002-10-18 19:13 -------

Hello!

It's not really fisex. 
We tested 0.20.3 and also 0.20.4.
In MT-Envs we had exceptions!!!

To resolve:

1) in org.apache.fop.image.AbstractFopImage:

    public  _synchronized_  byte[] getBitmaps() throws FopImageException {
        if (this.m_bitmaps == null)
            this.loadImage();

        return this.m_bitmaps;
    }


2) (may be superflowous because of (1)
    in org.apache.fop.image.analyser.ImageReaderFactory:
    
    static public ImageReader Make(String uri,
                          InputStream in) throws FopImageException {
        
                synchronized (sem) {
                if (formats==null) {
                        // need to use a config file and remove static methods
                        formats = new Vector();
                        formats.addElement(new JPEGReader());
                        formats.addElement(new BMPReader());
                        formats.addElement(new GIFReader());
                        formats.addElement(new PNGReader());
                        formats.addElement(new TIFFReader());
                        formats.addElement(new EPSReader());
                        formats.addElement(new SVGReader());
                        //
                }
        }
         .....


Okay! ThatÄs not really good solution. But it scales without bottleneck.

Ciao,
Joachim

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

Reply via email to