Details
-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
Description
ExceptionInInitializerError during create of CLI object on client app.
Steps to reproduce:
- create simple CLI client app, for example:
public class App { public static void main(String[] args) throws Exception { CLI cli = CLI.newInstance(); } }
- start this application
Actual results:
Exception in thread "main" java.lang.ExceptionInInitializerError at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:197) at org.jboss.as.cli.impl.aesh.AeshCommands.<init>(AeshCommands.java:174) at org.jboss.as.cli.impl.CommandContextImpl.<init>(CommandContextImpl.java:352) at org.jboss.as.cli.impl.CommandContextFactoryImpl.newCommandContext(CommandContextFactoryImpl.java:44) at org.jboss.as.cli.scriptsupport.CLI.initOfflineContext(CLI.java:278) at org.jboss.as.cli.scriptsupport.CLI.<init>(CLI.java:53) at org.jboss.as.cli.scriptsupport.CLI.newInstance(CLI.java:62) at com.client.test.App.main(App.java:9) Caused by: java.lang.IllegalStateException: The LogManager was not properly installed (you must set the "java.util.logging.manager" system property to "org.jboss.logmanager.LogManager") at org.jboss.logmanager.Logger.getLogger(Logger.java:57) at org.jboss.as.cli.impl.aesh.CLICompletionHandler.<clinit>(CLICompletionHandler.java:45) ... 8 more
Expected results:
No errors
Additional info:
See attached application single-client.zip :
# old client mvn clean mvn package -Dversion.client=3.0.10.Final java -jar target/ClientApplication.jar # works correctly with old client # new client mvn clean mvn package -Dversion.client=4.0.0.Alpha7-SNAPSHOT java -jar target/ClientApplication.jar # throws ExceptionInInitializerError java -Djava.util.logging.manager=org.jboss.logmanager.LogManager -jar target/ClientApplication.jar # no exception