redhat-developer / redhat-developer/vscode-java
NullPointerException in Jakarta EE Server Initialization
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.3k
- Fork
- 546
- Merge trung bình
- 20 giờ 1 phút
- Pull request đã merge (30 ngày)
- 11
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi với môi trường MacOS, JDK, VS Code và tiện ích mở rộng Java được liệt kê, sau đó kiểm tra java-server.log. Truy vết đường dẫn textDocument/codeAction xung quanh org.eclipse.lsp4j.Diagnostic.getCode() và Either.getLeft(). Được xem là hoàn tất khi việc nhấp vào dự án Java không còn tạo ra NullPointerException hoặc các lỗi -32603 lặp lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java, typescript, vscode
- Lĩnh vực
- developer-experience, devtools
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100