Skip to content

Troubleshooting

Aurélien Pupier edited this page Dec 5, 2024 · 6 revisions

Camel server crash notification

Notification message: The Language Support for Apache Camel server crashed 5 times in the last 3 minutes. The server will not be restarted.

Have a look to View -> Output -> Language Support for Apache Camel

If the log contains:

[Info - 1:34:41 PM] Connection to server got closed. Server will restart. Exception in thread "main" java.lang.UnsupportedClassVersionError: com/github/cameltooling/lsp/internal/Runner has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

it means that a too old version is used. In this specific case, Java 8 although Java 11+ is required. Either configure your system to have Java 11+ or modify java.home VS Code preference settings to point to a Java 11+ installation.

Non-working or unexpected completion/validation

Camel Language Server logs

The Camel Language Server logs can be found (in subfolder camel-lsp since 1.8.0) Java temporary directory (property java.io.tmpdir, usually in /tmp on Linux and <user Home>/AppData/Local/Temp on Windows) and is named log-camel-lsp.log.

Communication log between VS Code and the Camel Language Server

It is possible to activate logs for communication between Language Server and VS Code client. In command palette, call Preferences: Open Settings (JSON) and provide "LANGUAGE_ID_APACHE_CAMEL.trace.server": "verbose". Depending on which languages used, it can be interesting to activate some others traces:

  • "yaml.trace.server": "verbose"
  • "xml.trace.server": "verbose"
  • "java.trace.server": "messages"