Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

E-Mail Receiver QPAC: javax.mail.FolderClosedException


Not applicable

Recently the EmailReceiver QPAC refuses to get E-Mails. I configured it using IMAP. But lately, it sporadically refuses to get new messages and throws a
javax.mail.FolderClosedException as posted below.

ERROR [com.adobe.workflow.AWS] stalling action-instance: 3873 with message: javax.mail.FolderClosedException: * BYE Connection down

at com.sun.mail.imap.IMAPMessage.setFlags(

at javax.mail.Message.setFlag(

at com.adobe.workflow.qpac.emailreceiver.MessageWrapper.setDeletedFlag(

at com.adobe.workflow.qpac.emailreceiver.EmailReceiverService.processEmail(

at com.adobe.workflow.qpac.emailreceiver.EmailReceiverService.runTask(


at com.adobe.workflow.engine.PEUtil.executeAction(

The JavaDoc is pretty weird:

This exception is thrown when a method is invoked on a Messaging object and the Folder that owns that object has died due to some reason.

What does it mean
a folder has died? Is there a bug with the EmailReceiver, which
kills folders, after getting messages? 🙂

2 Replies


Level 9
Pretty weird.

It looks like the connection to the mailbox might have closed while you were busy processing the message.

Are you:

- downloading very large message

- do you have a large number of messages in that folder

- are you connecting through a proxy server or something that might be terminating the connection

- are you using an unreliable network connection?

Any of the above might cause this problem.

Good luck...



Not applicable
Well, the message queue is 5 messages long, each about 2.5 MBytes.

I'm furher investigating the issue...