HTTP Status 500 – Internal Server Error


Type Exception Report

Message java.lang.NullPointerException

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

javax.servlet.ServletException: java.lang.NullPointerException
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
	org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:81)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Root Cause

javax.faces.el.EvaluationException: java.lang.NullPointerException
	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:101)
	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	javax.faces.component.UIViewAction.broadcast(UIViewAction.java:562)
	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
	javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:931)
	com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
	org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:81)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Root Cause

java.lang.NullPointerException
	it.sisolinf.beans.beanLogin.switchLanguage(beanLogin.java:761)
	it.sisolinf.beans.beanLogin.impostaLinguaCorrente(beanLogin.java:720)
	sun.reflect.GeneratedMethodAccessor786.invoke(Unknown Source)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	java.lang.reflect.Method.invoke(Method.java:498)
	org.apache.el.parser.AstValue.invoke(AstValue.java:247)
	org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267)
	com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)
	javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:87)
	com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
	javax.faces.component.UIViewAction.broadcast(UIViewAction.java:562)
	javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:790)
	javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:931)
	com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
	com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
	com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
	org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:81)
	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)

Note The full stack trace of the root cause is available in the server logs.


Apache Tomcat/9.0.45