Menu

a big bug in MStorFolder appendMessage

Help
jimmy
2005-06-09
2013-05-01
  • jimmy

    jimmy - 2005-06-09

    First if i append a big message to mstor it will report outofmemory error
    i review the source find you read all message to memory,it's inefficiency.
    Second

    MStorFolder.java 473
    messages[i] = null;

                    mbox.appendMessage(out.toByteArray());

                    // create metadata..
                    if (mStore.isMetaEnabled()) {
                        MetaMessage meta = getMeta().getMessage(messages[i]);//it's a bug

    if you enable meta it's always error

     
    • Ben Fortuna

      Ben Fortuna - 2005-06-10

      Hi Jimmy,

      It might be helpful if you could provide an example of the message that gives you an OutOfMemoryError, or at least let me know how big the message is so I can reproduce this error.

      Also, could you elaborate on what you mean by "if you enable meta it's always error"? Is there a NullPointerException or some other exception being thrown?

      regards,
      ben

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.