Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java 17 Exception #119

Closed
silvanheller opened this issue May 10, 2022 · 1 comment
Closed

Java 17 Exception #119

silvanheller opened this issue May 10, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@silvanheller
Copy link
Member

When building & starting Cottontail on Java 17, an exception is thrown at startup (see below). This does not seem to impact performance or functionality as far as i can tell.

java.lang.reflect.InaccessibleObjectException: Unable to make public void sun.nio.ch.FileChannelImpl.setUninterruptible() accessible: module java.base does not "exports sun.nio.ch" to unnamed module @49b70bc7
	at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) ~[?:?]
	at java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) ~[?:?]
	at java.lang.reflect.Method.checkCanSetAccessible(Method.java:199) ~[?:?]
	at java.lang.reflect.Method.setAccessible(Method.java:193) ~[?:?]
	at jetbrains.exodus.io.FileDataWriter$Companion$setUninterruptibleMethod$1.invoke(FileDataWriter.kt:188) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.io.FileDataWriter$Companion$setUninterruptibleMethod$1.invoke(FileDataWriter.kt:185) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.util.UnsafeHolder.doPrivileged$lambda-0(UnsafeHolder.kt:30) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at java.security.AccessController.doPrivileged(AccessController.java:569) ~[?:?]
	at jetbrains.exodus.util.UnsafeHolder.doPrivileged(UnsafeHolder.kt:29) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.io.FileDataWriter.<clinit>(FileDataWriter.kt:185) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.io.FileDataReaderWriterProvider.newFileDataWriter(FileDataReaderWriterProvider.kt:48) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.io.FileDataReaderWriterProvider.newReaderWriter(FileDataReaderWriterProvider.kt:30) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.log.LogConfig.createReaderWriter(LogConfig.java:359) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.log.LogConfig.getReader(LogConfig.java:125) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.log.Log.<init>(Log.kt:52) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.env.Environments.newLogInstance(Environments.kt:117) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.env.Environments.newLogInstance(Environments.kt:81) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.env.Environments.newLogInstance(Environments.kt:77) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.env.Environments$newInstance$4.invoke(Environments.kt:46) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.env.Environments$newInstance$4.invoke(Environments.kt:46) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.env.Environments.prepare(Environments.kt:120) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at jetbrains.exodus.env.Environments.newInstance(Environments.kt:46) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at org.vitrivr.cottontail.dbms.catalogue.DefaultCatalogue.<init>(DefaultCatalogue.kt:80) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at org.vitrivr.cottontail.server.CottontailServer.<init>(CottontailServer.kt:24) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at org.vitrivr.cottontail.CottontailKt.embedded(Cottontail.kt:173) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at org.vitrivr.cottontail.CottontailKt.standalone(Cottontail.kt:121) ~[cottontaildb-dbms-0.15.0-all.jar:?]
	at org.vitrivr.cottontail.CottontailKt.main(Cottontail.kt:38) ~[cottontaildb-dbms-0.15.0-all.jar:?]
@silvanheller silvanheller added the enhancement New feature or request label May 10, 2022
@ppanopticon
Copy link
Member

This is a Xodus issue and unfortunately, there is nothing I can do about it.

However, it will be fixed in a future version and indeed, it should not affect the functionality in any way. See XD-856

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants