Examples of InvalidInputException


Examples of org.apache.hadoop.mapred.InvalidInputException

      if (!fs.exists(p)) {
        rslt.add(new IOException("Input source " + p + " does not exist."));
      }
    }
    if (!rslt.isEmpty()) {
      throw new InvalidInputException(rslt);
    }

    //Initialize the mapper
    try {
      setup(conf, job, srcPaths, destPath, logPath, flags);
View Full Code Here

Examples of org.apache.hadoop.mapred.InvalidInputException

      if (!fs.exists(p)) {
        rslt.add(new IOException("Input source " + p + " does not exist."));
      }
    }
    if (!rslt.isEmpty()) {
      throw new InvalidInputException(rslt);
    }

    //Initialize the mapper
    try {
      setup(conf, job, srcPaths, destPath, logPath, flags);
View Full Code Here

Examples of org.apache.hadoop.mapred.InvalidInputException

      if (!fs.exists(p)) {
        rslt.add(new IOException("Input source " + p + " does not exist."));
      }
    }
    if (!rslt.isEmpty()) {
      throw new InvalidInputException(rslt);
    }
  }
View Full Code Here

Examples of org.apache.hadoop.mapred.InvalidInputException

        }
      }
    }

    if (!errors.isEmpty()) {
      throw new InvalidInputException(errors);
    }
    LOG.info("Total input paths to process : " + result.size());
    return result.toArray(new FileStatus[result.size()]);
  }
View Full Code Here

Examples of org.apache.hadoop.mapred.InvalidInputException

      }
      fileNumbers = new Integer[fileNumberList.size()];
      fileNumberList.toArray(fileNumbers);

      if (!errors.isEmpty()) {
        throw new InvalidInputException(errors);
      }
      LOG.info("Total input paths to process : " + result.size());
      return result.toArray(new FileStatus[result.size()]);
    }
View Full Code Here

Examples of org.apache.hadoop.mapred.InvalidInputException

      } else {
        rslt.add(new IOException("Input source " + p + " does not exist."));
      }
    }
    if (!rslt.isEmpty()) {
      throw new InvalidInputException(rslt);
    }
    srcPaths.clear();
    srcPaths.addAll(unglobbed);
  }
View Full Code Here

Examples of org.apache.hadoop.mapred.InvalidInputException

        }
      }
    }

    if (!errors.isEmpty()) {
      throw new InvalidInputException(errors);
    }
    LOG.info("Total input paths to process : " + result.size());
    return result.toArray(new FileStatus[result.size()]);
  }
View Full Code Here

Examples of org.apache.hadoop.mapreduce.lib.input.InvalidInputException

      }
      fileNumbers = new Integer[fileNumberList.size()];
      fileNumberList.toArray(fileNumbers);

      if (!errors.isEmpty()) {
        throw new InvalidInputException(errors);
      }
      LOG.info("Total input paths to process : " + result.size());
      return result;
    }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.compiler.InvalidInputException

        return syntaxRecoverArgumentType(receiver, arguments, argument);
      }
    }

    // Something wrong happened => Invalid input
    throw new InvalidInputException();
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.core.compiler.InvalidInputException

  final Object sourceVersion = this.options.get(CompilerOptions.OPTION_Source);
  final Object compliance = this.options.get(CompilerOptions.OPTION_Compliance);
  if (sourceVersion.equals(CompilerOptions.VERSION_1_7)
      && CompilerOptions.versionToJdkLevel(compliance) < ClassFileConstants.JDK1_7) {
    // compliance must be 1.7 if source is 1.7
    throw new InvalidInputException(this.bind("configure.incompatibleComplianceForSource", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_7)); //$NON-NLS-1$
  } else if (sourceVersion.equals(CompilerOptions.VERSION_1_6)
      && CompilerOptions.versionToJdkLevel(compliance) < ClassFileConstants.JDK1_6) {
    // compliance must be 1.6 if source is 1.6
    throw new InvalidInputException(this.bind("configure.incompatibleComplianceForSource", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_6)); //$NON-NLS-1$
  } else if (sourceVersion.equals(CompilerOptions.VERSION_1_5)
      && CompilerOptions.versionToJdkLevel(compliance) < ClassFileConstants.JDK1_5) {
    // compliance must be 1.5 if source is 1.5
    throw new InvalidInputException(this.bind("configure.incompatibleComplianceForSource", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_5)); //$NON-NLS-1$
  } else if (sourceVersion.equals(CompilerOptions.VERSION_1_4)
      && CompilerOptions.versionToJdkLevel(compliance) < ClassFileConstants.JDK1_4) {
    // compliance must be 1.4 if source is 1.4
    throw new InvalidInputException(this.bind("configure.incompatibleComplianceForSource", (String)this.options.get(CompilerOptions.OPTION_Compliance), CompilerOptions.VERSION_1_4)); //$NON-NLS-1$
  }

  // check and set compliance/source/target compatibilities
  if (this.didSpecifyTarget) {
    final Object targetVersion = this.options.get(CompilerOptions.OPTION_TargetPlatform);
    // tolerate jsr14 target
    if (CompilerOptions.VERSION_JSR14.equals(targetVersion)) {
      // expecting source >= 1.5
      if (CompilerOptions.versionToJdkLevel(sourceVersion) < ClassFileConstants.JDK1_5) {
        throw new InvalidInputException(this.bind("configure.incompatibleTargetForGenericSource", (String) targetVersion, (String) sourceVersion)); //$NON-NLS-1$
      }
    } else {
      // target must be 1.7 if source is 1.7
      if (CompilerOptions.versionToJdkLevel(sourceVersion) >= ClassFileConstants.JDK1_7
          && CompilerOptions.versionToJdkLevel(targetVersion) < ClassFileConstants.JDK1_7){
        throw new InvalidInputException(this.bind("configure.incompatibleTargetForSource", (String) targetVersion, CompilerOptions.VERSION_1_7)); //$NON-NLS-1$
      }
      // target must be 1.6 if source is 1.6
      if (CompilerOptions.versionToJdkLevel(sourceVersion) >= ClassFileConstants.JDK1_6
          && CompilerOptions.versionToJdkLevel(targetVersion) < ClassFileConstants.JDK1_6){
        throw new InvalidInputException(this.bind("configure.incompatibleTargetForSource", (String) targetVersion, CompilerOptions.VERSION_1_6)); //$NON-NLS-1$
      }
      // target must be 1.5 if source is 1.5
      if (CompilerOptions.versionToJdkLevel(sourceVersion) >= ClassFileConstants.JDK1_5
          && CompilerOptions.versionToJdkLevel(targetVersion) < ClassFileConstants.JDK1_5){
        throw new InvalidInputException(this.bind("configure.incompatibleTargetForSource", (String) targetVersion, CompilerOptions.VERSION_1_5)); //$NON-NLS-1$
      }
      // target must be 1.4 if source is 1.4
      if (CompilerOptions.versionToJdkLevel(sourceVersion) >= ClassFileConstants.JDK1_4
          && CompilerOptions.versionToJdkLevel(targetVersion) < ClassFileConstants.JDK1_4){
        throw new InvalidInputException(this.bind("configure.incompatibleTargetForSource", (String) targetVersion, CompilerOptions.VERSION_1_4)); //$NON-NLS-1$
      }
      // target cannot be greater than compliance level
      if (CompilerOptions.versionToJdkLevel(compliance) < CompilerOptions.versionToJdkLevel(targetVersion)){
        throw new InvalidInputException(this.bind("configure.incompatibleComplianceForTarget", (String)this.options.get(CompilerOptions.OPTION_Compliance), (String) targetVersion)); //$NON-NLS-1$
      }
    }
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.