Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-839

RHDM installer fails due java.lang.ClassCastException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.3.0.GA
    • 7.2.0.GA
    • Installer
    • Windows 10 / 2012 / 2016

    • 2019 Week 05-07, 2019 Week 08-10

      1. Install EAP 7.2.0 with jboss-eap-7.2.0-installer.jar (not zip installation)
      2. Install RHDM 7.2.0 with rhdm-installer-7.2.0.jar
      3. Proceed the installer wizard using default configurations
      4. At "Server Configuration", it fails with the error message (See rhdm-installer-windows.png)

      java.util.concurrent.ExecutionException: org.jboss.as.cli.CommandLineException: Cannot start embedded server
      

      It doesn't log stack trace. But I attached a debugger:

      Daemon Thread [CLI command executor] (Suspended (breakpoint at line 33 in CommandLineException))	
      	CommandLineException.<init>(String, Throwable) line: 33	
      	EmbedServerHandler.doHandle(CommandContext) line: 301	
      	EmbedServerHandler(CommandHandlerWithHelp).handle(CommandContext) line: 89	
      	CommandExecutor$2.lambda$build$0(CommandHandler) line: 685	
      	1195558661.execute() line: not available	
      	CommandExecutor.lambda$execute$0(CommandExecutor$ExecutableBuilder) line: 708	
      	965109839.call() line: not available	
      	FutureTask<V>.run() line: not available	
      	ThreadPoolExecutor.runWorker(ThreadPoolExecutor$Worker) line: not available	
      	ThreadPoolExecutor$Worker.run() line: not available	
      	Thread.run() line: not available
      

      The root cause Exception (viewed by debugger) is:

      java.lang.ClassCastException: org.jboss.as.controller.client.helpers.DelegatingModelControllerClient cannot be cast to org.jboss.as.controller.client.ModelControllerClient
      

      It's strange because DelegatingModelControllerClient implements ModelControllerClient. (Not sure if https://issues.jboss.org/browse/WFLY-10529 is relevant. I don't use IBM JDK)

      Another JIRA was filed for the CommandLineException but it's JDK 11 so not likely related to this issue. (I use Oracle JDK 8)
      https://issues.jboss.org/browse/JBEAP-15283

      IMPORTANT: Also note that the rhdm installer succeeds when installing to EAP which was zip installation (= not installed by jboss-eap-7.2.0-installer.jar)

            almorale Alberto Morales PĂ©rez (Inactive)
            rhn-support-tkobayas Toshiya Kobayashi
            Dominik Hanak Dominik Hanak
            Dominik Hanak Dominik Hanak
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: