There are few issue observed where we see email import getting impacted due to the below exception message:
22.214.171.124 Windows Server 2008 R2 2018-02-10 23:25:08,000 ERROR org.springframework.
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:
- Stop Ephesoft server.
- Go to [Ephesoft_home]\Application\WEB-INF\classes\META-INF\dcma-open-office directory.
- Take backup of “open-office.properties” file.
- 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.