]
Diego Lovison updated ISPN-11153:
---------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
When starting the server all failures should be handled
-------------------------------------------------------
Key: ISPN-11153
URL:
https://issues.redhat.com/browse/ISPN-11153
Project: Infinispan
Issue Type: Bug
Components: Server
Affects Versions: 10.1.0.Final
Reporter: Diego Lovison
Assignee: Diego Lovison
Priority: Critical
When starting the server, if the log configuration is invalid, the cluster will form and
the server will start handling requests.
{noformat}
dlovison@Diegos-MacBook-Pro bin % ./server.sh
[Fatal Error] log4j2.xml:1:1: Premature end of file.
ERROR StatusLogger Error parsing
/Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-10.1.1-SNAPSHOT/server/conf/log4j2.xml
org.xml.sax.SAXParseException; systemId:
file:///Users/dlovison/Documents/GitHub/infinispan/infinispan/server/runtime/target/infinispan-server-10.1.1-SNAPSHOT/server/conf/log4j2.xml;
lineNumber: 1; columnNumber: 1; Premature end of file.
at
java.xml/com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:261)
at
java.xml/com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:339)
at
org.apache.logging.log4j.core.config.xml.XmlConfiguration.<init>(XmlConfiguration.java:95)
at
org.apache.logging.log4j.core.config.xml.XmlConfigurationFactory.getConfiguration(XmlConfigurationFactory.java:46)
at
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:420)
at
org.apache.logging.log4j.core.config.ConfigurationFactory$Factory.getConfiguration(ConfigurationFactory.java:347)
at
org.apache.logging.log4j.core.config.ConfigurationFactory.getConfiguration(ConfigurationFactory.java:261)
at
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:616)
at
org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:637)
at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:231)
at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:153)
at
org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
at org.apache.logging.log4j.LogManager.getContext(LogManager.java:194)
at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:121)
at
org.apache.logging.log4j.jul.AbstractLoggerAdapter.getContext(AbstractLoggerAdapter.java:34)
at
org.apache.logging.log4j.spi.AbstractLoggerAdapter.getLogger(AbstractLoggerAdapter.java:46)
at org.apache.logging.log4j.jul.LogManager.getLogger(LogManager.java:89)
at java.logging/java.util.logging.LogManager.demandLogger(LogManager.java:519)
at java.logging/java.util.logging.LogManager.demandLogger(LogManager.java:515)
at java.logging/java.util.logging.Logger.demandLogger(Logger.java:654)
at java.logging/java.util.logging.Logger.getLogger(Logger.java:717)
at java.logging/java.util.logging.Logger.getLogger(Logger.java:701)
at org.infinispan.server.Bootstrap.getBootLogger(Bootstrap.java:184)
at org.infinispan.server.Bootstrap.runInternal(Bootstrap.java:131)
at org.infinispan.server.tool.Main.run(Main.java:98)
at org.infinispan.server.Bootstrap.main(Bootstrap.java:38)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.infinispan.server.loader.Loader.main(Loader.java:52)
ERROR StatusLogger No logging configuration
[Fatal Error] log4j2.xml:1:1: Premature end of file.
{noformat}
The server will be up and running
http://127.0.0.1:11222/console/welcome and the server
bash will be hanged.