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

NullPointerException inside the javac compiler during build.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P5
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6
    • Fix Version/s: 7
    • Component/s: tools
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0-beta2"
      Java(TM) SE Runtime Environment (build 1.6.0-beta2-b86)
      Java HotSpot(TM) Client VM (build 1.6.0-beta2-b86, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      I was compiling the NetBeans server plugin for WebLogic 9 and received a NullPointerException inside the javac compiler.


      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      An exception has occurred in the compiler (1.6.0-beta2). 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.
      java.lang.NullPointerException
              at com.sun.tools.javac.util.Name.getBytes(Name.java:171)
              at com.sun.tools.javac.util.Name.append(Name.java:304)
              at com.sun.tools.javac.code.Symbol$TypeSymbol.formFlatName(Symbol.java:510)
              at com.sun.tools.javac.jvm.ClassReader.enterClass(ClassReader.java:1673)
              at com.sun.tools.javac.jvm.ClassReader.includeClassFile(ClassReader.java:1955)
              at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2056)
              at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2009)
              at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1725)
              at com.sun.tools.javac.code.Symbol.complete(Symbol.java:383)
              at com.sun.tools.javac.code.Symbol$PackageSymbol.members(Symbol.java:594)
              at com.sun.tools.javac.comp.MemberEnter.importAll(MemberEnter.java:119)
              at com.sun.tools.javac.comp.MemberEnter.visitTopLevel(MemberEnter.java:509)
              at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:445)
              at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:387)
              at com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:797)
              at com.sun.tools.javac.code.Symbol.complete(Symbol.java:383)
              at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:756)
              at com.sun.tools.javac.comp.Enter.complete(Enter.java:430)
              at com.sun.tools.javac.comp.Enter.main(Enter.java:408)
              at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:752)
              at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:659)
              at com.sun.tools.javac.main.Main.compile(Main.java:327)
              at com.sun.tools.javac.main.Main.compile(Main.java:253)
              at com.sun.tools.javac.main.Main.compile(Main.java:244)
              at com.sun.tools.javac.Main.compile(Main.java:69)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:589)
              at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
              at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
              at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
              at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
              at org.apache.tools.ant.Task.perform(Task.java:364)
              at org.apache.tools.ant.Target.execute(Target.java:341)
              at org.apache.tools.ant.Target.performTasks(Target.java:369)
              at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
              at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
              at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
              at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
              at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:240)
              at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:293)
              at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:131)


      REPRODUCIBILITY :
      This bug can be reproduced rarely.

        Attachments

          Activity

            People

            • Assignee:
              jjg Jonathan Gibbons
              Reporter:
              ndcosta Nelson Dcosta
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: