[ https://issues.apache.org/jira/browse/NETBEANS-4981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthias Bläsing resolved NETBEANS-4981. ---------------------------------------- Resolution: Fixed Fix was merged to master for 12.2 > NPE when launching VSCode extension on JDK8 > ------------------------------------------- > > Key: NETBEANS-4981 > URL: https://issues.apache.org/jira/browse/NETBEANS-4981 > Project: NetBeans > Issue Type: Bug > Components: vscode > Affects Versions: 12.2 > Reporter: Jaroslav Tulach > Assignee: Jan Lahoda > Priority: Major > Labels: pull-request-available > Fix For: 12.2 > > Time Spent: 1h 40m > Remaining Estimate: 0h > > When launching 12.2beta3 [VSCode > extension|https://ci-builds.apache.org/job/Netbeans/job/netbeans-vscode/164/] > with JDK8 following error is raised: > {code:java} > Exit code 0[Error - 8:23:34] Server initialization failed. Message: Internal > error. Code: -32603 java.util.concurrent.CompletionException: > java.lang.NullPointerException at > java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) > at > java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) > at > java.util.concurrent.CompletableFuture.uniRun(CompletableFuture.java:708) > at > java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:687) > at > java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) > at > java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962) > at > org.netbeans.modules.java.lsp.server.protocol.Server$LanguageServerImpl.asyncOpenSelectedProjects(Server.java:210) > at > org.netbeans.modules.java.lsp.server.protocol.Server$LanguageServerImpl.lambda$initialize$1(Server.java:276) > 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)Caused > by: java.lang.NullPointerException at > org.netbeans.modules.java.lsp.server.protocol.Server$LanguageServerImpl.showIndexingCompleted(Server.java:219) > at > java.util.concurrent.CompletableFuture.uniRun(CompletableFuture.java:705) > {code} > This is very likely due to missing {{nbjavac}}. Try: > {code:java} > netbeans/java/java.lsp.server/vscode$ npm run nbcode -- --jdkhome /jdk1.8.0/ > -J-Dnetbeans.logger.console=true > {code} > followed by > {code:java} > netbeans/java/java.lsp.server/vscode$ code --extensionDevelopmentPath=`pwd` > ~/tmp/withcontrol/ > {code} -- 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