Menu

#2 nFOP locks jpg images during generation

open
nobody
None
5
2005-12-29
2005-12-29
Anonymous
No

Hello, in class JpegImage.java method loadImage()
there is inStream which is used for jpegs load, it's
not closed after the operation that's why jpeg images
are locked and cannot be deleted/changed. Patched file
is attached to the bug.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    No Attachments listed ...

     
  • Ian Farrands

    Ian Farrands - 2006-06-25

    Logged In: YES
    user_id=1545868

    The comment says that there is an attached patched file
    which I cannot find. I am also having this problem and my
    knowledge of Java is not good. Can you please add the
    patched file or describe how you fixed this problem.

    Thanks

    Ian

     
  • Nobody/Anonymous

    Logged In: NO

    In loadImage() line 102
    try {
    inStream = this.m_href.openStream();

    while ((bytes_read = inStream.read(readBuf)) != -1) {
    baos.write(readBuf, 0, bytes_read);
    }
    //Add this line for correct bug
    inStream.close();
    } catch (java.io.IOException ex) {
    throw new FopImageException("Error while loading image " +
    this.m_href.toString() + " : " + ex.getClass() +
    " - " + ex.getMessage());
    }

     
  • Nobody/Anonymous

    Logged In: NO

    I am experiencing this problem. The problem is not noticed until time to do a deployment. We have to reset IIS any time we deploy.

     

Log in to post a comment.

MongoDB Logo MongoDB