redhat-developer / redhat-developer/vscode-java

NullPointerException in Jakarta EE Server Initialization

オープン
#3,205 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
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.0 I believe)
Steps To Reproduce
  1. Build project, open file.
  2. Click somewhere within the code.
  3. See error.
Current Result

2023-07-17 at 12 52 53@2x
2023-07-17 at 12 53 03@2x

Expected Result

No errors.

Additional Informations

java-server.log

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。