I was runnning a jar file in a remote server when this error occurred:
java.io.FileNotFoundException: \\remoteServer2\foo\bazz\bar\myFile.pdf (The system cannot contact a domain controller to service the authentication request. Please try again later)
Here is my code:
File file = new File("\\remoteServer2\foo\bazz\bar");
boolean isSuccess = file.mkdirs();
filePath = file + "myFile.pdf";
JasperExportManager.exportReportToPdfFile(foofoo, filePath);
I'm guessing it could be that the remote server where the jar file was ran has no access to remoteServer2. I noticed that the file path above that was supposed to be created by the program was not created. The boolean variable returns false as its value.
I tried replicating the error in my environment but I failed to do so. I almost reproduce the error mentioned above except the message inside the parenthesis was "The network path was not found".
Maybe someone can help me solve the problem I'm facing right now. Or at least help me to reproduce the error in my environment to make it easier for me to solve the problem.
Any help would be appreciated.