Primefaces application stops working when click button

108 Views Asked by At

Hello please help with the following problem At times the network is slow and my application programmed in java with primefaces 6.0 and glassfish 3.1 stops working

When I open the page it is shown and the values of the components are load a few seconds late, when clicking on a button when the values of the whole page are not loaded, an error is presented and the application stops working.

Example:

1)The screen is presented and the values of the p: selectOneMenu are not loaded enter image description here

2)When clicking on the first button, shows the following error:

Javascript error:

Error de lectura XML: sección CDATA no cerrada Ubicación: http://localhost:8080/....pag1.xhtml Número de línea 2, columna 43: ....pag1.xhtml:2:43 Error de lectura XML: sección CDATA no cerrada Ubicación: http://localhost:8080/....pag1 Número de línea 2, columna 43: ....pag1.xhtml:2:43 TypeError: PF(...) is undefined

Java error:

Grave: JSF1073: se ha interceptado javax.faces.event.AbortProcessingException durante el procesamiento de RENDER_RESPONSE 6 : UIComponent-ClientId=, Mensaje=java.lang.NullPointerException Grave: java.lang.NullPointerException javax.faces.event.AbortProcessingException: java.lang.NullPointerException at org.primefaces.context.PrimePartialResponseWriter.startMetadataIfNecessary(PrimePartialResponseWriter.java:303)

3)Seconds later load the values of p: selectOneMenu but the application stopped working due to the previous error. enter image description here

Now if I open the screen and wait until the values of p: selectOneMenu are loaded, the screen works correctly

How can i fix this

0

There are 0 best solutions below