Null pointer dealing with jsps
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Bắt đầu trong org.netbeans.modules.web.jspparser.JspParserImpl, đặc biệt là createParseProxy ở dòng 234, và lần theo lý do WebModule.getJ2eeProfile() là null đối với một dự án JSP Gradle. Tái hiện bằng cách sửa đổi và lưu một JSP, sau đó xác minh rằng việc lưu không còn tạo ra NullPointerException đã được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Apache NetBeans version
Apache NetBeans 30
What happened
When trying to save jsps after modifying I'm getting a null pointer. This actually started happening in 29 so I upgraded to 30 to try to fix it.
java.lang.NullPointerException: Cannot invoke "org.netbeans.api.j2ee.core.Profile.isAtLeast(org.netbeans.api.j2ee.core.Profile)" because the return value of "org.netbeans.modules.web.api.webmodule.WebModule.getJ2eeProfile()" is null
at org.netbeans.modules.web.jspparser.JspParserImpl.createParseProxy(JspParserImpl.java:234)
at org.netbeans.modules.web.jspparser.JspParserImpl.getParseProxy(JspParserImpl.java:225)
at org.netbeans.modules.web.jspparser.JspParserImpl.getJspOpenInfo(JspParserImpl.java:177)
Language / Project Type / NetBeans Component
jsp gradle project
How to reproduce
I am not sure what makes me special. Something I did seems to have caused this to start happening, but I hope the stack trace will be sufficient. It doesn't matter what way you try to save. it still gets the null and I am forced to discard changes.
Did this work correctly in an earlier version?
Apache NetBeans 28
Operating System
Mac OS Tahoe 26.2 (25C56)
JDK
Java(TM) SE Runtime Environment (build 21.0.4+8-LTS-274)
Apache NetBeans packaging
Community provided installer
Anything else
It was working with Netbeans 29 till I set something or installed some module.
Are you willing to submit a pull request?
Yes
- Ngôn ngữ chính
- Java
- Star
- 3.1k
- Fork
- 939
- Merge trung bình
- 5 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 22
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc 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.
Issue khác của apache/netbeans
-
Contribution welcome kind:feature Platform
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/netbeans#9614 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind:bug LSP needs:triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/netbeans#9548 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Editor Java kind:feature needs:triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
The main Options dialog window has buttons with OK on the left instead of on the right on LinuxĐang mởkind:bug needs:triage os:linux os:macos Platform UI
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Incorrect DTD for wstcref-FilesĐang mởkind:bug needs:triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/netbeans
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
-
C21 publishes `reactivemongo/core/SSL` as Java 23 bytecode — TLS connections fail on any JDK < 23Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ReactiveMongo/ReactiveMongo#1520 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
liquid-java/liquidjava#373 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
ga4gh/phenopacket-schema#465 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NationalSecurityAgency/ghidra#9748 ·
Maintainer thường phản hồi trong vòng 1 ngày