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

Language Support for Java (Syntax Server) server crashed 5 times in the last 3 minutes #598

Closed
sidi-zeidane opened this issue Apr 13, 2021 · 8 comments
Assignees

Comments

@sidi-zeidane
Copy link

The Language Support for Java (Syntax Server) server crashed 5 times in the last 3 minutes. The server will not be restarted.
how do i solve this?

@Eskibear Eskibear changed the title vscode-java-installer error Language Support for Java (Syntax Server) server crashed 5 times in the last 3 minutes Apr 14, 2021
@Eskibear
Copy link
Member

@testforstephen Do we have full logs for syntax server, can you help to point it out?

@testforstephen
Copy link
Contributor

Here is how to get all logs for Java extension.

Output window:
Language Support for Java (Syntax Server)

Logs:
F1 -> Java: Open All Log Files

@vicrdguez
Copy link

I have the same problem, this are the logs:

{
  message: 'Starting Java server with: /usr/lib/jvm/java-11-openjdk/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -javaagent:/home/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar -noverify -jar /home/vrodriguez/.vscode-oss/extensions/redhat.java-0.77.0/server/plugins/org.eclipse.equinox.launcher_1.6.100.v20201223-0822.jar -configuration /home/vrodriguez/.config/VSCodium/User/globalStorage/redhat.java/0.77.0/config_linux -data /home/vrodriguez/.config/VSCodium/User/workspaceStorage/594bbeffc233f2814a39519fd8661443/redhat.java/jdt_ws',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.088'
}
{
  message: 'Error opening zip file or JAR manifest missing : /home/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar\n',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.101'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2021-04-24 19:37:22.102'
}
{
  message: '[Info  - 7:37:22 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.102'
}
{
  message: 'Error opening zip file or JAR manifest missing : /home/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar\n',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.114'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2021-04-24 19:37:22.115'
}
{
  message: '[Info  - 7:37:22 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.115'
}
{
  message: 'Error opening zip file or JAR manifest missing : /home/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar\n',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.127'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2021-04-24 19:37:22.128'
}
{
  message: '[Info  - 7:37:22 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.128'
}
{
  message: 'Error opening zip file or JAR manifest missing : /home/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar\n',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.141'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2021-04-24 19:37:22.142'
}
{
  message: '[Info  - 7:37:22 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.142'
}
{
  message: 'Error opening zip file or JAR manifest missing : /home/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar\n',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.155'
}
{
  message: 'The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.',
  level: 'error',
  timestamp: '2021-04-24 19:37:22.156'
}
{
  message: '[Error - 7:37:22 PM] Connection to server got closed. Server will not be restarted.',
  level: 'info',
  timestamp: '2021-04-24 19:37:22.157'
}

Looks like the path for lombok jar is hardcoded to home folder of someone else

@testforstephen
Copy link
Contributor

lombok.jar is injected by "Lombok Annotations Support for VS Code" extension, looks like it's missing. You have to manually remove "-javaagent:/home/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar" from user setting "java.jdt.ls.vmargs".

@no-response
Copy link

no-response bot commented Apr 28, 2021

This issue has been closed automatically because it needs more information and has not had recent activity. Please reach out if you have or find the answers we need so that we can investigate further.

@no-response no-response bot closed this as completed Apr 28, 2021
@deepfriedbrain
Copy link

deepfriedbrain commented Jul 7, 2021

lombok.jar is injected by "Lombok Annotations Support for VS Code" extension, looks like it's missing. You have to manually remove "-javaagent:/home/chris/.vscode-oss/extensions/gabrielbb.vscode-lombok-1.0.1/server/lombok.jar" from user setting "java.jdt.ls.vmargs".

I'm getting the same error, but I'm not using lombok.jar. I don't have the java.jdt.ls.vmargs setting in my settings.json. I do have java.home defined in my settings.json. I've tried uninstalling and reinstalling the Java extensions multiple times but to no avail.

The log:

{
  message: 'Starting Java server with: C:\\Program Files\\AdoptOpenJDK\\jdk-11.0.11.9-hotspot\\bin\\java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -DwatchParentProcess=false -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -noverify -jar c:\\Users\\username\\.vscode\\extensions\\redhat.java-0.80.0\\server\\plugins\\org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar -configuration c:\\Users\\username\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\0.80.0\\config_ss_win -data c:\\Users\\username\\AppData\\Roaming\\Code\\User\\workspaceStorage\\d279eabc667c1b4a033ce88342069ceb\\redhat.java\\ss_ws',
  level: 'info',
  timestamp: '2021-07-07 15:36:04.591'
}
{
  message: 'Starting Java server with: C:\\Program Files\\AdoptOpenJDK\\jdk-11.0.11.9-hotspot\\bin\\java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Dfile.encoding=utf8 -DwatchParentProcess=false -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -noverify -jar c:\\Users\\username\\.vscode\\extensions\\redhat.java-0.80.0\\server\\plugins\\org.eclipse.equinox.launcher_1.6.200.v20210416-2027.jar -configuration c:\\Users\\username\\AppData\\Roaming\\Code\\User\\globalStorage\\redhat.java\\0.80.0\\config_win -data c:\\Users\\username\\AppData\\Roaming\\Code\\User\\workspaceStorage\\d279eabc667c1b4a033ce88342069ceb\\redhat.java\\jdt_ws',
  level: 'info',
  timestamp: '2021-07-07 15:36:06.412'
}
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.',
  level: 'info',
  timestamp: '2021-07-07 15:36:06.708'
}
{ message: '\n', level: 'info', timestamp: '2021-07-07 15:36:06.709' }
{
  message: 'The Language Support for Java (Syntax Server) server crashed and will restart.',
  level: 'error',
  timestamp: '2021-07-07 15:36:07.899'
}
{
  message: '[Info  - 3:36:07 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-07-07 15:36:07.904'
}
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.\n',
  level: 'info',
  timestamp: '2021-07-07 15:36:08.028'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2021-07-07 15:36:09.571'
}
{
  message: '[Info  - 3:36:09 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-07-07 15:36:09.572'
}
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.\n',
  level: 'info',
  timestamp: '2021-07-07 15:36:11.061'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed and will restart.',
  level: 'error',
  timestamp: '2021-07-07 15:36:12.609'
}
{
  message: '[Info  - 3:36:12 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-07-07 15:36:12.610'
}
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.',
  level: 'info',
  timestamp: '2021-07-07 15:36:12.734'
}
{ message: '\n', level: 'info', timestamp: '2021-07-07 15:36:12.734' }
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.\n',
  level: 'info',
  timestamp: '2021-07-07 15:36:13.081'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2021-07-07 15:36:13.733'
}
{
  message: '[Info  - 3:36:13 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-07-07 15:36:13.733'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed and will restart.',
  level: 'error',
  timestamp: '2021-07-07 15:36:14.113'
}
{
  message: '[Info  - 3:36:14 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-07-07 15:36:14.114'
}
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.',
  level: 'info',
  timestamp: '2021-07-07 15:36:15.487'
}
{ message: '\n', level: 'info', timestamp: '2021-07-07 15:36:15.488' }
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.\n',
  level: 'info',
  timestamp: '2021-07-07 15:36:16.992'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2021-07-07 15:36:17.482'
}
{
  message: '[Info  - 3:36:17 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-07-07 15:36:17.482'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed and will restart.',
  level: 'error',
  timestamp: '2021-07-07 15:36:18.226'
}
{
  message: '[Info  - 3:36:18 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-07-07 15:36:18.226'
}
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.',
  level: 'info',
  timestamp: '2021-07-07 15:36:18.517'
}
{ message: '\n', level: 'info', timestamp: '2021-07-07 15:36:18.519' }
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.\n',
  level: 'info',
  timestamp: '2021-07-07 15:36:18.653'
}
{
  message: 'The Language Support for Java server crashed and will restart.',
  level: 'error',
  timestamp: '2021-07-07 15:36:19.418'
}
{
  message: '[Info  - 3:36:19 PM] Connection to server got closed. Server will restart.',
  level: 'info',
  timestamp: '2021-07-07 15:36:19.419'
}
{
  message: 'The Language Support for Java (Syntax Server) server crashed 5 times in the last 3 minutes. The server will not be restarted.',
  level: 'error',
  timestamp: '2021-07-07 15:36:19.518'
}
{
  message: '[Error - 3:36:19 PM] Connection to server got closed. Server will not be restarted.',
  level: 'info',
  timestamp: '2021-07-07 15:36:19.520'
}
{
  message: 'Error: Could not create the Java Virtual Machine.\n' +
    'Error: A fatal exception has occurred. Program will exit.\n',
  level: 'info',
  timestamp: '2021-07-07 15:36:19.789'
}
{
  message: 'The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.',
  level: 'error',
  timestamp: '2021-07-07 15:36:20.811'
}
{
  message: '[Error - 3:36:20 PM] Connection to server got closed. Server will not be restarted.',
  level: 'info',
  timestamp: '2021-07-07 15:36:20.812'
}

@dhanushd-27
Copy link

did anyone get the solution

@REC4966
Copy link

REC4966 commented Oct 31, 2023

Hold down CTRL+Shift+P, find Java: Clean Java Language Server Workspace, click Delete and reload, it will be solved.

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

No branches or pull requests

7 participants