You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2021. It is now read-only.
It appears that the minimum supported Java version is not 7, as the documentation indicates. Running ./oltpbench --help with Java 11 (or any variant, really) yielded a StringOutOfBounds exception.
$ oltpbench master ./oltpbenchmark --help > java.txt
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.commons.configuration.ConfigurationUtils.toURL(ConfigurationUtils.java:739)
at org.apache.commons.configuration.ConfigurationUtils.locate(ConfigurationUtils.java:518)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:213)
at org.apache.commons.configuration.AbstractFileConfiguration.load(AbstractFileConfiguration.java:197)
at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.load(AbstractHierarchicalFileConfiguration.java:164)
at org.apache.commons.configuration.AbstractHierarchicalFileConfiguration.<init>(AbstractHierarchicalFileConfiguration.java:91)
at org.apache.commons.configuration.XMLConfiguration.<init>(XMLConfiguration.java:243)
at com.oltpbenchmark.DBWorkload.main(DBWorkload.java:87)
Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
at java.base/java.lang.String.substring(String.java:1874)
at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1133)
at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818)
... 8 more
No matter what config file I put in, I always got this same exception. I tried a couple sample configs, suggested in the tutorial, and a small custom config file. Even passing no parameters at all and just running ./oltpbench threw the same error.
However, upgrading to JDK 15 fixed the issue. This indicates to me that earlier versions are no longer supported.
It appears that the minimum supported Java version is not 7, as the documentation indicates. Running
./oltpbench --helpwith Java 11 (or any variant, really) yielded aStringOutOfBoundsexception.No matter what config file I put in, I always got this same exception. I tried a couple sample configs, suggested in the tutorial, and a small custom config file. Even passing no parameters at all and just running
./oltpbenchthrew the same error.However, upgrading to JDK 15 fixed the issue. This indicates to me that earlier versions are no longer supported.