KB00021305: Email Import impacted and not executing any more

Applies to : v4.1.2.1

Issue Description:

There are few issue observed where we see email import getting impacted due to the below exception message: Windows Server 2008 R2 2018-02-10 23:25:08,000 ERROR org.springframework.scheduling.quartz.SchedulerFactoryBean#12_Worker-7 com.ephesoft.dcma.mail.service.MailReceiverServiceImpl – Not able to process the mail reading from configuration :


Root cause:

One of the cause identified for such issues is a file extension changed manually. For example: PNG file in attachment which originally is a JPEG file. Due to mismatch in file extension, open office is throwing a dialog box exception “Unknown image format”. And till this dialog box is not closed causing the email import thread got stuck.


LibreOffice provides a flag “headless” which prevents user interaction. This will prevent the thread from getting stuck in case of above error. During processing of the email body/attachments, in case of an exception, retry attempts are made and then the exception will be logged along with a notification email to the configured person.

To apply this fix please follow below steps:

  1. Stop Ephesoft server.
  2. Go to [Ephesoft_home]\Application\WEB-INF\classes\META-INF\dcma-open-office directory.
  3. Take backup of “open-office.properties” file.
  4. Update below property in “open-office.properties” file

#-# soffice start command for windows.
openoffice.startCommandForWindows=cmd /c start soffice.exe -invisible -headless -accept=socket,host=localhost,port=8100;urp;

“headless” mode is added to the command.

5. Start Ephesoft server.