Issue: Error 2 File Not Found when Opening Ephesoft Transact UI
Affects: Ephesoft 4.x versions
Users may have issues opening the Ephesoft Transact UI after successfully starting the Ephesoft Transact UI and will see a 404 Error like below,
Examining the Ephesoft logs may show an Error 2 written to the log like below:
188.8.131.52 Windows 10 2018-06-14T10:05:42,781 ERROR localhost-startStop-1 org.springframework.web.context.ContextLoader – Context initialization failed
org.springframework.context.ApplicationContextException: Failed to start bean ‘folderMonitorService’; nested exception is com.ephesoft.dcma.core.common.DCMABusinessException: Error 2 : The system cannot find the file specified.
184.108.40.206 Windows 10 2018-06-14T10:05:42,687 ERROR localhost-startStop-1 com.ephesoft.dcma.monitor.service.FolderMonitorServiceImpl – Error 2 : The system cannot find the file specified. : StandardTestBC1
This error is usually seen during an upgrade or after some change to a Batch Class drop folder. The key piece in the error is to find the name(s) of the file(s) that cannot be found. In this example, it looks like it is having trouble associating an Ephesoft batch class with the folder name ‘StandardTestBC1’
To troubleshoot, open the Ephesoft database and examine the batch_class table. In this example, when we take a look at the Batch Classes, we can notice we have a BC and drop folder location for StandardTestBC but not StandardTestBC1.
Check to make sure the file path for StandardTestBC actually exists in your Windows folder structure and compare how that folder path matches the SQL entry for the ‘unc_folder’ location
If the Windows folder path is correct, simply run an UPDATE statement on the batch_class table in Ephesoft for the incorrect unc_folder paths and make sure this folder path matches the existing Windows folder path. If the Windows folder path is missing or incorrect, fix that in Windows as well. For this example, we would want to change the ‘unc_folder’ for BC5 and make sure it points to C:\Ephesoft\SharedFolders\StandardTestBC1