Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8215406

Java compiler throws exception on IntelliJ "java.lang.IllegalStateException: endPosTable already set"

    • x86
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      Mac OS Mojave v 10.14.1

      A DESCRIPTION OF THE PROBLEM :
      An exception has occurred in the compiler (1.8.0_181). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
      java.lang.IllegalStateException: endPosTable already set
              at com.sun.tools.javac.util.DiagnosticSource.setEndPosTable(DiagnosticSource.java:136)
              at com.sun.tools.javac.util.Log.setEndPosTable(Log.java:350)
              at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:667)
              at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:950)
              at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:892)
              at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:921)
              at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1187)
              at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
              at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
              at com.sun.tools.javac.main.Main.compile(Main.java:523)
              at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
              at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
              at org.codehaus.plexus.compiler.javac.JavaxToolsCompiler.compileInProcess(JavaxToolsCompiler.java:126)
              at org.codehaus.plexus.compiler.javac.JavacCompiler.performCompile(JavacCompiler.java:174)
              at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:1075)
              at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:168)
              at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
              at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:353)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:198)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
              at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
              at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
              at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
              at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
              at org.apache.maven.cli.MavenCli.execute(MavenCli.java:955)
              at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:290)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:194)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
              at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
              at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
              at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      I enter the follow command

      mvn spring-boot:run -Dspring.profiles.active=local -Dlogging.level.org.apache.kafka=warn

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      For the app to start up without any issues
      ACTUAL -
      I get a Build Failure

      FREQUENCY : always


            pmangal Priyanka Mangal (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: