hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Veit (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-9595) Error when error message should be printed to stderr
Date Thu, 23 May 2013 22:58:20 GMT
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

  if (!file.exists() || !file.isFile()) {
    System.err.println("Not a valid JAR: " + file.getCanonicalPath());

This code fails with

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)

A possible fix is

  if (!file.exists() || !file.isFile()) {
    System.err.println("Not a valid JAR: " + file);

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

View raw message