My Oracle Support Banner

BYE JavaMail Exception: java.net.SocketTimeoutException: Read timed out (Doc ID 1483709.1)

Last updated on JUNE 29, 2017

Applies to:

Oracle Communications Messaging Server - Version 6.0.0 and later
Information in this document applies to any platform.
***Checked for relevance on 2-Jun-2014***

Symptoms

Customer application writing using the JavaMail API gets the following Java exception:

javax.mail.FolderClosedException: * BYE JavaMail Exception: java.net.SocketTimeoutException: Read timed out
   at com.sun.mail.imap.IMAPFolder.throwClosedException(Unknown Source)
   at com.sun.mail.imap.IMAPFolder.doCommand(Unknown Source)
   at com.sun.mail.imap.IMAPFolder.appendUIDMessages(Unknown Source)
   at com.<customer>.is.ics.sunmailservice.SunMailServiceImpl.copyMessages(Unknown Source)
   at com.<customer>.is.se.core.mail.common.BaseMessageAppender.appendMessage(Unknown Source)
   at com.<customer>.is.se.core.mail.imap.ImapMessageAppender.composeAndAppendMessage(Unknown Source)
   at com.<customer>.is.se.core.mail.ImapMailFeedSynchronizer.execute(Unknown Source)
   at com.<customer>.is.se.core.mail.MailSynchronizer.synchronizeFeed(Unknown Source)
   at com.<customer>.is.se.core.common.Synchronizer.synchronize(Unknown Source)
   at com.<customer>.is.se.processor.EventFeedMessageProcessor.processEventFeedJob(Unknown Source)
   at com.<customer>.is.se.processor.EventFeedMessageProcessor.run(Unknown Source)
   at com.<customer>.is.se.job.acc.dispatcher.AccumulatorExecutor.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:662)

In snoop, we see some connections are receiving the IMAP error "NO Mailbox is busy", but, the snoop also shows the connection is being closed by the connection often before it has had a chance to receive the error.

NOTE: The JavaMail API is not supported as part of the Comms Suite or Messaging Server products.  It is a separate product.

For support of the JavaMail API, see http://www.oracle.com/technetwork/java/javamail/faq/index.html#more

Changes

The timeout specified in the customers application, where it to appends mail to the inbox, has been reduced from 30 seconds to 15 seconds.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.