★ wanayoo — archive 1999 https://github.com/microsoft/vscode-java-debug/issues/150Nouvelle recherche | Portail wanayoo
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE when start debugging. #150

Closed
tramchamploo opened this issue Nov 10, 2017 · 3 comments
Closed

NPE when start debugging. #150

tramchamploo opened this issue Nov 10, 2017 · 3 comments
Assignees
Milestone

Comments

@tramchamploo
Copy link

@tramchamploo tramchamploo commented Nov 10, 2017 •

[Error - 15:41:18] Request textDocument/codeAction 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.uniApply(CompletableFuture.java:604)
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577)
	at java.util.concurrent.CompletableFuture$Completion.exec(CompletableFuture.java:443)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Caused by: java.lang.NullPointerException
	at org.eclipse.jdt.ls.core.internal.text.correction.QuickAssistProcessor.getUniqueMethodName(QuickAssistProcessor.java:522)
	at org.eclipse.jdt.ls.core.internal.text.correction.QuickAssistProcessor.getExtractMethodProposal(QuickAssistProcessor.java:251)
	at org.eclipse.jdt.ls.core.internal.text.correction.QuickAssistProcessor.getAssists(QuickAssistProcessor.java:140)
	at org.eclipse.jdt.ls.core.internal.handlers.CodeActionHandler.getCodeActionCommands(CodeActionHandler.java:80)
	at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$11(JDTLanguageServer.java:393)
	at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:602)
	... 6 more

Then debugger says cannot find or load main class.

@akaroml
Copy link
Member

@akaroml akaroml commented Nov 10, 2017

Thanks for reporting this issue. From the error message, this happened when you are performing some code action. Can you provide the steps to help us reproduce this issue?

Can you also let us know your configurations?

  • Language Support for Java extension version
  • Debugger for Java extension version
  • OS version
  • JDK version
@tramchamploo
Copy link
Author

@tramchamploo tramchamploo commented Nov 10, 2017

This is a really large maven project. And I just presssed F5 to debug a main method.
Language Support for Java extension version: 0.14.0
Debugger for java: 0.3.0
OS: macos 10.13.1
JDK: 1.8.0_152

@yaohaizh
Copy link

@yaohaizh yaohaizh commented Nov 21, 2017

Fixed on the VSCode Java side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.