Dean Wookey created LOG4J2-2058: ----------------------------------- Summary: java.locale.providers set to HOST causes Log4j2 to crash in Java 9 Key: LOG4J2-2058 URL: https://issues.apache.org/jira/browse/LOG4J2-2058 Project: Log4j 2 Issue Type: Bug Components: JUL adapter, Pattern Converters Affects Versions: 2.9.0, 2.9.1 Environment: Windows 10, Java 9 Reporter: Dean Wookey
When using the JUL log manager, setting the java.locale.providers property to "HOST" causes log4j2 to crash when you next log something. public class LocalePropertyTest { /** * @param args the command line arguments */ public static void main(String[] args) { System.setProperty("java.locale.providers", "HOST,JRE,SPI"); System.setProperty("java.util.logging.manager", "org.apache.logging.log4j.jul.LogManager"); Logger.getLogger(LocalePropertyTest.class.getName()).log(Level.WARNING, "this is a test"); } } The error is very long. Here are the first few lines: -- This message was sent by Atlassian JIRA (v6.4.14#64029)