java.lang.IllegalStateException: Folder is not Open

Atlassian JIRA | Jeff Turner | 1 decade ago
  1. 0

    Tried to forward invalid emails (usually spam) to myself: 2005-05-12 01:42:19,963 DEBUG [service.services.mail.MailFetcherService] There are 2 messages in the pop folder 2005-05-12 01:42:20,004 DEBUG [service.services.mail.MailFetcherService] Message Subject: enlarge girth and length 2005-05-12 01:42:20,004 DEBUG [atlassian.jira.mail.MailThreadManagerImpl] Cannot determine message id of the e-mail message. 2005-05-12 01:42:20,031 DEBUG [service.services.mail.MailFetcherService] Forwarding Message: com.sun.mail.pop3.POP3Message@cb353b 2005-05-12 01:42:20,131 INFO [velocity] ResourceManager : found templates/email/text/errorinhandler.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 2005-05-12 01:42:20,181 DEBUG [atlassian.mail.queue.MailQueueImpl] Queued: To='jeff@atlassian.com' Subject='Error in: enlarge girth and length' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@17b1871' MessageId='null' 2005-05-12 01:42:20,221 DEBUG [service.services.mail.MailFetcherService] Message Subject: Returned mail: see transcript for details 2005-05-12 01:42:20,222 DEBUG [atlassian.jira.mail.MailThreadManagerImpl] Cannot determine message id of the e-mail message. 2005-05-12 01:42:20,248 DEBUG [service.services.mail.MailFetcherService] Forwarding Message: com.sun.mail.pop3.POP3Message@81ca74 2005-05-12 01:42:20,329 DEBUG [atlassian.mail.queue.MailQueueImpl] Queued: To='jeff@atlassian.com' Subject='Error in: Returned mail: see transcript for details' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@11624bb' MessageId='null' 2005-05-12 01:42:20,368 DEBUG [atlassian.jira.service.ServiceRunner] Finished Running Service [Container: com.atlassian.jira.service.services.pop.PopService null delay [60000ms]] However when the generated mail is actually flushed from the queue, we get this error: 2005-05-12 01:43:05,308 DEBUG [atlassian.mail.queue.MailQueueImpl] Sending: To='jeff@atlassian.com' Subject='Error in: enlarge girth and length' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@17b1871' MessageId='null' 2005-05-12 01:43:05,392 INFO [org.quartz.core.JobRunShell] Job DEFAULT.ServicesJob threw a JobExecutionException: org.quartz.JobExecutionException: java.lang.IllegalStateException: Folder is not Open [See nested exception: java.lang.IllegalStateException: Folder is not Open] at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:54) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) * Nested Exception (Underlying Cause) --------------- java.lang.IllegalStateException: Folder is not Open at com.sun.mail.pop3.POP3Folder.checkOpen(POP3Folder.java:385) at com.sun.mail.pop3.POP3Folder.getProtocol(POP3Folder.java:412) at com.sun.mail.pop3.POP3Message.getContentStream(POP3Message.java:116) at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:61) at javax.activation.DataHandler.writeTo(DataHandler.java:297) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1503) at com.sun.mail.handlers.message_rfc822.writeTo(message_rfc822.java:89) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) at javax.activation.DataHandler.writeTo(DataHandler.java:305) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635) at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233) at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) at javax.activation.DataHandler.writeTo(DataHandler.java:305) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321) at javax.mail.Transport.send0(Transport.java:164) at javax.mail.Transport.send(Transport.java:81) at alt.javax.mail.TransportImpl.send(TransportImpl.java:18) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:138) at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:47) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:55) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)2005-05-12 01:43:05,394 DEBUG [atlassian.jira.service.ServiceRunner] ServiceRunner.runServices() Running at [2005-05-12 01:43:05,394] The spam mails are not deleted from the POP box, and neither do I get the mail forwarded to me. The mail appears in the queue, marked as 'error', and flushing the queue results in above stacktrace. I suspect the mail wasn't sent because the From address isn't set.

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.IllegalStateException: Folder is not Open
  2. 0

    Tried to forward invalid emails (usually spam) to myself: 2005-05-12 01:42:19,963 DEBUG [service.services.mail.MailFetcherService] There are 2 messages in the pop folder 2005-05-12 01:42:20,004 DEBUG [service.services.mail.MailFetcherService] Message Subject: enlarge girth and length 2005-05-12 01:42:20,004 DEBUG [atlassian.jira.mail.MailThreadManagerImpl] Cannot determine message id of the e-mail message. 2005-05-12 01:42:20,031 DEBUG [service.services.mail.MailFetcherService] Forwarding Message: com.sun.mail.pop3.POP3Message@cb353b 2005-05-12 01:42:20,131 INFO [velocity] ResourceManager : found templates/email/text/errorinhandler.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader 2005-05-12 01:42:20,181 DEBUG [atlassian.mail.queue.MailQueueImpl] Queued: To='jeff@atlassian.com' Subject='Error in: enlarge girth and length' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@17b1871' MessageId='null' 2005-05-12 01:42:20,221 DEBUG [service.services.mail.MailFetcherService] Message Subject: Returned mail: see transcript for details 2005-05-12 01:42:20,222 DEBUG [atlassian.jira.mail.MailThreadManagerImpl] Cannot determine message id of the e-mail message. 2005-05-12 01:42:20,248 DEBUG [service.services.mail.MailFetcherService] Forwarding Message: com.sun.mail.pop3.POP3Message@81ca74 2005-05-12 01:42:20,329 DEBUG [atlassian.mail.queue.MailQueueImpl] Queued: To='jeff@atlassian.com' Subject='Error in: Returned mail: see transcript for details' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@11624bb' MessageId='null' 2005-05-12 01:42:20,368 DEBUG [atlassian.jira.service.ServiceRunner] Finished Running Service [Container: com.atlassian.jira.service.services.pop.PopService null delay [60000ms]] However when the generated mail is actually flushed from the queue, we get this error: 2005-05-12 01:43:05,308 DEBUG [atlassian.mail.queue.MailQueueImpl] Sending: To='jeff@atlassian.com' Subject='Error in: enlarge girth and length' From='null' FromName='null' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='null' MimeType='text/plain' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@17b1871' MessageId='null' 2005-05-12 01:43:05,392 INFO [org.quartz.core.JobRunShell] Job DEFAULT.ServicesJob threw a JobExecutionException: org.quartz.JobExecutionException: java.lang.IllegalStateException: Folder is not Open [See nested exception: java.lang.IllegalStateException: Folder is not Open] at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:54) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) * Nested Exception (Underlying Cause) --------------- java.lang.IllegalStateException: Folder is not Open at com.sun.mail.pop3.POP3Folder.checkOpen(POP3Folder.java:385) at com.sun.mail.pop3.POP3Folder.getProtocol(POP3Folder.java:412) at com.sun.mail.pop3.POP3Message.getContentStream(POP3Message.java:116) at javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:61) at javax.activation.DataHandler.writeTo(DataHandler.java:297) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1503) at com.sun.mail.handlers.message_rfc822.writeTo(message_rfc822.java:89) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) at javax.activation.DataHandler.writeTo(DataHandler.java:305) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635) at javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233) at com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68) at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849) at javax.activation.DataHandler.writeTo(DataHandler.java:305) at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321) at javax.mail.Transport.send0(Transport.java:164) at javax.mail.Transport.send(Transport.java:81) at alt.javax.mail.TransportImpl.send(TransportImpl.java:18) at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:138) at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:47) at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:55) at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:23) at com.atlassian.jira.service.JiraServiceContainer.run(JiraServiceContainer.java:59) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:50) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)2005-05-12 01:43:05,394 DEBUG [atlassian.jira.service.ServiceRunner] ServiceRunner.runServices() Running at [2005-05-12 01:43:05,394] The spam mails are not deleted from the POP box, and neither do I get the mail forwarded to me. The mail appears in the queue, marked as 'error', and flushing the queue results in above stacktrace. I suspect the mail wasn't sent because the From address isn't set.

    Atlassian JIRA | 1 decade ago | Jeff Turner
    java.lang.IllegalStateException: Folder is not Open
  3. 0

    Javamail java.lang.IllegalStateException: Folder is not Open

    Stack Overflow | 5 years ago | Ahmed Saleh
    java.lang.IllegalStateException: Folder is not Open
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Hi, we get this error on some issues when send for creation: Exception: Failed to send the forward mail: Folder is not Open IllegalStateException: Folder is not Open: java.lang.IllegalStateException: Folder is not Open at com.sun.mail.pop3.POP3Folder.checkOpen(POP3Folder.java:547) at com.sun.mail.pop3.POP3Folder.getProtocol(POP3Folder.java:577) at com.sun.mail.pop3.POP3Message.writeTo(POP3Message.java:571) at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1749) at com.javahollic.jira.emh.service.JEMHMailer.sendFowardEmail(JEMHMailer.java:616) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.sendForwardMail(EnterpriseMessageHandlerImpl.java:488) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerImpl.handleMessage(EnterpriseMessageHandlerImpl.java:241) at com.javahollic.jira.emh.service.EnterpriseMessageHandlerProxy.handleMessage(EnterpriseMessageHandlerProxy.java:43) at com.atlassian.jira.service.services.mail.MailFetcherService$1.process(MailFetcherService.java:361) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:264) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:349) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:250) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47)

    JIRA | 4 years ago | Tshepo
    java.lang.IllegalStateException: Folder is not Open
  6. 0

    Transactional POP3 Mailbox access with Spring Integration - Spring Forum

    spring.io | 7 months ago
    java.lang.IllegalStateException: Folder is not Open

    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. java.lang.IllegalStateException

      Folder is not Open

      at com.sun.mail.pop3.POP3Folder.checkOpen()
    2. JavaMail API (compat)
      POP3Message.getContentStream
      1. com.sun.mail.pop3.POP3Folder.checkOpen(POP3Folder.java:385)
      2. com.sun.mail.pop3.POP3Folder.getProtocol(POP3Folder.java:412)
      3. com.sun.mail.pop3.POP3Message.getContentStream(POP3Message.java:116)
      3 frames
    3. JavaMail API
      MimePartDataSource.getInputStream
      1. javax.mail.internet.MimePartDataSource.getInputStream(MimePartDataSource.java:61)
      1 frame
    4. Java RT
      DataHandler.writeTo
      1. javax.activation.DataHandler.writeTo(DataHandler.java:297)
      1 frame
    5. JavaMail API
      MimeMessage.writeTo
      1. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
      2. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
      3. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1503)
      3 frames
    6. JavaMail API (compat)
      message_rfc822.writeTo
      1. com.sun.mail.handlers.message_rfc822.writeTo(message_rfc822.java:89)
      1 frame
    7. Java RT
      DataHandler.writeTo
      1. javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
      2. javax.activation.DataHandler.writeTo(DataHandler.java:305)
      2 frames
    8. JavaMail API
      MimeMultipart.writeTo
      1. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
      2. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:635)
      3. javax.mail.internet.MimeMultipart.writeTo(MimeMultipart.java:233)
      3 frames
    9. JavaMail API (compat)
      multipart_mixed.writeTo
      1. com.sun.mail.handlers.multipart_mixed.writeTo(multipart_mixed.java:68)
      1 frame
    10. Java RT
      DataHandler.writeTo
      1. javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:849)
      2. javax.activation.DataHandler.writeTo(DataHandler.java:305)
      2 frames
    11. JavaMail API
      MimeMessage.writeTo
      1. javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1089)
      2. javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1527)
      2 frames
    12. JavaMail API (compat)
      SMTPTransport.sendMessage
      1. com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:321)
      1 frame
    13. JavaMail API
      Transport.send
      1. javax.mail.Transport.send0(Transport.java:164)
      2. javax.mail.Transport.send(Transport.java:81)
      2 frames
    14. alt.javax.mail
      TransportImpl.send
      1. alt.javax.mail.TransportImpl.send(TransportImpl.java:18)
      1 frame
    15. com.atlassian.mail
      MailQueueImpl.sendBuffer
      1. com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:138)
      2. com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:47)
      3. com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:55)
      3 frames