redhat-developer / redhat-developer/vscode-java
NullPointerException in Jakarta EE Server Initialization
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 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 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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