You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error is logged if GlassFish is started with a virtual server in state "off". The error valve is not loaded, which is not an issue for a virtual server which is turned off. Only a nasty error in the log:
Couldnt load specified error report valve class: {0}
java.lang.NullPointerException
at com.sun.enterprise.web.VirtualServer.loadInstance(VirtualServer.java:1043)
at org.apache.catalina.core.StandardHost.configureStandardHostValve(StandardHost.java:1252)
at org.apache.catalina.core.StandardHost.setPipeline(StandardHost.java:222)
at com.sun.enterprise.web.VirtualServer.setIsOff(VirtualServer.java:737)
at com.sun.enterprise.web.VirtualServer.configureState(VirtualServer.java:1326)
at com.sun.enterprise.web.WebContainer.createHost(WebContainer.java:1235)
at com.sun.enterprise.web.WebContainer.createHost(WebContainer.java:1093)
at com.sun.enterprise.web.WebContainer.createHosts(WebContainer.java:1066)
at com.sun.enterprise.web.WebContainer.postConstruct(WebContainer.java:519)
Steps to reproduce
Start GlassFish domain1 with the default configuration
Set the virtual server "server" to state "off"
Stop GlassFsih server
Start GlassFish server - the error is logged
The reason is that the server context is not set when the setIsOff method is called in WebContainer.createHost(). The context is a couple of lines later in WebContainer.createHost.
Impact of Issue
No real impact. Only a nasty error in the log, which looks like a serious issue but could be ignored.
Type:Bug
Component: Web container
Priority: Low
The text was updated successfully, but these errors were encountered:
OndroMih
changed the title
Couldnt load error report valve if GlassFish started with a virtual server in state=off
Couldn't load error report valve if GlassFish started with a virtual server in state=off
May 31, 2024
Environment Details
Problem Description
An error is logged if GlassFish is started with a virtual server in state "off". The error valve is not loaded, which is not an issue for a virtual server which is turned off. Only a nasty error in the log:
Steps to reproduce
The reason is that the server context is not set when the
setIsOff
method is called inWebContainer.createHost()
. The context is a couple of lines later inWebContainer.createHost
.Impact of Issue
No real impact. Only a nasty error in the log, which looks like a serious issue but could be ignored.
Type:Bug
Component: Web container
Priority: Low
The text was updated successfully, but these errors were encountered: