How could this exception be in swedish?
HelloRight now I am working on an issue in our production environment.
What I got is an error log message, see snippet below.
...
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: \\path\to\a\file (Filens storlek överskrider den tillåtna gränsen och filen kan därför inte sparas)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.a_swedish_company.util.UploadDelegate.uploadFileAsInputStream(UploadDelegate.java:219)
... 45 more
I have a real difficult to figure out how this could have happend.
I couple of thoughts:
1) The error message is in swedish, which is strange. In english it would say "The file size exceeds the allowable limit and the file can therefore not be saved".
2) The exception that is thrown is a FileNotFoundException, but according to the message the file is too big and must exist.
3) The exception seems to be thrown from some "Native Method", could that mean that it is araised from outside of the JVM, in some OS-code? (If the OS then is set to swedish, that could explain why the error message is in swedish)
4) Or is some localization executed in some how?
5) My first thoughts was to find some code at row 219 that catched some other exception and throw along a new FileNotFoundException with the swedish error message in our class com.a_swedish_company.util.UploadDelegate, but no. Given import com.healthmarketscience.rmiio.*, at row 219 we got this code:
SerializableInputStream stream = new SerializableInputStream(new SimpleRemoteInputStream(new BufferedInputStream(new FileInputStream(file)), RemoteInputStreamServer.DUMMY_MONITOR, getChunkSizeRemoteStream()));
What are your thoughts about this exception? How could it be in swedish when we do not have it in our own code?
Any comments are most welcome!
Best regards
Fredrik