question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NPE in PropertiesJavaDefinitionHandler.adjustedHighlightRangeForKey

See original GitHub issue
[Error - 2:50:31 PM] Request textDocument/definition failed.
  Message: Internal error.
  Code: -32603 
java.util.concurrent.CompletionException: java.lang.NullPointerException
	at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:331)
	at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:346)
	at java.base/java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:704)
	at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
	at java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
	at reactor.core.publisher.MonoToCompletableFuture.onError(MonoToCompletableFuture.java:68)
	at reactor.core.publisher.FluxSubscribeOnCallable$CallableSubscribeOnSubscription.run(FluxSubscribeOnCallable.java:228)
	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:68)
	at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:28)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: java.lang.NullPointerException
	at org.springframework.ide.vscode.boot.app.PropertiesJavaDefinitionHandler.adjustedHighlightRangeForKey(PropertiesJavaDefinitionHandler.java:112)
	at org.springframework.ide.vscode.boot.app.PropertiesJavaDefinitionHandler.getDefinitions(PropertiesJavaDefinitionHandler.java:87)
	at org.springframework.ide.vscode.boot.app.PropertiesJavaDefinitionHandler.handle(PropertiesJavaDefinitionHandler.java:70)
	at org.springframework.ide.vscode.languageserver.starter.LanguageServerAutoConf.lambda$null$2(LanguageServerAutoConf.java:96)
	at org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService.lambda$definition$9(SimpleTextDocumentService.java:364)
	at reactor.core.publisher.MonoCallable.call(MonoCallable.java:91)
	at reactor.core.publisher.FluxSubscribeOnCallable$CallableSubscribeOnSubscription.run(FluxSubscribeOnCallable.java:225)
	... 7 more

I was using an application.properties file, outside of a project with content: camel.component.activemq.errorHandlerLoggingLevel=DEBUG It is triggered when calling completion with Ctrl+space but I cannot find a way to reliably reproduce

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
martinlippertcommented, Jan 9, 2020

@apupier The Eclipse p2 repos for the CI builds are:

(not the one that Alex mentioned above, I think).

In case you are looking for the CI build of the VSCode extension, you can find that one here:

(but it looks like the latest CI build isn’t there yet, so need to take a look at what is wrong there)

1reaction
BoykoAlexcommented, Jan 8, 2020

Thanks! Should be a trivial fix… Will try to get it in by the end of today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Tools 4.5.1 released
... (Eclipse) fixed: NPE in PropertiesJavaDefinitionHandler.adjustedHighlightRangeForKey (#401); (Eclipse) fixed: builds on Eclipse 4.14 ...
Read more >
Boot Archive - Edvpfau
... Eine NPE in PropertiesJavaDefinitionHandler.adjustedHighlightRangeForKey wurde gefixt; Neueste m2e Snapshot um Probleme mit JUnit 5 ...
Read more >
Spring Tools 4.5.1 released_咔啡的博客-CSDN博客
... Eclipse project name contains spaces (#403) (Eclipse) fixed: NPE in PropertiesJavaDefinitionHandler.adjustedHighlightRangeForKey (#401) (Eclipse) fixed: ...
Read more >
Spring Tools 4.5.1 发布,Spring 开发工具
... (Eclipse)已修复:PropertiesJavaDefinitionHandler.adjustedHighlightRangeForKey 中的NPE; (Eclipse)已修复:在Eclipse 4.14 上构建的版本 ...
Read more >
PyCharm 2019.3.2 发布,远程FreeBSD 上运行代码 - 低调大师
... 启动应用程序(Eclipse)已修复:PropertiesJavaDefinitionHandler.adjustedHighlightRangeForKey 中的NPE (Eclipse)已修复:在Eclipse 4.14 上 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found