-
Notifications
You must be signed in to change notification settings - Fork 131
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 #360
Comments
Hi @ekaterinadimitrova2 and thanks for your question. Did you read this article on the topic: |
Thank you so much for the quick response and the article. I ended up calling java with the exports mentioned plus |
Below is an excerpt from Cassandra pom:
I am evaluating the impact of those modules missing. Can you advise me, please? |
minborg Do you have any idea whether we should expect performance degradation, or runtime exceptions, or both? |
Hi @ekaterinadimitrova2 . Unless you see a warning like following
there should be no performance impact. As |
I am working to migrate the cassandra project to Java 17.
I updated all our chronicle dependencies to the latest version. Here is a reference to the build file: https://github.com/ekaterinadimitrova2/cassandra/blob/16895-v3/build.xml#L141-L145
But I still get the below error:
error: module java.base does not open java.lang.reflect to unnamed module @52f27fbd
-- StackTrace --
java.lang.IllegalAccessException: module java.base does not open java.lang.reflect to unnamed module @52f27fbd
at java.base/java.lang.invoke.MethodHandles.privateLookupIn(MethodHandles.java:259)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at net.openhft.chronicle.core.Jvm.getSetAccessible0Method(Jvm.java:224)
at net.openhft.chronicle.core.Jvm.(Jvm.java:134)
at net.openhft.chronicle.core.io.AbstractReferenceCounted.(AbstractReferenceCounted.java:16)
at net.openhft.chronicle.bytes.BytesStore.wrap(BytesStore.java:104)
at net.openhft.chronicle.bytes.BytesStore.from(BytesStore.java:90)
at net.openhft.chronicle.wire.WireType.(WireType.java:354)
at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder.binary(SingleChronicleQueueBuilder.java:222)
at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder.binary(SingleChronicleQueueBuilder.java:218)
at net.openhft.chronicle.queue.impl.single.SingleChronicleQueueBuilder.single(SingleChronicleQueueBuilder.java:206)
at org.apache.cassandra.fqltool.commands.Replay.lambda$replay$3(Replay.java:122)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.apache.cassandra.fqltool.commands.Replay.replay(Replay.java:122)
at org.apache.cassandra.fqltool.commands.Replay.run(Replay.java:92)
at org.apache.cassandra.fqltool.FullQueryLogTool.main(FullQueryLogTool.java:65)
I also already added on our end (I saw recommendations on other chronicle issues) --add-opens java.base/jdk.internal.reflect=ALL-UNNAMED and --add-exports java.base/java.lang.reflect=ALL-UNNAMED but I still get the same error. Please advise as this is a blocker for me. Thank you in advance for your support!
The text was updated successfully, but these errors were encountered: