Question

14
Replies
1413
Views
divyasripadarthy Member since 2013 13 posts
Cognizant Technology Solutions
Posted: May 24, 2016
Last activity: November 28, 2016
Closed

java.lang.IllegalStateException: Folder not open

Hi Team,

I am getting the following exceptions in production environment for one of the email listener.

Caught unexpected exception in listener.

java.lang.IllegalStateException: Folder not open

  at javax.mail.Folder.getMessages(Folder.java:938)

  at javax.mail.Folder.search(Folder.java:1226)

  at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.emailReceive(EmailListener.java:1745)

  at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.oneIteration(EmailListener.java:1191)

  at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.run_(EmailListener.java:1153)

  at com.pega.pegarules.integration.engine.internal.services.listener.ServiceListenerBaseImpl.run(ServiceListenerBaseImpl.java:442)

  at java.lang.Thread.run(Thread.java:722)

Followed by the below exception.

Failed to disconnect

java.lang.IllegalStateException: Folder is not Open

  at com.sun.mail.pop3.POP3Folder.checkOpen(POP3Folder.java:512)

  at com.sun.mail.pop3.POP3Folder.close(POP3Folder.java:227)

  at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.emailDisconnect(EmailListener.java:1708)

  at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.oneIteration(EmailListener.java:1206)

  at com.pega.pegarules.integration.engine.internal.services.email.EmailListener.run_(EmailListener.java:1153)

  at com.pega.pegarules.integration.engine.internal.services.listener.ServiceListenerBaseImpl.run(ServiceListenerBaseImpl.java:442)

  at java.lang.Thread.run(Thread.java:722)

Can someone help me on this to get resolved.

Regards,

Divya Sri Padarthy.

Data Integration
Moderation Team has archived post
Share this page LinkedIn