SPARK-2229: FileAppender throw an llegalArgumentException in jdk6