bilu created NETBEANS-3932: ------------------------------ Summary: java.lang.NullPointerExceptionjava GsfHintsProvider.computeErrors Key: NETBEANS-3932 URL: https://issues.apache.org/jira/browse/NETBEANS-3932 Project: NetBeans Issue Type: Bug Components: editor - Hints & Annotations, editor - Parsing & Indexing Affects Versions: 11.1 Environment: Product Version: Apache NetBeans IDE 11.1 Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 Java: 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_181-b13 System: Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) User directory: C:\Users\xxxx\AppData\Roaming\NetBeans\11.1 Cache directory: C:\Users\xxxx\AppData\Local\NetBeans\Cache\11.1 Reporter: bilu
Step to reproduce the problem: 1-Follow the tutorial: [https://platform.netbeans.org/tutorials/nbm-javacc-parser.html] or get complete code source here: [https://github.com/vparfonov/api-samples/tree/master/nb-api-samples~api-samples/versions/7.2/tutorials/SimpleJava2] * At this step run the project and you will get: java.lang.ClassCastException: org.simplejava.parser.SJParser$SJParserResult cannot be cast to org.netbeans.modules.csl.spi.ParserResult 2-Update SJParserResult class to extend o.n.m.csl.spi.ParserResult instead of o.n.m.parsing.spi.Parser.Result like suggest here https://bz.apache.org/netbeans/show_bug.cgi?id=167064 to fix precedent issue 3-Run the Project, you will get now : java.lang.NullPointerExceptionjava.lang.NullPointerException at org.netbeans.modules.csl.hints.GsfHintsProvider.computeErrors(GsfHintsProvider.java:114) at org.netbeans.modules.csl.hints.GsfHintsProvider.processErrors(GsfHintsProvider.java:388) at org.netbeans.modules.csl.hints.GsfHintsProvider.processErrorsRecursive(GsfHintsProvider.java:359) at org.netbeans.modules.csl.hints.GsfHintsProvider.refreshErrors(GsfHintsProvider.java:327) at org.netbeans.modules.csl.hints.GsfHintsProvider.access$200(GsfHintsProvider.java:79) at org.netbeans.modules.csl.hints.GsfHintsProvider$2.run(GsfHintsProvider.java:407) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:586) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:130) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:114) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:181) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:178) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:153) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:335) at org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:118) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:67) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:178)Caused: org.netbeans.modules.parsing.spi.ParseException at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:186) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:81)[catch] at org.netbeans.modules.csl.hints.GsfHintsProvider.run(GsfHintsProvider.java:405) at org.netbeans.modules.csl.hints.GsfHintsProvider.run(GsfHintsProvider.java:79) 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.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) -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists