Alexander Veit created HADOOP-9595: -------------------------------------- Summary: Error when error message should be printed to stderr Key: HADOOP-9595 URL: https://issues.apache.org/jira/browse/HADOOP-9595 Project: Hadoop Common Issue Type: Bug Components: bin Affects Versions: 1.2.0 Reporter: Alexander Veit
RunJar contains the lines {code} if (!file.exists() || !file.isFile()) { System.err.println("Not a valid JAR: " + file.getCanonicalPath()); System.exit(-1); } {code} This code fails with {quote} Exception in thread "main" java.io.IOException: Invalid argument at java.io.WinNTFileSystem.canonicalize0(Native Method) at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:414) at java.io.File.getCanonicalPath(File.java:589) at org.apache.hadoop.util.RunJar.main(RunJar.java:85) {quote} A possible fix is {code} if (!file.exists() || !file.isFile()) { System.err.println("Not a valid JAR: " + file); System.exit(-1); } {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira