org.ow2.jonas.deployablemonitor.DeployableMonitor.java needs to be improved in the savefileLengths() catch block
In jonas src file --> ... modules/services/deployable-monitor/src/main/java/org/ow2/jonas/deployablemonitor/DeployableMonitor.java; During a deployment issue, in order to make a finest diagnosis, it's necessary to get information (saveFileLengths() method) from the catch block tied to try block which processes getFileSize(file);
This is a proposal which has been successfully used to determine an issue's root cause ... ...
for (File file : files) {
try {
fileLengths.put(file, getFileSize(file));
} catch (Exception e) {
// File cannot be read
// or a sub file is not completed (in case of a directory)
//Additional code
logger.debug("SPECIAL-mess: saveFileLengths ");
logger.debug(e.toString());
}
... ...