Details

    • Type: Bug
    • Status: Verified (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 7.1.0.GA, 7.2.0.GA
    • Fix Version/s: 7.3.0.Beta
    • Component/s: Installer
    • Labels:
      None
    • Target Release:
    • Steps to Reproduce:
      Hide

      Scenario Oracle JDK and IBM JDK

      Requirements to Reproduce:

      • Installed Oracle JDK 1.8 (build any) and integrated into the system ( $PATH, $JAVA_HOME ... )
      • Installed IBM Java SDK 1.8 (build any) and NOT integrated into the system

      Steps to Reproduce:

      1. Start installation with external IBM Java SDK 1.8 e.q.:
         /var/jdks/ibm-java-x86_64-80-26/bin/java -Duser.home=/tmp/2018-12-06 -jar /media/Data/Installers/JBEAP-7.2.0.GA.CR2/jboss-eap-7.2.0.GA.CR2-installer.jar
        
      2. Continue installation and use any valid values until reach "Configure Runtime Environment section"
      3. Select options:
        1. Perform advanced configuration
        2. Install password vault
      4. Then continue installation with any valid values.
      5. In section "Starting processing" installation fail

      Scenario JDK 8 and JDK 7

      Requirements to Reproduce:

      • Installed Oracle JDK 1.7 (build any) and integrated into the system ( $PATH, $JAVA_HOME ... )
      • Installed Oracle JDK 1.8 (build any) and NOT integrated into the system
      • Original scenario ran on lab hpux machine

      Steps to Reproduce:

      1. Start installation with external Oracle JDK 1.8 e.q.:
        /qa/tools/opt/hpux_ia/java8_14/bin/java -Duser.home=/tmp/hudson/test-EAP -jar /tmp/hudson/jboss-eap-7.2.0.GA.CR2-installer.jar
        
      2. Continue installation and use any valid values until reach "Configure Runtime Environment section"
      3. Select options:
        1. Perform advanced configuration
        2. Install quickstarts
        3. Configure server port bindings
        4. Configure logging levels
      4. Then continue installation with any valid values.
      5. In section "Starting processing" installation fail
      Show
      Scenario Oracle JDK and IBM JDK Requirements to Reproduce: Installed Oracle JDK 1.8 (build any) and integrated into the system ( $PATH, $JAVA_HOME ... ) Installed IBM Java SDK 1.8 (build any) and NOT integrated into the system Steps to Reproduce: Start installation with external IBM Java SDK 1.8 e.q.: / var /jdks/ibm-java-x86_64-80-26/bin/java -Duser.home=/tmp/2018-12-06 -jar /media/Data/Installers/JBEAP-7.2.0.GA.CR2/jboss-eap-7.2.0.GA.CR2-installer.jar Continue installation and use any valid values until reach "Configure Runtime Environment section" Select options: Perform advanced configuration Install password vault Then continue installation with any valid values. In section "Starting processing" installation fail Scenario JDK 8 and JDK 7 Requirements to Reproduce: Installed Oracle JDK 1.7 (build any) and integrated into the system ( $PATH, $JAVA_HOME ... ) Installed Oracle JDK 1.8 (build any) and NOT integrated into the system Original scenario ran on lab hpux machine Steps to Reproduce: Start installation with external Oracle JDK 1.8 e.q.: /qa/tools/opt/hpux_ia/java8_14/bin/java -Duser.home=/tmp/hudson/test-EAP -jar /tmp/hudson/jboss-eap-7.2.0.GA.CR2-installer.jar Continue installation and use any valid values until reach "Configure Runtime Environment section" Select options: Perform advanced configuration Install quickstarts Configure server port bindings Configure logging levels Then continue installation with any valid values. In section "Starting processing" installation fail

      Description

      Inside of Installer is calling java tools.
      But for this call is used only system default java.
      In case you need to run the installer with different java, internal calls used the wrong path of java.
      If these Java versions are incompatible then cause installation failure.
      The issue is for both mode GUI and Console.

      The issue appeared with the latest installer but also with version 7.1.0.

      Here are two of many possible scenarios which lead to failure by conflict of java version

      • Scenario Oracle JDK and IBM JDK
      • Scenario JDK 8 and JDK 7

      Scenario Oracle JDK and IBM JDK

      [vmarek@dhcp-10-40-5-24 ~]$ /var/jdks/ibm-java-x86_64-80-26/bin/java -version
      java version "1.8.0_191"
      Java(TM) SE Runtime Environment (build 8.0.5.26 - pxa6480sr5fp26-20181115_03(SR5 FP26))
      IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20181106_401576 (JIT enabled, AOT enabled)
      OpenJ9   - fde1d6f
      OMR      - d8c3617
      IBM      - 5c4a9f0)
      JCL - 20181022_01 based on Oracle jdk8u191-b26
      [vmarek@dhcp-10-40-5-24 ~]$ java -version
      java version "1.8.0_152"
      Java(TM) SE Runtime Environment (build 1.8.0_152-b16)
      Java HotSpot(TM) 64-Bit Server VM (build 25.152-b16, mixed mode)
      [vmarek@dhcp-10-40-5-24 ~]$ /var/jdks/ibm-java-x86_64-80-26/bin/java -Duser.home=/tmp/2018-12-06 -jar /media/Data/Installers/JBEAP-7.2.0.GA.CR2/jboss-eap-7.2.0.GA.CR2-installer.jar -console
      
      Starting process Advanced standalone configuration - Vault (6/28)
      Vault creation failed.
      java.lang.Exception: WFLYSEC0045: Exception encountered:
      	at org.jboss.as.security.vault.VaultSession.initSecurityVault(VaultSession.java:194)
      	at org.jboss.as.security.vault.VaultSession.startVaultSession(VaultSession.java:212)
      	at com.redhat.installer.asconfiguration.ascontroller.EmbeddedServerCommands.createVaultSession(EmbeddedServerCommands.java:159)
      	at com.redhat.installer.asconfiguration.processpanel.postinstallation.Vault.initVaultSession(Vault.java:40)
      	at com.redhat.installer.asconfiguration.processpanel.postinstallation.CustomVault.performOperation(CustomVault.java:25)
      	at com.redhat.installer.asconfiguration.processpanel.postinstallation.PostInstallation.run(PostInstallation.java:33)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
      	at java.lang.reflect.Method.invoke(Method.java:508)
      	at com.izforge.izpack.installer.ProcessPanelWorker$ExecutableClass.run(ProcessPanelWorker.java:755)
      	at com.izforge.izpack.installer.ProcessPanelWorker$ProcessingJob.run(ProcessPanelWorker.java:511)
      	at com.izforge.izpack.installer.ProcessPanelWorker.runJob(ProcessPanelWorker.java:456)
      	at com.izforge.izpack.installer.ProcessPanelWorker.run(ProcessPanelWorker.java:373)
      	at com.izforge.izpack.panels.ProcessPanelConsoleHelper.runConsole(ProcessPanelConsoleHelper.java:126)
      	at com.izforge.izpack.installer.ConsoleInstaller.iterateAndPerformAction(ConsoleInstaller.java:298)
      	at com.izforge.izpack.installer.ConsoleInstaller.doInstall(ConsoleInstaller.java:653)
      	at com.izforge.izpack.installer.ConsoleInstaller.run(ConsoleInstaller.java:791)
      	at com.izforge.izpack.installer.Installer.main(Installer.java:201)
      Caused by: org.jboss.security.vault.SecurityVaultException: java.lang.RuntimeException: PBOX00140: Unable to get keystore (/tmp/2018-12-06/EAP-7.2.0/Pass/key.keystore)
      	at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:210)
      	at org.jboss.as.security.vault.VaultSession.initSecurityVault(VaultSession.java:191)
      	... 18 more
      Caused by: java.lang.RuntimeException: PBOX00140: Unable to get keystore (/tmp/2018-12-06/EAP-7.2.0/Pass/key.keystore)
      	at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:691)
      	at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:205)
      	... 19 more
      Caused by: java.io.IOException: com.sun.crypto.provider.SealedObjectForKeyProtector
      	at com.ibm.crypto.provider.JceKeyStore.engineLoad(Unknown Source)
      	at java.security.KeyStore.load(KeyStore.java:1456)
      	at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:201)
      	at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:151)
      	at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:688)
      	... 20 more
      Pro 06, 2018 4:03:38 ODP. org.jboss.as.controller.AbstractOperationContext executeStep
      ERROR: WFLYCTL0013: Operation ("add") failed - address: ([("core-service" => "vault")])
      org.jboss.as.server.services.security.VaultReaderException: WFLYSRV0076: Error initializing vault --  org.jboss.security.vault.SecurityVaultException: java.lang.RuntimeException: PBOX00140: Unable to get keystore (/tmp/2018-12-06/EAP-7.2.0/Pass/key.keystore)
      	at org.jboss.as.server.services.security.VaultReaderImpl.createVault(RuntimeVaultReader.java:159)
      	at org.jboss.as.server.services.security.RuntimeVaultReader.createVault(RuntimeVaultReader.java:100)
      	at org.jboss.as.server.services.security.VaultAddHandler.performRuntime(VaultAddHandler.java:82)
      	at org.jboss.as.controller.AbstractAddStepHandler.performRuntime(AbstractAddStepHandler.java:338)
      	at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:159)
      	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:999)
      	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:743)
      	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:467)
      	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1411)
      	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:423)
      	at org.jboss.as.controller.ModelControllerImpl.lambda$execute$1(ModelControllerImpl.java:243)
      	at org.jboss.as.controller.ModelControllerImpl$$Lambda$499.0000000070E037A0.run(Unknown Source)
      	at org.wildfly.security.auth.server.SecurityIdentity$$Lambda$497.0000000070E02EC0.run(Unknown Source)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:265)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:231)
      	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:243)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$$Lambda$507.000000004050EAD0.apply(Unknown Source)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.executeInModelControllerCl(ModelControllerClientFactoryImpl.java:259)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.lambda$runOperation$0(ModelControllerClientFactoryImpl.java:249)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$$Lambda$506.0000000040152530.run(Unknown Source)
      	at org.jboss.as.controller.access.InVmAccess.runInVm(InVmAccess.java:63)
      	at org.jboss.as.controller.SecurityActions$InVmActions$1.runInVm(SecurityActions.java:149)
      	at org.jboss.as.controller.SecurityActions.runInVm(SecurityActions.java:49)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.runOperation(ModelControllerClientFactoryImpl.java:249)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient.access$600(ModelControllerClientFactoryImpl.java:114)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2$1.run(ModelControllerClientFactoryImpl.java:199)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2$1.run(ModelControllerClientFactoryImpl.java:194)
      	at org.wildfly.security.auth.server.SecurityIdentity$$Lambda$497.0000000070E02EC0.run(Unknown Source)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:265)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:231)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:198)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:175)
      	at org.jboss.as.controller.ModelControllerClientFactoryImpl$LocalClient$2.run(ModelControllerClientFactoryImpl.java:194)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
      	at java.lang.Thread.run(Thread.java:812)
      Caused by: org.jboss.security.vault.SecurityVaultException: java.lang.RuntimeException: PBOX00140: Unable to get keystore (/tmp/2018-12-06/EAP-7.2.0/Pass/key.keystore)
      	at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:210)
      	at org.jboss.as.server.services.security.VaultReaderImpl.createVault(RuntimeVaultReader.java:157)
      	... 35 more
      Caused by: java.lang.RuntimeException: PBOX00140: Unable to get keystore (/tmp/2018-12-06/EAP-7.2.0/Pass/key.keystore)
      	at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:691)
      	at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:205)
      	... 36 more
      Caused by: java.io.IOException: com.sun.crypto.provider.SealedObjectForKeyProtector
      	at com.ibm.crypto.provider.JceKeyStore.engineLoad(Unknown Source)
      	at java.security.KeyStore.load(KeyStore.java:1456)
      	at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:201)
      	at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:151)
      	at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:688)
      	... 37 more
      
      Pro 06, 2018 4:03:38 ODP. org.jboss.as.cli.impl.CommandContextImpl print
      ERROR: {
          "outcome" => "failed",
          "failure-description" => "WFLYCTL0158: Operation handler failed: org.jboss.as.server.services.security.VaultReaderException: WFLYSRV0076: Error initializing vault --  org.jboss.security.vault.SecurityVaultException: java.lang.RuntimeException: PBOX00140: Unable to get keystore (/tmp/2018-12-06/EAP-7.2.0/Pass/key.keystore)",
          "rolled-back" => true
      }
      Vault installation failed.
      Starting process Onfail Server Shutdown Job (7/28)
      Pro 06, 2018 4:03:38 ODP. org.jboss.as.server.ApplicationServerService stop
      INFO: WFLYSRV0050: JBoss EAP 7.2.0.GA (WildFly Core 6.0.11.Final-redhat-00001) stopped in 18ms
      Shut down embedded server.
      
      
      org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:691)
      

      File /tmp/2018-12-06/EAP-7.2.0/Pass/key.keystore are exist and is not empty, but it is generated different by java that try to read them.

      Scenario JDK 8 and JDK 7

      hudson@eap-perf-hpux-03.mw.lab.eng.bos.redhat.com:/tmp/hudson>echo $JAVA_HOME
      /qa/tools/opt/hpux_ia/java7
      
      hudson@eap-perf-hpux-03.mw.lab.eng.bos.redhat.com:/tmp/hudson>echo $PATH
      /qa/tools/opt/apache-ant-1.8.1/bin:/qa/tools/opt/maven3-latest/bin:/qa/tools/opt/node-latest/bin:/qa/tools/opt/hpux_ia/java7/bin:/usr/xpg4/bin:/usr/sbin:/opt/java7/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/gvsd/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/wli/bin:/opt/graphics/common/bin:/opt/hpvm/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/usr/contrib/kwdb/bin:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/propplus/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/langtools/bin:/opt/gwlm/bin:/opt/ignite/bin:/opt/aCC/bin:/opt/caliper/bin:/opt/cadvise/bin:/opt/sentinel/bin:/opt/hp-gcc/bin:/home/hudson/bin
      
      hudson@eap-perf-hpux-03.mw.lab.eng.bos.redhat.com:/tmp/hudson>/qa/tools/opt/hpux_ia/java8_14/bin/java -Duser.home=/tmp/hudson/test-EAP -jar /tmp/hudson/jboss-eap-7.2.0.Beta.CR1-installer.jar -console
      
        [ Starting processing ]
      Starting process Logging installation information (1/35)
      IzPack variable state written to /tmp/hudson/test-EAP/EAP-7.2.0/installation/InstallationLog.txt
      Starting process Adding admin user (2/35)
      Exception in thread "main" java.lang.UnsupportedClassVersionError: org/jboss/modules/Main : Unsupported major.minor version 52.0
              at java.lang.ClassLoader.defineClass1(Native Method)
              at java.lang.ClassLoader.defineClass(ClassLoader.java:803)
              at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
              at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
              at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
              at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
              at java.security.AccessController.doPrivileged(Native Method)
              at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
              at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
      Command failure. Failed with exit code: 1
      Starting process Onfail Server Shutdown Job (3/35)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                spyrkob Bartosz Spyrko-Smietanko
                Reporter:
                vmarek Vratislav Marek
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: