redhat-developer / redhat-developer/vscode-java
NullPointerException in Jakarta EE Server Initialization
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 2.3k
- フォーク
- 546
- 平均マージ
- 20時間 1分
- マージ済み PR(30日)
- 11
説明
When clicking on variables in a Java project, an error occurs in the Jakarta EE server initialisation process. The error message indicates a NullPointerException during the execution of the org.eclipse.lsp4j.Diagnostic.getCode() method, specifically when trying to invoke org.eclipse.lsp4j.jsonrpc.messages.Either.getLeft(). As a result, the request textDocument/codeAction fails repeatedly, showing error code -32603. Additionally, in some cases, there are warnings for unmatched cancel notifications and errors indicating that the client is not running.
Environment
- Operating System:
MacOS (Ventura 13.4) - JDK version:
temurin-11 - Visual Studio Code version:
1.80.1 - Java extension version: Latest at this time (
1.20.0I believe)
Steps To Reproduce
- Build project, open file.
- Click somewhere within the code.
- See error.
Current Result
Expected Result
No errors.
Additional Informations
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、記載されている MacOS、JDK、VS Code、Java 拡張機能の環境で失敗を再現し、その後 java-server.log を調べます。org.eclipse.lsp4j.Diagnostic.getCode() と Either.getLeft() 周辺の textDocument/codeAction パスを追跡します。Java プロジェクト内をクリックしても、NullPointerException や繰り返し発生する -32603 エラーが出なくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, typescript, vscode
- 領域
- developer-experience, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100