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.

can not start debug, error msg: Connection to server is erroring. Shutting down server.

See original GitHub issue
Environment
  • Operating System: ArchLinux
  • JDK version: jdk8-openjdk
  • Visual Studio Code version: 1.24.0
  • Java extension version: Language Support for Java™ by Red Hat 0.27.0
Steps To Reproduce
  1. install ‘Java Extension Pack’ in vscode
  2. install jdk8-openjdk on ArchLinux
  3. create an folder, then create a Helloworld.java in this folder
  4. clear ~/.config/Code/logs/*
  5. close vscode
  6. re-open vscode, Helloworld.java is automatically opened (so redhat.java extension is automatically actived in vscode)
  7. open output window, switch to ‘Lauguage support for Java’ in dropdown list
  8. see this error(twice in output window): [Error - 12:04:37] Connection to server is erroring. Shutting down server.
[Trace - 12:16:17] Sending request 'shutdown - (1)'.
[Error - 12:16:17] Connection to server is erroring. Shutting down server.
[Error - 12:16:17] Connection to server is erroring. Shutting down server.
Current Result

nothing happened after click debug start button, configuration below(launch.json): { “version”: “0.2.0”, “configurations”: [ { “type”: “java”, “name”: “Debug TestRunner”, “request”: “launch”, “cwd”: “${workspaceFolder}/bin”, “console”: “internalConsole”, “stopOnEntry”: false, “sourcePaths”: [ “${workspaceRoot}/src/com/xx/oo/” ], “classPaths”: [ “${workspaceRoot}/bin” ], “mainClass”: “TestRunner”, “args”: “” } ] }

Expected Result

debug procedure started and stopped on my breakpoint.

Additional Informations

There is no any eclipse components install on my system, cause I saw there is two parts of redhat.java extension which one part is eclipse.jdt.ls. Is this matters ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gengucommented, Jun 15, 2018

How do I find output-log file by “java.trace.server”: “verbose” ?

0reactions
Hacksigncommented, Oct 9, 2018

@Hacksign The java language server cannot startup, I see the initialize request but no response, the rocket icon is showing when the java language server is starting, seems it’s your project’s problem, could you please show us the result of tree structure of your directory: /home/dev/xxx/JDISMapReduce using: sudo apt install tree && tree /home/dev/xxx/JDISMapReduce?

BTW: *****There is no any eclipse components install on my system, cause I saw there is two parts of redhat.java extension which one part is eclipse.jdt.ls. Is this matters ? — redhat.java will contain a headless eclipse for you, eclipse.jdt.ls is the most import plugin in this headless eclipse, so it doesn’t matter whether or not you have installed eclipse.

Thanks for reply, It is indeed my project’s problem. This error do not exists after I change my project to MAVEN project.

This issue can close now ~

Read more comments on GitHub >

github_iconTop Results From Across the Web

Connection to server is erroring. Shutting down server.
can not start debug, error msg: Connection to server is erroring. Shutting down server.
Read more >
Error: Unable to Start Debugging on the Web Server
The debugger cannot connect to the remote computer​​ If you are debugging locally, open your project properties in Visual Studio and make sure ......
Read more >
Connection to server is erroring. Shutting down server.
Hello everyone. This time I want to share a very strange problem I encountered. After I updated Al Language, many errors occurred. Error:...
Read more >
Troubleshoot WorkSpaces issues - AWS Documentation
My users receive the message, "Something went wrong: An error occurred while launching your WorkSpace" when they attempt to sign in to the...
Read more >
Troubleshooting Common Issues | Salesforce for VSCode
If you don't see any SFDX commands in the command palette, make sure that ... VS Code uses the Apex Language Server to...
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