Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Null pointer dealing with jsps

Abierto
#9,461 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
java
Área
web-dev

Línea de trabajo

Comience en org.netbeans.modules.web.jspparser.JspParserImpl, especialmente en createParseProxy, en la línea 234, y rastree por qué WebModule.getJ2eeProfile() es null para un proyecto JSP de Gradle. Reproduzca el problema modificando y guardando un JSP; después, verifique que al guardar ya no se produce la NullPointerException indicada.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Java
Estrellas
3.1k
Forks
939
Merge medio
4 d 21 h
PR fusionados (30 d)
24

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de apache/netbeans

Todos los issues de apache/netbeans

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.