I have a web application running in cluster mode with a load balancer. It consists of two cats (T1 and T2), addressing only one database. T2 - nfs installed on T1. This is the only problem between both nodes.
I have a java method generating some files. If the request runs on T1, there is no problem, but if the request runs on node 2, I get an exception as follows:
java.io.IOException: Invalid argument
at java.io.FileOutputStream.close0(Native Method)
at java.io.FileOutputStream.close(FileOutputStream.java:279)
The corresponding code is as follows:
for (int i = 0; i < dataFileList.size(); i++) {
outputFileName = outputFolder + fileNameList.get(i);
FileOutputStream fileOut = new FileOutputStream(outputFileName);
fileOut.write(dataFileList.get(i), 0, dataFileList.get(i).length);
fileOut.flush();
fileOut.close();
}
An exception appears in Out.close ()
Any clues?
Louis
source
share