Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Null pointer dealing with jsps

Aperta
#9,461 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
java
Ambito
web-dev

Direzione di ricerca

Inizia da org.netbeans.modules.web.jspparser.JspParserImpl, in particolare da createParseProxy alla riga 234, e traccia il motivo per cui WebModule.getJ2eeProfile() è null per un progetto JSP Gradle. Riproduci il problema modificando e salvando una JSP, quindi verifica che il salvataggio non produca più la NullPointerException segnalata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Java EE/Jakarta EE kind:bug needs:triage
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

Lingua principale
Java
Stelle
3.1k
Fork
939
Merge medio
4g 14h
PR unite (30g)
26

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/netbeans

Tutte le issue di apache/netbeans

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.