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

NPE in com.sun.tools.javac.code.Symbol$MethodSymbol.params

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 6u31
    • tools
    • x86
    • windows_7

      FULL PRODUCT VERSION :
      ava -version
      java version "1.6.0_33"
      Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
      Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Mac OS X Lion.

      A DESCRIPTION OF THE PROBLEM :
      This is the same issue reported in 7180349. I am reporting it separately as it was unclear if it was a javac or groovy issue, and that bug is requesting more info, and I am unable to update it.



      REGRESSION. Last worked in version 6u31

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      It is unclear how to recreate this. I am running Sonar via maven on our muti-module app.

      ie., mvn clean sonar:sonar - the error occurs during test compile phase of our webapp.



      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:testCompile (default-testCompile) on project oesp-admin-webapp: Compilation failure
      [ERROR] Failure executing javac, but could not parse the error:
      [ERROR] An exception has occurred in the compiler (1.6.0_33). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
      [ERROR] java.lang.NullPointerException
      [ERROR] at com.sun.tools.javac.code.Symbol$MethodSymbol.params(Symbol.java:1196)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.attachParameterAnnotations(ClassReader.java:1111)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.readMemberAttr(ClassReader.java:871)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.readMemberAttrs(ClassReader.java:1027)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.readMethod(ClassReader.java:1490)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.readClass(ClassReader.java:1586)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.readClassFile(ClassReader.java:1658)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:1845)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1777)
      [ERROR] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:384)
      [ERROR] at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:766)
      [ERROR] at com.sun.tools.javac.jvm.ClassReader.loadClass(ClassReader.java:1951)
      [ERROR] at com.sun.tools.javac.comp.Resolve.loadClass(Resolve.java:844)
      [ERROR] at com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:903)
      [ERROR] at com.sun.tools.javac.comp.Resolve.findType(Resolve.java:959)
      [ERROR] at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:988)
      [ERROR] at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:1164)
      [ERROR] at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:1714)
      [ERROR] at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1547)
      [ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:360)
      [ERROR] at com.sun.tools.javac.comp.Attr.attribType(Attr.java:390)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:607)
      [ERROR] at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:691)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:399)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:410)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:1000)
      [ERROR] at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:967)
      [ERROR] at com.sun.tools.javac.code.Symbol.complete(Symbol.java:384)
      [ERROR] at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:766)
      [ERROR] at com.sun.tools.javac.comp.Enter.complete(Enter.java:464)
      [ERROR] at com.sun.tools.javac.comp.Enter.main(Enter.java:442)
      [ERROR] at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:822)
      [ERROR] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
      [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:353)
      [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:279)
      [ERROR] at com.sun.tools.javac.main.Main.compile(Main.java:270)
      [ERROR] at com.sun.tools.javac.Main.compile(Main.java:87)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
      [ERROR] at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:554)
      [ERROR] at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:161)
      [ERROR] at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:605)
      [ERROR] at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:161)
      [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      [ERROR] at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:85)
      [ERROR] at org.sonar.maven3.Maven3PluginExecutor.concreteExecute(Maven3PluginExecutor.java:48)
      [ERROR] at org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginExecutor.java:46)
      [ERROR] at org.sonar.batch.AbstractMavenPluginExecutor.execute(AbstractMavenPluginExecutor.java:37)
      [ERROR] at org.sonar.batch.phases.InitializersExecutor.executeMavenPlugin(InitializersExecutor.java:67)
      [ERROR] at org.sonar.batch.phases.InitializersExecutor.execute(InitializersExecutor.java:54)
      [ERROR] at org.sonar.batch.phases.Phases.execute(Phases.java:77)
      [ERROR] at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:59)
      [ERROR] at org.sonar.batch.Batch.analyzeModule(Batch.java:164)
      [ERROR] at org.sonar.batch.Batch.analyzeModule(Batch.java:155)
      [ERROR] at org.sonar.batch.Batch.analyzeModule(Batch.java:155)
      [ERROR] at org.sonar.batch.Batch.analyzeModules(Batch.java:82)
      [ERROR] at org.sonar.batch.Batch.execute(Batch.java:62)
      [ERROR] at org.sonar.maven3.SonarMojo.executeBatch(SonarMojo.java:148)
      [ERROR] at org.sonar.maven3.SonarMojo.execute(SonarMojo.java:137)
      [ERROR] at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:113)
      [ERROR] at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:65)
      [ERROR] at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:90)
      [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
      [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
      [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
      [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
      [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
      [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
      [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
      [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
      [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      [ERROR] at java.lang.reflect.Method.invoke(Method.java:597)
      [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
      [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
      [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
      [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
      [ERROR] -> [Help 1]

      REPRODUCIBILITY :
      This bug can be reproduced always.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: