Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-8048

Fuse 7 can't be started on Solaris 11, Aix 7.2

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-7.0
    • fuse-7.0
    • Karaf
    • None
    • % %
    • Fuse 7.0 Sprint 28

      export JAVA_HOME=/qa/tools/opt/solaris11_sparc/jdk1.8.0_last
      hudson@solaris2-03-fuseqe:~/workspace/avano-deleteme/fuse-karaf-7.0.0.fuse-000179$ bin/fuse
      sed: command garbled: s/_.*//g; s/^1\.//g ; s/\..*//g;
      awk: can't open /version/ {print $2}
      karaf: JVM must be greater than 1.8
      

      the sed command is in bin/inc:

      210 checkJvmVersion() {
      211     VERSION=$("${JAVA}" -version 2>&1 | awk -F '"' '/version/ {print $2}' | sed -e 's/_.*//g; s/^1\.//g ; s/\..*//g;')
      212     if [ "${VERSION}" -lt "8" ]; then
      213         die "JVM must be greater than 1.8"
      214     fi
      215 }
      

            [ENTESB-8048] Fuse 7 can't be started on Solaris 11, Aix 7.2

            Andrej Vano added a comment -

            Verified with 191-redhat-1

            Andrej Vano added a comment - Verified with 191-redhat-1

            Hi acosenti, bad news, we got a new HP-UX machine and karaf 7.0.0.186 does not start after the last change:

            [hudson@hpux1-fuseqe fuse-karaf-7.0.0.fuse-000186]$ bin/fuse
            bin/karaf[2]: test: Specify a parameter with this command.
            bin/karaf[17]: readlink:  not found.
            karaf: JVM must be greater than 1.8
            

            The most important this is (probably again) "karaf: JVM must be greater than 1.8" - HP java does not use _ in java version:

            [hudson@hpux1-fuseqe java8]$ ./bin/java -version
            java version "1.8.0.13-hp-ux"
            Java(TM) SE Runtime Environment (build 1.8.0.13-hp-ux-b1)
            Java HotSpot(TM) Server VM (build 25.13-b1, mixed mode)
            

            so the parsing of major version will return "0" instead of "8":

            [hudson@hpux1-fuseqe java8]$ ./bin/java -version 2>&1 | grep -i version
            java version "1.8.0.13-hp-ux"
            [hudson@hpux1-fuseqe java8]$ ./bin/java -version 2>&1 | grep -i version | sed 's/.*version ".*\.\(.*\)\..*"/\1/; 1q'
            0
            

            Andrej Vano added a comment - Hi acosenti , bad news, we got a new HP-UX machine and karaf 7.0.0.186 does not start after the last change: [hudson@hpux1-fuseqe fuse-karaf-7.0.0.fuse-000186]$ bin/fuse bin/karaf[2]: test: Specify a parameter with this command. bin/karaf[17]: readlink: not found. karaf: JVM must be greater than 1.8 The most important this is (probably again) "karaf: JVM must be greater than 1.8" - HP java does not use _ in java version: [hudson@hpux1-fuseqe java8]$ ./bin/java -version java version "1.8.0.13-hp-ux" Java(TM) SE Runtime Environment (build 1.8.0.13-hp-ux-b1) Java HotSpot(TM) Server VM (build 25.13-b1, mixed mode) so the parsing of major version will return "0" instead of "8": [hudson@hpux1-fuseqe java8]$ ./bin/java -version 2>&1 | grep -i version java version "1.8.0.13-hp-ux" [hudson@hpux1-fuseqe java8]$ ./bin/java -version 2>&1 | grep -i version | sed 's/.*version ".*\.\(.*\)\..*" /\1/; 1q' 0

              acosenti Andrea Cosentino
              avano@redhat.com Andrej Vano
              Andrej Vano Andrej Vano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: