[jboss-jira] [JBoss JIRA] (WFCORE-3547) ExceptionInInitializerError during create of CLI object on client app
Marek Kopecký (JIRA)
issues at jboss.org
Thu Jan 25 09:12:00 EST 2018
Marek Kopecký created WFCORE-3547:
-------------------------------------
Summary: ExceptionInInitializerError during create of CLI object on client app
Key: WFCORE-3547
URL: https://issues.jboss.org/browse/WFCORE-3547
Project: WildFly Core
Issue Type: Bug
Components: CLI
Reporter: Marek Kopecký
Assignee: Jean-Francois Denise
ExceptionInInitializerError during create of CLI object on client app.
*Steps to reproduce:*
# create simple CLI client app, for example: {code:java}public class App {
public static void main(String[] args) throws Exception {
CLI cli = CLI.newInstance();
}
} {code}
# start this application
*Actual results:*
{noformat}
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
{noformat}
*Expected results:*
No errors
*Additional info:*
See attached application:
{noformat}
# 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
{noformat}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list