You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Netbeans User 2019 (Jira)" <ji...@apache.org> on 2021/01/27 12:30:00 UTC

[jira] [Comment Edited] (NETBEANS-5129) IDE Reported Exception

    [ https://issues.apache.org/jira/browse/NETBEANS-5129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17272809#comment-17272809 ] 

Netbeans User 2019 edited comment on NETBEANS-5129 at 1/27/21, 12:29 PM:
-------------------------------------------------------------------------

In context of Tools > Options > Editor > Hints

There is no exact steps to reproduced, but I think that I open new issue:

- to be deactivated all hints and retested with and with and without nb-javac as seems that many issue like this is connected nb-javac, but It could be even possible that hints are not revised at all from start and even it is possible that could be ticked to run by import from prior version of Netbeans, but it could be unsupported in new version

- additionally even turn off nb-javac does not fix issues like these, because it seems that that states is ignored and nb-javac is still somehow in use ... so only option is to uninstalled completely (so to see in notification request for intallation)

- additionally to be added even new feature to reset all Hints to default


was (Author: nb-user-2019):
In context of Tools > Options > Editor > Hints

There is no exact steps to reproduced, but I think that I open new issue:

- to be deactivated all hints and retested with and with and without nb-javac as seems that many issue like this is connected nb-javac, but It could be even possible that hints are not revised at all from start and even it is possible that could be ticked to run by import from prior version of Netbeans, but it could bu unsupported in new version

- additionally even turn off nb-javac does not fix issues like these, because it seems that that states is ignored and nb-javac is still somehow in use ... so only option is to uninstalled completely (so to see in notification request for intallation)

- additionally to be added even new feature to reset all Hints to default

> IDE Reported Exception
> ----------------------
>
>                 Key: NETBEANS-5129
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5129
>             Project: NetBeans
>          Issue Type: Bug
>          Components: ide - UI
>    Affects Versions: 12.2
>            Reporter: Netbeans User 2019
>            Priority: Major
>
> java.lang.NullPointerException
> 	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.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.GeneratedMethodAccessor70.invoke(Unknown Source)
> 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
> [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.visitExpressionStatement(TreeScanner.java:452)
> 	at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1555)
> 	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.visitBlock(TreeScanner.java:250)
> 	at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:1074)
> 	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.visitMethod(TreeScanner.java:208)
> 	at com.sun.tools.javac.tree.JCTree$JCMethodDecl.accept(JCTree.java:940)
> 	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.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)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists