org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compileJava'.

GitHub | jbduncan | 4 months ago
  1. 0

    FULL PRODUCT VERSION : java version "1.9.0-ea" Java(TM) SE Runtime Environment (build 1.9.0-ea-b68) Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b68, mixed mode) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : with classpath with double quotes as an environment in windows commandline environment, javac fails. When using java8 or java9 with classpath as a parameter it works When not using double quotes it works REGRESSION. Last worked in version 8u5 ADDITIONAL REGRESSION INFORMATION: javac full version "1.9.0-ea-b68" --> fails javac full version "1.8.0_05-b13" --> works javac full version "1.6.0_37-b06" --> works STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : javac -cp . X9.java jar -cvf X9.jar X9.class set CLASSPATH="X9.jar;." javac J9.java EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - no error ACTUAL - javac return InvalidPathException ERROR MESSAGES/STACK TRACES THAT OCCUR : An exception has occurred in the compiler (1.9.0-ea). Please file a bug at the Java Bug Database (http://bugreport.java.com/bugreport/) after checking the database for duplicates. Include your program and the following diagnostic in your report. Thank you. java.nio.file.InvalidPathException: Illegal char <"> at index 0: "X9.jar at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) at java.nio.file.Paths.get(Paths.java:84) at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:156) at com.sun.tools.javac.file.Locations.access$300(Locations.java:88) at com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:225) at com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:231) at com.sun.tools.javac.file.Locations$ClassPathLocationHandler.computePath(Locations.java:501) at com.sun.tools.javac.file.Locations$SimpleLocationHandler.setLocation(Locations.java:448) at com.sun.tools.javac.file.Locations$ClassPathLocationHandler.lazy(Locations.java:513) at com.sun.tools.javac.file.Locations$ClassPathLocationHandler.getLocation(Locations.java:477) at com.sun.tools.javac.file.Locations.getLocation(Locations.java:749) at com.sun.tools.javac.file.JavacFileManager.getLocation(JavacFileManager.java:917) at com.sun.tools.javac.file.JavacFileManager.getClassLoader(JavacFileManager.java:643) at com.sun.tools.javac.processing.JavacProcessingEnvironment.initProcessorClassLoader(JavacProcessingEnvironment.java:236) at com.sun.tools.javac.processing.JavacProcessingEnvironment.<init>(JavacProcessingEnvironment.java:210) at com.sun.tools.javac.processing.JavacProcessingEnvironment.instance(JavacProcessingEnvironment.java:170) at com.sun.tools.javac.main.JavaCompiler.initProcessAnnotations(JavaCompiler.java:1018) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:829) at com.sun.tools.javac.main.Main.compile(Main.java:253) at com.sun.tools.javac.main.Main.compile(Main.java:141) at com.sun.tools.javac.Main.compile(Main.java:56) at com.sun.tools.javac.Main.main(Main.java:42) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- J9.java: public class J9 { public static void main(String argv[]) { System.out.println("Hello world"); } } X9.java: public class X9 {} ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : javac -classpath %CLASSPATH% J9.java

    JDK Bug System | 1 year ago | Webbug Group
    java.nio.file.InvalidPathException: Illegal char <"> at index 0: "X9.jar
  2. 0

    FULL PRODUCT VERSION : java version "1.9.0-ea" Java(TM) SE Runtime Environment (build 1.9.0-ea-b68) Java HotSpot(TM) 64-Bit Server VM (build 1.9.0-ea-b68, mixed mode) ADDITIONAL OS VERSION INFORMATION : Microsoft Windows [Version 6.1.7601] A DESCRIPTION OF THE PROBLEM : with classpath with double quotes as an environment in windows commandline environment, javac fails. When using java8 or java9 with classpath as a parameter it works When not using double quotes it works REGRESSION. Last worked in version 8u5 ADDITIONAL REGRESSION INFORMATION: javac full version "1.9.0-ea-b68" --> fails javac full version "1.8.0_05-b13" --> works javac full version "1.6.0_37-b06" --> works STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : javac -cp . X9.java jar -cvf X9.jar X9.class set CLASSPATH="X9.jar;." javac J9.java EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - no error ACTUAL - javac return InvalidPathException ERROR MESSAGES/STACK TRACES THAT OCCUR : An exception has occurred in the compiler (1.9.0-ea). Please file a bug at the Java Bug Database (http://bugreport.java.com/bugreport/) after checking the database for duplicates. Include your program and the following diagnostic in your report. Thank you. java.nio.file.InvalidPathException: Illegal char <"> at index 0: "X9.jar at sun.nio.fs.WindowsPathParser.normalize(WindowsPathParser.java:182) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:153) at sun.nio.fs.WindowsPathParser.parse(WindowsPathParser.java:77) at sun.nio.fs.WindowsPath.parse(WindowsPath.java:94) at sun.nio.fs.WindowsFileSystem.getPath(WindowsFileSystem.java:255) at java.nio.file.Paths.get(Paths.java:84) at com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:156) at com.sun.tools.javac.file.Locations.access$300(Locations.java:88) at com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:225) at com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:231) at com.sun.tools.javac.file.Locations$ClassPathLocationHandler.computePath(Locations.java:501) at com.sun.tools.javac.file.Locations$SimpleLocationHandler.setLocation(Locations.java:448) at com.sun.tools.javac.file.Locations$ClassPathLocationHandler.lazy(Locations.java:513) at com.sun.tools.javac.file.Locations$ClassPathLocationHandler.getLocation(Locations.java:477) at com.sun.tools.javac.file.Locations.getLocation(Locations.java:749) at com.sun.tools.javac.file.JavacFileManager.getLocation(JavacFileManager.java:917) at com.sun.tools.javac.file.JavacFileManager.getClassLoader(JavacFileManager.java:643) at com.sun.tools.javac.processing.JavacProcessingEnvironment.initProcessorClassLoader(JavacProcessingEnvironment.java:236) at com.sun.tools.javac.processing.JavacProcessingEnvironment.<init>(JavacProcessingEnvironment.java:210) at com.sun.tools.javac.processing.JavacProcessingEnvironment.instance(JavacProcessingEnvironment.java:170) at com.sun.tools.javac.main.JavaCompiler.initProcessAnnotations(JavaCompiler.java:1018) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:829) at com.sun.tools.javac.main.Main.compile(Main.java:253) at com.sun.tools.javac.main.Main.compile(Main.java:141) at com.sun.tools.javac.Main.compile(Main.java:56) at com.sun.tools.javac.Main.main(Main.java:42) REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- J9.java: public class J9 { public static void main(String argv[]) { System.out.println("Hello world"); } } X9.java: public class X9 {} ---------- END SOURCE ---------- CUSTOMER SUBMITTED WORKAROUND : javac -classpath %CLASSPATH% J9.java

    JDK Bug System | 1 year ago | Webbug Group
    java.nio.file.InvalidPathException: Illegal char <"> at index 0: "X9.jar
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Jetty fails to startup on windows - InvalidPathException

    Eclipse Bugzilla | 3 years ago | krzysztof.pankowski
    java.nio.file.InvalidPathException: Illegal char <*> at index 0: *.ini
  5. 0

    Asterisks in Java Path

    Stack Overflow | 2 years ago | Leimodnunewra
    java.nio.file.InvalidPathException: Illegal char <*> at index 1: 0*b/test/1

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.nio.file.InvalidPathException

      Illegal char <:> at index 0: :

      at com.sun.tools.javac.file.Locations.getPathEntries()
    2. Java Tools
      Main.compile
      1. com.sun.tools.javac.file.Locations.getPathEntries(Locations.java:170)
      2. com.sun.tools.javac.file.Locations.access$300(Locations.java:88)
      3. com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:239)
      4. com.sun.tools.javac.file.Locations$SearchPath.addFiles(Locations.java:245)
      5. com.sun.tools.javac.file.Locations$SimpleLocationHandler.handleOption(Locations.java:449)
      6. com.sun.tools.javac.file.Locations.handleOption(Locations.java:758)
      7. com.sun.tools.javac.file.BaseFileManager.handleOption(BaseFileManager.java:215)
      8. com.sun.tools.javac.file.BaseFileManager.handleOptions(BaseFileManager.java:226)
      9. com.sun.tools.javac.main.Main.compile(Main.java:207)
      9 frames
    3. @BugPattern annotation
      ErrorProneCompiler.compile
      1. com.google.errorprone.BaseErrorProneCompiler.run(BaseErrorProneCompiler.java:190)
      2. com.google.errorprone.BaseErrorProneCompiler.run(BaseErrorProneCompiler.java:101)
      3. com.google.errorprone.ErrorProneCompiler.run(ErrorProneCompiler.java:131)
      4. com.google.errorprone.ErrorProneCompiler.compile(ErrorProneCompiler.java:73)
      4 frames
    4. net.ltgt.gradle
      ErrorProneCompiler.execute
      1. net.ltgt.gradle.errorprone.ErrorProneCompiler.execute(ErrorProneCompiler.java:57)
      2. net.ltgt.gradle.errorprone.ErrorProneCompiler.execute(ErrorProneCompiler.java:25)
      2 frames
    5. org.gradle.api
      JavaCompile.compile
      1. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:104)
      2. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:53)
      3. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
      4. org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:35)
      5. org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
      6. org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:163)
      7. org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:145)
      8. org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:93)
      8 frames
    6. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame
    7. Gradle Core
      DefaultGradleLauncher.run
      1. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:245)
      2. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
      3. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:232)
      4. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
      5. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
      6. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
      7. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
      8. org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
      9. org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66)
      10. org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
      11. org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
      12. org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
      13. org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
      14. org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
      15. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
      16. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
      17. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
      18. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
      19. org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
      20. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
      21. org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
      22. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
      23. org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
      24. org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
      25. org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
      26. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
      27. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
      28. org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:153)
      29. org.gradle.internal.Factories$1.create(Factories.java:22)
      30. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
      31. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)
      32. org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:150)
      33. org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
      34. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)
      35. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)
      36. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
      37. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)
      38. org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)
      39. org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)
      39 frames
    8. Gradle Launcher
      RunBuildAction.run
      1. org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99)
      2. org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
      3. org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
      4. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:48)
      5. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
      6. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)
      7. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)
      8. org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:51)
      9. org.gradle.launcher.exec.DaemonUsageSuggestingBuildActionExecuter.execute(DaemonUsageSuggestingBuildActionExecuter.java:28)
      10. org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:43)
      10 frames
    9. Gradle Core
      Actions$RunnableActionAdapter.execute
      1. org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:173)
      1 frame
    10. Gradle Launcher
      GradleMain.main
      1. org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:239)
      2. org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:212)
      3. org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35)
      4. org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24)
      5. org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33)
      6. org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22)
      7. org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:205)
      8. org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:169)
      9. org.gradle.launcher.Main.doAction(Main.java:33)
      10. org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
      11. org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:55)
      12. org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:36)
      13. org.gradle.launcher.GradleMain.main(GradleMain.java:23)
      13 frames
    11. org.gradle.wrapper
      GradleWrapperMain.main
      1. org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
      2. org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
      3. org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
      3 frames