Error generation environment
Generated when mybatis sets log4j log
Error description
log4j:ERROR Category option " 1 " not a decimal integer.
java.lang.NumberFormatException: For input string: " 1 "
Error reason
In the log4j.properties file, there are more spaces in the log4j.appender.console.layout.conversionpattern attribute
Solution:
Before modification:
log4j.appender.console.layout.ConversionPattern = %d{ABSOLUTE} %5p %c{ 1 }:%L - %m%n
After modification:
log4j.appender.console.layout.ConversionPattern = %d{ABSOLUTE} %5p %c{1}:%L - %m%n
Read More:
- How to Fix log4j2 warning: warn unable to identify org.fusesource.jansi.WindowsAnsiOutputStream
- ERROR StatusLogger No Log4j 2 configuration file found. Using default configuration…
- Split log by date in log4j2 of spring boot
- [Solved] Log4j2 log startup error: javax.xml.parsers.ParserConfigurationException…
- How to Solve Log4j 2.5 upgrade to 2.15 error
- [Solved] shiro Error: SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder“.
- [2022 New Solution] SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder
- [Solved] could not open error log file: CreateFile() “logs/error.log“ fail
- [Solved] Error occurred during initialization of VM javalangNoClassDefFoundError javalangObject
- Springboot2.6X version integrate knife4j error [How to Solve]
- [Solved] openstack4j Startup Error: java.net.UnknownHostException: controller
- [Solved] Initialization of anonymous inner class member variable causes java.lang.stackoverflowerror
- [Solved] Java.lang.BootstrapMethodError: call site initialization exception
- IDEA Error: lombok.extern.slf4j is not exist [How to Solve]
- [Solved] Failed to load class org.slf4j.impl.StaticLoggerBinder
- [Solved] springboot Project Run Error: HikariPool-1 – Exception during pool initialization.
- [Solved] Error occurred during initialization of VM Could not reserve enough space for object heap
- [Solved] jvm 1 Error occurred during initialization of VM Could not reserve enough space for object heap
- How to Solve Error occurred during initialization of boot layer
- [RFID] OctaneSDKJava Eclipse Error: Error occurred during initialization of boot layer