[ https://issues.apache.org/jira/browse/OAK-10482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke closed OAK-10482. -------------------------------- > CLONE - UpgradeIT fails on Java 17 > ---------------------------------- > > Key: OAK-10482 > URL: https://issues.apache.org/jira/browse/OAK-10482 > Project: Jackrabbit Oak > Issue Type: Technical task > Components: segment-tar > Reporter: Marcel Reutegger > Assignee: Julian Reschke > Priority: Minor > > Multiple tests in UpgradeIT fail when run with Java 17. > E.g. UpgradeIT.openReadonlyDoesNotUpgradeStore() fails with: > {noformat} > java.lang.IllegalStateException: Cannot start readonly store from empty > journal > at > org.apache.jackrabbit.oak.segment.file.ReadOnlyRevisions.bind(ReadOnlyRevisions.java:65) > at > org.apache.jackrabbit.oak.segment.file.ReadOnlyFileStore.bind(ReadOnlyFileStore.java:91) > at > org.apache.jackrabbit.oak.segment.file.FileStoreBuilder.buildReadOnly(FileStoreBuilder.java:494) > at > org.apache.jackrabbit.oak.segment.upgrade.UpgradeIT.openReadonlyDoesNotUpgradeStore(UpgradeIT.java:86) > {noformat} > The real problem is in setup(). Creating the Oak 1.6 repository fails > silently, but running the command manually shows the reason of the failure: > {noformat} > Apache Jackrabbit Oak 1.6.2 > Exception in thread "main" groovy.lang.MissingPropertyException: No such > property: class for class: org.apache.jackrabbit.oak.console.GroovyConsole > at > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53) > at > org.codehaus.groovy.vmplugin.v7.IndyGuardsFiltersAndSignatures.unwrap(IndyGuardsFiltersAndSignatures.java:177) > at > org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:232) > at org.codehaus.groovy.tools.shell.Shell.<init>(Shell.groovy:35) > at org.codehaus.groovy.tools.shell.Groovysh.<init>(Groovysh.groovy:92) > at > org.apache.jackrabbit.oak.console.GroovyConsole$OakSh.<init>(GroovyConsole.groovy:150) > at > org.apache.jackrabbit.oak.console.GroovyConsole.prepareShell(GroovyConsole.groovy:90) > at > org.apache.jackrabbit.oak.console.GroovyConsole.<init>(GroovyConsole.groovy:64) > at org.apache.jackrabbit.oak.console.Console.main(Console.java:155) > {noformat} > It looks like the groovy version in oak-run 1.6.2 does not work well with > Java 17. -- This message was sent by Atlassian Jira (v8.20.10#820010)