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.

Error trying to find JVM: TypeError: Cannot read property 'isJdk' of null

See original GitHub issue

image

Related settings.json:

    // "java.configuration.updateBuildConfiguration": "automatic",
    "java.completion.guessMethodArguments": true,
    "java.home": "/home/agilob/.sdkman/candidates/java/current",
    "java.completion.enabled": true,
    // "java.autobuild.enabled": true,
    "boot-java.change-detection.on": true,
    "boot-java.live-information.automatic-tracking.on": true,
    "vsintellicode.java.completionsEnabled": true

Java version:

java -version
openjdk version "13.0.1" 2019-10-15
OpenJDK Runtime Environment (build 13.0.1+9)
OpenJDK 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

13.0.1 installed from sdkman.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
agilobcommented, Nov 27, 2019

OK, the issue is gone after adding the following line to global vsc config and restarting vsc

"spring-boot.ls.java.home": "/home/agilob/.sdkman/candidates/java/current"

Notification with error no longer appears.

To answer your questions:

~/Projects/jhip  master +2 !13 ?26  which java 
/home/agilob/.sdkman/candidates/java/current/bin/java
~/Projects/jhip  master +2 !13 ?26  java -version
openjdk version "13.0.1" 2019-10-15
OpenJDK Runtime Environment (build 13.0.1+9)
OpenJDK 64-Bit Server VM (build 13.0.1+9, mixed mode, sharing)

Default shell for my user is zsh and ~/.zshrc contains:

export JAVA_HOME=/home/agilob/.sdkman/candidates/java/current
export PATH=$PATH:/home/agilob/.sdkman/candidates/java/current/bin

#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/home/agilob/.sdkman"
[[ -s "/home/agilob/.sdkman/bin/sdkman-init.sh" ]] && source "/home/agilob/.sdkman/bin/sdkman-init.sh"
0reactions
kdvoldercommented, Nov 27, 2019

Thanks for extra info and closing the ticket.

The error that you reported is basically the typescript/javascript equivalent of a ‘NPE’ and really should never happen. So I feel there is still a bug of some kind here to fix. But as I can’t explain or reproduce how you got that error. So not really able to do much about it right now. So closing ticket seems like the right action.

Should you see the problem again and gain any insight into what exactly we need to do to trigger it, please re-open or raise a new ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: ENOENT: no such file or directory, lstat '/usr/java' - Stack ...
i am trying to run and debug the Small app with spring boot and react, but i got this error: Error trying to...
Read more >
Groovy Language Documentation
MissingPropertyException because Groovy believes you're trying to access the toString property of that number, which doesn't exist:.
Read more >
41 ORABPEL-00006 to ORABPEL-20511 - Oracle Help Center
Type: ERROR. Impact: Programmatic. ORABPEL-01029: cannot find property definition for "{0}" in any of the WSDL files. Cause: The BPEL correlation property ......
Read more >
Vscode支持jdk8 - MyBlog
如果安装了spring,还需要配置 spring-boot.ls.java.home ,否则会出现 Error trying to find JVM: TypeError: Cannot read property 'isJdk' of null.
Read more >
VSCode创建gradle + spring项目- 程序员大本营
出现Error trying to find JVM: TypeError: Cannot read property 'isJdk' of null的解决办法:点我查看; 启动项目
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