Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3200

Netbeans broke with NPE, needs restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 11.1
    • None
    • java - Source
    • None

    Description

      Caused by regenerating a file on disk - NetBeans racing to reload the file against the (external) code-generator? Anyway, it broke NetBeans fatally, and needs a restart:

      Caused: java.lang.NullPointerException
      at com.sun.tools.javac.tree.TreeInfo.isModuleInfo(TreeInfo.java:1241)
      at org.netbeans.lib.nbjavac.services.NBEnter.visitTopLevel(NBEnter.java:60)
      at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:537)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:328)
      at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:343)
      at com.sun.tools.javac.comp.Enter.complete(Enter.java:813)
      at com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:878)
      at com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:827)
      at com.sun.tools.javac.main.JavaCompiler.lambda$new$0(JavaCompiler.java:362)
      at com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:384)
      at com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:300)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:645)
      at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1352)
      at com.sun.tools.javac.code.Type$ClassType.complete(Type.java:1146)
      at com.sun.tools.javac.code.Type$ClassType.getTypeArguments(Type.java:1067)
      at com.sun.tools.javac.code.Type$ClassType.isErroneous(Type.java:1102)
      at com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:2245)
      at com.sun.tools.javac.comp.Resolve.findType(Resolve.java:2324)
      at com.sun.tools.javac.comp.Resolve.findIdentInternal(Resolve.java:2357)
      at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:2343)
      at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:2604)
      at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:3924)
      at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2329)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:672)
      at com.sun.tools.javac.comp.Attr.attribType(Attr.java:742)
      at com.sun.tools.javac.comp.Attr.attribType(Attr.java:735)
      at com.sun.tools.javac.comp.Attr.attribBase(Attr.java:907)
      at com.sun.tools.javac.comp.TypeEnter$AbstractHeaderPhase.attribSuperTypes(TypeEnter.java:689)
      at com.sun.tools.javac.comp.TypeEnter$HierarchyPhase.runPhase(TypeEnter.java:762)
      at com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:298)
      at com.sun.tools.javac.comp.TypeEnter$HierarchyPhase.complete(TypeEnter.java:805)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:645)
      at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1352)
      at com.sun.tools.javac.comp.TypeEnter$HierarchyPhase.doCompleteEnvs(TypeEnter.java:750)
      at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:267)
      at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:282)
      at com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:214)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:645)
      at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1352)
      at com.sun.tools.javac.comp.Enter.complete(Enter.java:820)
      at com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:878)
      at com.sun.tools.javac.main.JavaCompiler.readSourceFile(JavaCompiler.java:827)
      at com.sun.tools.javac.main.JavaCompiler.lambda$new$0(JavaCompiler.java:362)
      at com.sun.tools.javac.code.ClassFinder.fillIn(ClassFinder.java:384)
      at com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:300)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:645)
      at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1352)
      at com.sun.tools.javac.code.Type$ClassType.complete(Type.java:1146)
      at com.sun.tools.javac.code.Type$ClassType.getTypeArguments(Type.java:1067)
      at com.sun.tools.javac.code.Type$ClassType.isErroneous(Type.java:1102)
      at com.sun.tools.javac.comp.Resolve.findGlobalType(Resolve.java:2245)
      at com.sun.tools.javac.comp.Resolve.findType(Resolve.java:2324)
      at com.sun.tools.javac.comp.Resolve.findIdentInternal(Resolve.java:2357)
      at com.sun.tools.javac.comp.Resolve.findIdent(Resolve.java:2343)
      at com.sun.tools.javac.comp.Resolve.resolveIdent(Resolve.java:2604)
      at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:3924)
      at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:2329)
      at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:672)
      at com.sun.tools.javac.comp.Attr.attribType(Attr.java:742)
      at com.sun.tools.javac.comp.Attr.attribType(Attr.java:735)
      at com.sun.tools.javac.comp.MemberEnter.visitVarDef(MemberEnter.java:414)
      at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:968)
      at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:172)
      at com.sun.tools.javac.comp.MemberEnter.signature(MemberEnter.java:120)
      at com.sun.tools.javac.comp.MemberEnter.visitMethodDef(MemberEnter.java:255)
      at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:878)
      at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:172)
      at com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:184)
      at com.sun.tools.javac.comp.TypeEnter$MembersPhase.finishClass(TypeEnter.java:971)
      at com.sun.tools.javac.comp.TypeEnter$MembersPhase.runPhase(TypeEnter.java:951)
      at com.sun.tools.javac.comp.TypeEnter$Phase.doCompleteEnvs(TypeEnter.java:298)
      at com.sun.tools.javac.comp.TypeEnter$MembersPhase.doCompleteEnvs(TypeEnter.java:886)
      at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:267)
      at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:282)
      at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:282)
      at com.sun.tools.javac.comp.TypeEnter$Phase.completeEnvs(TypeEnter.java:282)
      at com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:214)
      at com.sun.tools.javac.code.Symbol.complete(Symbol.java:645)
      at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1352)
      at com.sun.tools.javac.comp.Enter.complete(Enter.java:820)
      at com.sun.tools.javac.comp.Enter.main(Enter.java:797)
      at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1142)
      at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:399)
      at com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:327)
      at org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:660)
      at org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:488)
      at org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:140)
      at org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
      at org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)
      at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
      at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
      at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
      [catch] at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
      at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
      at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)

      Attachments

        Activity

          People

            Unassigned Unassigned
            arren Shevek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: