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

NullPointerException: "this.discoveredProcs" is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 12.2
    • None
    • projects - Maven
    • None

    Description

      NullPointerException on Maven build.

      <record>
      <date>2021-01-12T09:18:39</date>
      <millis>1610453919671</millis>
      <sequence>425</sequence>
      <level>700</level>
      <thread>62</thread>
      <message>UI_USER_CONFIGURATION</message>
      <key>UI_USER_CONFIGURATION</key>
      <catalog>org.netbeans.modules.uihandler.Bundle</catalog>
      <param>FreeBSD, 12.2-RELEASE-p1, amd64</param>
      <param>OpenJDK 64-Bit Server VM, 15.0.1+9-1, OpenJDK Runtime Environment, 15.0.1+9-1</param>
      <param>Apache NetBeans IDE 12.2</param>
      <param></param>
      <param>NullPointerException: Cannot invoke "com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors.iterator()" because "this.discoveredProcs" is null</param>
      <param><Please provide a description of the problem or the steps to reproduce></param>
      <param>*********</param>
      </record>

      java.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors.iterator()" because "this.discoveredProcs" is nulljava.lang.NullPointerException: Cannot invoke "com.sun.tools.javac.processing.JavacProcessingEnvironment$DiscoveredProcessors.iterator()" because "this.discoveredProcs" is null at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:914) at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$2500(JavacProcessingEnvironment.java:113) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1298) at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1380) at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1350) at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1240) at com.sun.tools.javac.main.JavaCompiler.lambda$readSourceFile$3(JavaCompiler.java:930) at com.sun.tools.javac.code.ClassFinder.complete(ClassFinder.java:330) at com.sun.tools.javac.code.Symbol.complete(Symbol.java:683) at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1434) at com.sun.tools.javac.code.Symbol.apiComplete(Symbol.java:689) at com.sun.tools.javac.code.Symbol$TypeSymbol.getEnclosedElements(Symbol.java:863) at com.sun.tools.javac.code.Symbol$TypeSymbol.getEnclosedElements(Symbol.java:798) at org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitMethod(NPECheck.java:1160) at org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.visitMethod(NPECheck.java:546) at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:940) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:86) at org.netbeans.api.java.source.support.CancellableTreeScanner.scan(CancellableTreeScanner.java:69) at org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:653) at org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:546) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) at org.netbeans.api.java.source.support.CancellableTreeScanner.scan(CancellableTreeScanner.java:78) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:189) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:846) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:86) at org.netbeans.api.java.source.support.CancellableTreeScanner.scan(CancellableTreeScanner.java:69) at org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:653) at org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:546) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) at org.netbeans.api.java.source.support.CancellableTreeScanner.scan(CancellableTreeScanner.java:78) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) at com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:605) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:86) at org.netbeans.api.java.source.support.CancellableTreeScanner.scan(CancellableTreeScanner.java:69) at org.netbeans.modules.java.hints.bugs.NPECheck$VisitorImpl.scan(NPECheck.java:653) at org.netbeans.modules.java.hints.bugs.NPECheck.computeExpressionsState(NPECheck.java:503) at org.netbeans.modules.java.hints.bugs.NPECheck.methodInvocation(NPECheck.java:308) at jdk.internal.reflect.GeneratedMethodAccessor66.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:564)[catch] at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:317) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.runHint(HintsInvoker.java:798) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.access$400(HintsInvoker.java:90) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.runAndAdd(HintsInvoker.java:657) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:676) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) at com.sun.source.util.TreeScanner.visitNewClass(TreeScanner.java:544) at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1837) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:682) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90) at com.sun.source.util.TreeScanner.visitVariable(TreeScanner.java:225) at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:1016) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:682) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:90) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) at com.sun.source.util.TreeScanner.visitClass(TreeScanner.java:189) at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:846) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:82) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:69) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:682) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:610) at com.sun.source.util.TreeScanner.scan(TreeScanner.java:105) at org.netbeans.api.java.source.support.CancellableTreePathScanner.scan(CancellableTreePathScanner.java:78) at com.sun.source.util.TreeScanner.scanAndReduce(TreeScanner.java:113) at com.sun.source.util.TreeScanner.visitCompilationUnit(TreeScanner.java:144) at com.sun.tools.javac.tree.JCTree$JCCompilationUnit.accept(JCTree.java:605) at com.sun.source.util.TreePathScanner.scan(TreePathScanner.java:56) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker$ScannerImpl.scan(HintsInvoker.java:701) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHintsImpl(HintsInvoker.java:245) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:228) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:193) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:166) at org.netbeans.modules.java.hints.spiimpl.hints.HintsInvoker.computeHints(HintsInvoker.java:128) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:114) at org.netbeans.modules.java.hints.spiimpl.hints.HintsTask.run(HintsTask.java:65) at org.netbeans.modules.java.source.JavaSourceAccessor$CancelableTaskWrapper.run(JavaSourceAccessor.java:273) at org.netbeans.modules.parsing.impl.TaskProcessor.callParserResultTask(TaskProcessor.java:561) at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:786) at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279) at org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702) at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 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
            barulheira Sérgio Siegrist
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: