javax.mail.MessagingException: Cannot monitor folder: INBOX as folder is closed

MuleSoft JIRA | Nagendra E Loli | 6 years ago
  1. 0

    Hi, I am connecting to my Gmail Account to receive mails from my gmail through Mule pop3s connector, Below is my Configuration code. <pop3s:connector name="e2spop3Connector" checkFrequency="500" deleteReadMessages="true" /> <model name="emailtosmsmodel"> <service name="emailtosmsservice"> <inbound> <pop3s:inbound-endpoint host="pop.gmail.com" user="myusername%40gmail.com" password="mypassword"> <email:email-to-string-transformer/> </pop3s:inbound-endpoint> </inbound> <component class="com.test.ReceiveEmail" /> </service> </model> I am able to receive the mail's successfully once they arrive in my mail Box, But the problem is, after i start my tomcat webserver where i deployed this application, after sometime the pop3s connector is keep on throwing an Exception as below: [03-03 11:11:12] ERROR RetrieveMessageReceiver [e2spop3Connector.receiver.1]: Failed to close pop3 inbox: Folder is not Open [03-03 11:11:14] ERROR DefaultSystemExceptionStrategy [e2spop3Connector.receiver.1]: Caught exception in Exception Strategy: Cannot monitor folder: INBOX as folder is closed javax.mail.MessagingException: Cannot monitor folder: INBOX as folder is closed at org.mule.transport.email.RetrieveMessageReceiver.poll(RetrieveMessageReceiver.java:319) at org.mule.transport.PollingReceiverWorker.poll(PollingReceiverWorker.java:79) at org.mule.transport.PollingReceiverWorker.run(PollingReceiverWorker.java:50) at org.mule.work.WorkerContext.run(WorkerContext.java:309) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Unknown Source) [03-03 11:11:14] ERROR RetrieveMessageReceiver [e2spop3Connector.receiver.1]: Failed to close pop3 inbox: Folder is not Open What's the cause for this exception. Is there anything wrong in the configuration. How to solve this issue. Please advice. Thanks & Regards Nagendra E Loli

    MuleSoft JIRA | 6 years ago | Nagendra E Loli
    javax.mail.MessagingException: Cannot monitor folder: INBOX as folder is closed
  2. 0

    Hi, I am connecting to my Gmail Account to receive mails from my gmail through Mule pop3s connector, Below is my Configuration code. <pop3s:connector name="e2spop3Connector" checkFrequency="500" deleteReadMessages="true" /> <model name="emailtosmsmodel"> <service name="emailtosmsservice"> <inbound> <pop3s:inbound-endpoint host="pop.gmail.com" user="myusername%40gmail.com" password="mypassword"> <email:email-to-string-transformer/> </pop3s:inbound-endpoint> </inbound> <component class="com.test.ReceiveEmail" /> </service> </model> I am able to receive the mail's successfully once they arrive in my mail Box, But the problem is, after i start my tomcat webserver where i deployed this application, after sometime the pop3s connector is keep on throwing an Exception as below: [03-03 11:11:12] ERROR RetrieveMessageReceiver [e2spop3Connector.receiver.1]: Failed to close pop3 inbox: Folder is not Open [03-03 11:11:14] ERROR DefaultSystemExceptionStrategy [e2spop3Connector.receiver.1]: Caught exception in Exception Strategy: Cannot monitor folder: INBOX as folder is closed javax.mail.MessagingException: Cannot monitor folder: INBOX as folder is closed at org.mule.transport.email.RetrieveMessageReceiver.poll(RetrieveMessageReceiver.java:319) at org.mule.transport.PollingReceiverWorker.poll(PollingReceiverWorker.java:79) at org.mule.transport.PollingReceiverWorker.run(PollingReceiverWorker.java:50) at org.mule.work.WorkerContext.run(WorkerContext.java:309) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Unknown Source) [03-03 11:11:14] ERROR RetrieveMessageReceiver [e2spop3Connector.receiver.1]: Failed to close pop3 inbox: Folder is not Open What's the cause for this exception. Is there anything wrong in the configuration. How to solve this issue. Please advice. Thanks & Regards Nagendra E Loli

    MuleSoft JIRA | 6 years ago | Nagendra E Loli
    javax.mail.MessagingException: Cannot monitor folder: INBOX as folder is closed
  3. 0

    GitHub comment 5#91589738

    GitHub | 2 years ago | Concept211
    javax.mail.MessagingException: Couldn't create folder: INBOX in target server.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 5#91589738

    GitHub | 2 years ago | Concept211
    javax.mail.MessagingException: Couldn't create folder: INBOX in target server.
  6. 0

    Android Socket.getchannel() method always returns null in javamail

    Oracle Community | 4 months ago | mymac
    javax.mail.MessagingException: Folder is not using SocketChannels

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.mail.MessagingException

      Cannot monitor folder: INBOX as folder is closed

      at org.mule.transport.email.RetrieveMessageReceiver.poll()
    2. org.mule.transport
      RetrieveMessageReceiver.poll
      1. org.mule.transport.email.RetrieveMessageReceiver.poll(RetrieveMessageReceiver.java:319)
      1 frame
    3. Mule Core
      WorkerContext.run
      1. org.mule.transport.PollingReceiverWorker.poll(PollingReceiverWorker.java:79)
      2. org.mule.transport.PollingReceiverWorker.run(PollingReceiverWorker.java:50)
      3. org.mule.work.WorkerContext.run(WorkerContext.java:309)
      3 frames
    4. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
      2 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame