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

NullPointerException in Flow.java during compile

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8u60
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_8

      Backports

        Description

        FULL PRODUCT VERSION :
        $ java -version
        java version "1.8.0_60"
        Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
        Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

        ADDITIONAL OS VERSION INFORMATION :
        Microsoft Windows [Version 10.0.10240]

        A DESCRIPTION OF THE PROBLEM :
        [INFO] --- jaxb2-maven-plugin:2.2:schemagen (schemagen) @ selectschool-model ---
        [WARNING] Configured encoding [UTF-8] differs from encoding given in system property 'file.encoding' [Cp1252]
        [WARNING] Configured encoding [UTF-8] differs from encoding given in system property 'file.encoding' [Cp1252]
        An exception has occurred in the compiler (1.8.0_60). 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.lang.NullPointerException
                at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitNewClass(Flow.java:1245)
                at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1516)
                at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
                at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404)
                at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
                at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitApply(Flow.java:1236)
                at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1465)
                at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
                at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404)
                at com.sun.tools.javac.tree.TreeScanner.visitExec(TreeScanner.java:175)
                at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1296)
                at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
                at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404)
                at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
                at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitBlock(Flow.java:999)
                at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:909)
                at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
                at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404)
                at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitMethodDef(Flow.java:966)
                at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:778)
                at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
                at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404)
                at com.sun.tools.javac.comp.Flow$FlowAnalyzer.visitClassDef(Flow.java:929)
                at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:693)
                at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
                at com.sun.tools.javac.comp.Flow$BaseAnalyzer.scan(Flow.java:404)
                at com.sun.tools.javac.comp.Flow$FlowAnalyzer.analyzeTree(Flow.java:1329)
                at com.sun.tools.javac.comp.Flow$FlowAnalyzer.analyzeTree(Flow.java:1319)
                at com.sun.tools.javac.comp.Flow.analyzeTree(Flow.java:212)
                at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1327)
                at com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1296)
                at com.sun.tools.javac.main.JavaCompiler.compile2(JavaCompiler.java:901)
                at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:860)
                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 com.sun.tools.jxc.SchemaGenerator$Runner.compile(SchemaGenerator.java:261)
                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:497)
                at com.sun.tools.jxc.SchemaGenerator.run(SchemaGenerator.java:166)
                at org.codehaus.mojo.jaxb2.schemageneration.AbstractXsdGeneratorMojo.performExecution(AbstractXsdGeneratorMojo.java:370)
                at org.codehaus.mojo.jaxb2.AbstractJaxbMojo.execute(AbstractJaxbMojo.java:257)
                at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
                at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
                at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
                at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
                at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
                at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
                at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
                at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
                at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
                at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
                at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
                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:497)
                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)


        REPRODUCIBILITY :
        This bug can be reproduced always.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  fmatte Fairoz Matte
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: