MessageCountAdapter throws MessageRemovedException for a new Message

Using JavaMail 1.4.2...
I recently have encountered an error with a MessageCountAdapter class of mine (NewFaxEmailHandler) where the below exception is thrown when a new email is received. This happens at some point in time (days or hours) after successfully getting new Messages - and then always occurs from that point on. I am confused how a message could be just received, but yet an expunged Message?
2009-06-24 10:44:31,071: - ERROR - (FaxViewerServer.java:569) [JavaMail-EventQueue] -
javax.mail.MessageRemovedException
        at com.sun.mail.imap.IMAPMessage.checkExpunged(IMAPMessage.java:201)
        at com.sun.mail.imap.IMAPMessage.getSubject(IMAPMessage.java:307)
        at net.nighthawk.ifd.server.FaxViewerServer$NewFaxEmailHandler.messagesAdded(FaxViewerServer.java:560)
        at javax.mail.event.MessageCountEvent.dispatch(MessageCountEvent.java:146)
        at javax.mail.EventQueue.run(EventQueue.java:130)Any help is greatly appreciated!

I should mention I am using JDK 6u12, and below is the MessageCountAdapter used. I have just enabled -Dmail.debug=true, so I am hoping to get this error to happen again (I cannot reproduce it yet) and get more info on what is going on.
    private class NewFaxEmailHandler extends MessageCountAdapter
        public void messagesAdded(MessageCountEvent ev)
            // Get the messages from the event
            Message[] messages = ev.getMessages();
            for (Message message : messages)
                    if (log.isInfoEnabled())
                        // ERROR here, where the message.getSubject() is called
                        log.info("Begin processing message with subject: " + message.getSubject());
                catch (MessagingException ex)
                    if (log.isErrorEnabled())
                        log.error(ex.getMessage(), ex);
        }

Similar Messages

  • In Contacts, I don't have any duplicates, but in iMessage contacts on iMac in Mountain Lion, the contacts it provides for a new message are all doubles. Why and how can I fix?  Thx.

    In Contacts, I don't have any duplicates, but in iMessage contacts on iMac in Mountain Lion, the contacts it provides for a new message are all doubles. Why and how can I fix? 
    I also notice that each contact says iCloud in it twice, but when I go to iCloud.com, there are no duplicates either. Help..

    mdd770,
    Try Contacts>Preferences...>Accounts...remove {-}/re-add {+}your iCloud account.
    If that is not successful, follow the steps listed in iCloud: Troubleshooting iCloud Contacts.

  • How do I make it so there is no vibration for a new message while in iMessage conversation

    Hello all. I have an iPhone 5 and was experiencing battery problems. I reset all settings and this appears to have fixed the problem. However I am missing some of my old settings and I am wondering how to get them back. I can't quite remember (terrible I know, is there an app for that?) but I swear that before I reset when I was in an iMessage window (like looking at the screen, I could see people writing, there name at the top, you know what I mean)....and I got a message it wouldn't vibrate. Which I liked becuase I didnt need to be notified of something I was looking at. However if I had the phone locked or on an different app or something it would still vibrate. Do you understand?
    Now it either always vibrates (locked, on facebook, or looking at the message window) or doesnt (if i turn vibration on)
    I should note that this in in silent mode, or mute mode, whatever it is callled when you move that switch over.
    I want to get it so it vibrates only when I am not in the imessage window, when I can see someone is typing and then a new message is sent from them I don't need to be notified.
    Thanks!

    Well if your on 10.5.8 like your signature says, then you have bigger problems to worry about.
    10.5 isn't supported anymore, so you might as well attempt data recovery (if you dont' have a backup) and call Apple via phone for the 10.6.3 white retail disk.
    Step by Step to fix your Mac
    Most commonly used backup methods
    Then follow this proceedure to erase the ENTIRE disk with Zero's and install 10.6.3, then Software Update to 10.6.8
    How to erase and install Snow Leopard 10.6
    10.6 will run your older 10.5 software and hardware drivers using Rosetta, but 10.7 and 10.8 will not (also requires more RAM and will slow down your machine)
    Over 50% of OS X users are on 10.6 and Apple is supporting it with security updates etc. so you should be good with your present software etc., until you need a new 10.8, 10.9 etc., machine.

  • Mail window for a new message does'nt open

    When I click on the new-message icon in mail the message window will not open.
    Who knows a solution?
    With thanks on beforehand,Gerard Morselt

    When I click on the new-message icon in mail the message window will not open.
    Who knows a solution?
    With thanks on beforehand,Gerard Morselt

  • Message app shows my contacts numbers instead of their names when I get a notification for a new message

    As the title says, whenever I receive a new message there's a notification in the corner of the screen. The issue is it doesn't show the name of the contact, but the phone number instead. However when I'm on the window where all the conversations are I can see my contacts name and the conversations are listed by their names. Does anyone know how to fix this ? Any kind of help would be greatly appreciated.
    Here are some screen shots ;

    The answer did not resolve my issue. As I said, I am using version8.0.1 and getting the message (''''Some important features may not work in this version of your browser, so you have been redirected to the Basic HTML version. Upgrade to a modern browser, such as Google Chrome. Try standard version anyway'''').
    In any case, I re-installed the latest version with no change in the usability or appearance of Gmail. Any other suggestions

  • How to set an email address as the default for a new message

    Simple question I hope. How do I set Mail so that a new mail message is linked to a preferred account? At the moment when I click "compose new message", the default account is my me.com address. It only takes a moment to select my preferred account in the drop-down menu, but I never had this issue before and I can't figure it out in preferences. Thanks.
    Tom

    Open mail then mail-preference-composing and in the middle "Send new messages from" use the drop down menu to choose your prefered account.

  • TS2755 iMessage pre-populated for all new messages

    When I create a new message in IMessage it is pre-populated with an old message I once sent someone - it is like it has become a template and I am forced to delete it before I can write my new message. Any idea how I can stop this from happening?

    I can also no longer text on my computer or iPad.  Fine on iPhone.  Same as you - I can see everything up until a specific day.  But I didn't do any kind of update where it should have stopped.  And it stopped working on my computer and iPad at the same time.

  • I use icloud email but (2 email accounts univ and icloud) and i need to have all my outgoing emails come "from" my university account, not my icloud.  So how do i do that, note checking the default box for sending new messages only applies to new messages

      I am using icloud email but i also have a university account.  All my email is fowarded to my icloud account and what i need to do is make sure all of my email that i ship is from my university account and not from my icloud account.  I know there is a box that allows the default for all new emails to originate from one account but how do i make sure that all my replies to email (i.e. they have been fowarded from university account to icloud) now go from my university account.  please help anyone. 

    Sorry for the delayed response, yes i want to use my university account when replying to all emails.  Note i just discovered something, when i forward my university email to my icloud account and than responded from either my imac of my macbook air (i.e. in icloud) it automatically goes to my university account in the "from" space (good news!!!).  That is just what i wanted, .  While that is the good news, the bad news is that my iphone and ipad still treat this email as being from icloud even though it is forwarded (redirected) from my university account.  That is when i respond to an email (or for that matter create a new email in my icloud account) it automatically lists the icloud account as the "from" account and i have to go in and manually modify it.  So i am 50% there to solving my problem (i.e. actually did nothing the systems just worked well) but i still need to figure out a way to make this happen on my ipad and iphone. Any help or suggestions, note the default button in the iphone and ipad for email work differently than the default in the composition menu of the imac or macair.

  • Does anyone else think it is stupid that the 2nd gen of iPod touch can't update to even 4.3?  Cuz none of the apps work anymore and i don't have $300 to throw down for a new one.

    Yeah, I have been getting tons of updates for my apps, but since my iPod touch can only go to software 4.2.1 all of my apps have slowed down and crash,freeze, and don't get all the new things available on the other software versions.  It is incredibly frustrating and kind of stupid to phase out the owners who have the older models that work just fine.

    The 2G was introduced 4 1/2 years ago. That is old in electronics standards. It does not have the hardware to support a higher iOS.

  • How do I make a different Mail account the default for sending new messages?

    I have several email accounts in Mail. When I go to Preferences> Accounts I see them. The account on top of the list is the default one for sending mail. I want one of the lower ones instead. Can I select this or move it to the top position (if that is what gives it priority)?

    Open Mail as usual and, at the sidebar, press the arrow next to "Inbox", so all your email accounts will show up under it. Simply hold the Command key and drag the email account you want to use by default to the first position. This will make it the default mail account to send emails

  • Mail.app stopped downloading new messages from pop3

    Hello,
    I met this on both the latest Tiger and Panther: came after two weeks away and had no new mail. Strange. The Mail.app logins to pop3 server, sends a password, looks for the new messages, and that's all. Nothing is downloaded.
    When I checked the mail via web browser, I had found about 600 messages there - most of them just a spam, as usual.
    Whatever I tried (permissions, delete and create account, rebuild...) nothing helped.
    BUT.
    When I *manually deleted* some messages (via web browser), Mail.app started downloading. For me it looks like there is some message number limit, about 500 messages, and if there are more messages on the server, nothing is downloaded. I believe it's a bug - at least some error message should appear.

    By the way, my Mail App is version 5.3

  • When composing a new message in mail on OS X 10.9.2, is there a way to change the "sending" account on a per-message basis?

    I just got a new MacBook Pro and when composing a new message, I can no longer choose which e-mail account I want to use for the new message.  It also does not show which account I'm using in the e-mail composition panel.  Is there a way to fix this?

    Click on the pull down window next to From: and you should be able to select the individual account you want to send from.  The account that you want to send from must be an Enabled account in the Account Preferences of Mail.

  • Can't create new messages in Mail

    When I click on New Message or Reply I don't get a new window or a new draft message. Nothing seems to happen. But if I quit Mail and then re-launch, I get all the new mail windows appearing, and they are all there in my drafts mailbox, and they can be edited and sent as normal.
    Any ideas how to fix this?
    Thanks.

    Are you saying it doesn't happen for all new messages?
    Try making a new user account, log on as the new user, set up Mail there and see does the problem exist.
    AK

  • New Message Indicator Problem

    I just updated my 8300 to the latest software and something new has started. I have 3 email accounts setup through BIS to my device which creates 3 email folders on my device for each corresponding account. The old way I received new mail messages and notifications was a red star on the corresponding email icon and the message count for each account in parenthesis next to the email address for the account.
    After I installed the latest software, I get mail sent to both the generic messages folder and the corresponding account. But only the messages folder has the red star/flag. I want it to go back to the way it was (nothing in generic folder and new email in the corresponding icon with a red star/flag for each new message on each account) and can't figure it out (I do have my messages (SMS and EMAIL inboxes) set to separate in the options folder).
    Please help!

    Thanks for your reply. I found out the solution by accident. Under message options-->Email reconciliation-->Confirm Delete set to prompt (options on handheld only, handheld and mailbox, prompt). for some reason when I changed it from handheld only to prompt it seperated the mail (I also have email and SMS seperate under general email options).

  • SMS inbox doesn't show new messages after upgrading to OS 5.0.0.681. SMS format appears as IM.

    My SMS inbox doesnt show new messages and also my Curve 8900 doesnt prompt for any new messages. However, the Mobiso application (which logs calls, texts) shows messages coming in with its text lengths. I asked this to Blackberryhelp on Twitter but it said to contact service provider, but there is nothing wrong with it. The format of the SMS inbox should have something wrong otherwise the Mobiso application should not have logged all messages.
    Please help me, i am missing all my daily SMS since last 20 days.
    Will degrading the OS help? Which is recommended OS version for BB Curve 8900?

    Hi,
    Here are some good articles listing the available methods for organizing and displaying messages in device OS 5.0. If you can't set your exact preferences I suggest looking in AppWorld for custom programs.
    Let us know how it goes!
    Thanks,
    Bifocals
    What is new in BlackBerry Device Software 5.0    
    Option for separate SMS and Email message inboxes is missing
    How to integrate SMS text messages with BlackBerry Messenger 5.0
    SMS text messages received from multiple senders appear in the same conversation thread on the Black...   
    Organizing your inbox’s main Messages list
    Click Accept as Solution for posts that have solved your issue(s)!
    Be sure to click Like! for those who have helped you.
    Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

Maybe you are looking for

  • Twitter widget in Captivate 7 not working

    I am using Captivate 7 to add the twitter widget to a course. I can publish it with no problem, however, it won't allow me to generate a pin. . When I click on the button "Generate PIN" it comes back with a message: "To disable twitter functionality,

  • How do i add an ipad to my share everything plan?

    how do i add an ipad to my share everything plan?

  • Business Catalyst Fees

    Do I need to pay a monthly fee above and beyond my creative cloud membership to get access to advanced business catalyst features like ecommerce and blog modules. What actually comes with my creative cloud membership when it comes to business catalys

  • Function Modules for Campaigns Execution

    Hi Experts, I have an query, I am executing a Campaigns based on this campaign creating a Leads as transaction. I need some function module or BAPI , using which i can download the Lead Numbers , Business Partner Details like name , address, marketin

  • Is there a lock screen command in OS X similar to Screen Lock in Windows?

    I want to lock screen for a brief period of time, and didnt want to log out or shut down the system. Is there a lock screen command for this, so that I can lock it and unlock whenever I need? Or I am wondering if I can log out without closing the app