okvutil and root.sh Fails With 'Error: Unable to get current installed JDK/JRE version' (Doc ID 2280016.1)

Last updated on JUNE 26, 2017

Applies to:

Oracle Key Vault - Version 12.2.0.0 and later
Information in this document applies to any platform.

Symptoms

OKV 12.2.0.4
The endpoint Database is 12.1.0.2.0 on Oracle Solaris x86 10.5.

1.okvutil fails: java -jar okvclient.jar -d /u03/export/okvutil -v

printf: %05s: invalid conversion specification
Error: Unable to get current installed JDK/JRE version.

Jun 5, 2017 4:49:51 PM oracle.okv.platform.okvutil.OkvDeployHandler installOkvutil
SEVERE: Error while executing command: [/u01/app/oracle/okv4//bin/okvutil, install, -v, 3]
Jun 5, 2017 4:49:51 PM oracle.okv.platform.okvutil.OkvDeployHandler main
SEVERE: Error occurred during install/upgrade of Oracle Key Vault endpoint software. Check log files for more information.
java.lang.Exception: Error occurred during install/upgrade of Oracle Key Vault endpoint software. Check log files for more information.
at oracle.okv.platform.okvutil.OkvDeployHandler.installOkvutil(OkvDeployHandler.java:324)
at oracle.okv.platform.okvutil.OkvDeployHandler.install(OkvDeployHandler.java:199)
at oracle.okv.platform.okvutil.OkvDeployHandler.execute(OkvDeployHandler.java:857)
at oracle.okv.platform.okvutil.OkvDeployHandler.main(OkvDeployHandler.java:999)

2. root.sh fails

root@dbatest-kn-t2 [dbfx-kn-t32] # pwd
/u01/app/oracle/okv9
root@dbatest-kn-t2 [dbfx-kn-t32] # bin/root.sh
bin/root.sh: test: argument expected

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms