You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Sreedhar J (Jira)" <ji...@apache.org> on 2024/12/15 11:02:00 UTC

[jira] [Updated] (CASSJAVA-64) Unable to run the Cassandra Integration tests using failsafe-maven-plugin with JDK 17

     [ https://issues.apache.org/jira/browse/CASSJAVA-64?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sreedhar J updated CASSJAVA-64:
-------------------------------
    Summary: Unable to run the Cassandra Integration tests using failsafe-maven-plugin with JDK 17  (was: Unable to run the Integration tests using failsafe-maven-plugin with JDK 17)

> Unable to run the Cassandra Integration tests using failsafe-maven-plugin with JDK 17
> -------------------------------------------------------------------------------------
>
>                 Key: CASSJAVA-64
>                 URL: https://issues.apache.org/jira/browse/CASSJAVA-64
>             Project: Apache Cassandra Java driver
>          Issue Type: Bug
>            Reporter: Sreedhar J
>            Priority: Normal
>
> We were trying to upgrade the  JDK 8 to JDK 17 with Cassandra 4.x  Our code is getting compiled with JDK 17, when we disable the integration tests.  But with integration tests , getting the following error.
> Caused by: com.datastax.oss.driver.api.core.AllNodesFailedException: All 1 node(s) tried for the query failed (showing first 1 nodes, use getAllErrors() for more): Node(endPoint=localhost/127.0.0.1:45722, hostId=96a8f2e3-6d3a-4ee0-9ea1-be465a95ee51, hashCode=64d12862): [com.datastax.oss.driver.api.core.servererrors.ServerError: java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java.lang" to unnamed module @2db234a5]
>         at com.datastax.oss.driver.api.core.AllNodesFailedException.copy(AllNodesFailedException.java:141)
>         at com.datastax.oss.driver.internal.core.util.concurrent.CompletableFutures.getUninterruptibly(CompletableFutures.java:149)
>         at com.datastax.oss.driver.internal.core.cql.CqlPrepareSyncProcessor.process(CqlPrepareSyncProcessor.java:59)
>         at com.datastax.oss.driver.internal.core.cql.CqlPrepareSyncProcessor.process(CqlPrepareSyncProcessor.java:31)
>         at com.datastax.oss.driver.internal.core.session.DefaultSession.execute(DefaultSession.java:230)
>         at com.datastax.oss.driver.api.core.cql.SyncCqlSession.prepare(SyncCqlSession.java:224)
>         at com.ibm.profiler.cassandra.ProfiledSession.prepare(ProfiledSession.java:114)
>         at com.ibm.mailbox.database.dao.cassandra.CassandraDAO$PreparedStatementCacheLoader.load(CassandraDAO.java:154)
>         at com.ibm.mailbox.database.dao.cassandra.CassandraDAO$PreparedStatementCacheLoader.load(CassandraDAO.java:1)
>         at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3570)
>         at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2312)
>         at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2189)
>         at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2079)
>         at com.google.common.cache.LocalCache.get(LocalCache.java:4011)
>         at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4034)
>         at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5010)
>         at com.ibm.mailbox.database.dao.cassandra.CassandraDAO$PreparedStatementCache.getEntry(CassandraDAO.java:218)
>         at com.ibm.mailbox.database.dao.cassandra.CassandraDAO.prepareStatement(CassandraDAO.java:904)
>         ... 39 more
>         Suppressed: com.datastax.oss.driver.api.core.servererrors.ServerError: java.lang.reflect.InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java.lang" to unnamed module @2db234a5
> In the failsafe-maven plugin,  gave the following argline parameters but it still fails.
>       <argLine>
>                                                        ${java.17.options}
>                                                       -Djdk.net.URLClassPath.disableClassPathURLCheck=true
>                                                       -XX:+AllowRedefinitionToAddDeleteMethods
>                                                 </argLine>
>     <java.17.options>--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED
>             --add-opens=java.base/jdk.internal.misc=ALL-UNNAMED
>             --add-opens=java.base/sun.nio.ch=ALL-UNNAMED
>             --add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
>             --add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
>             --add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
>             --add-opens=java.base/java.io=ALL-UNNAMED
>             --add-opens=java.base/java.nio=ALL-UNNAMED
>             --add-opens=java.base/java.util=ALL-UNNAMED
>             --add-opens=java.base/java.lang=ALL-UNNAMED
>             --add-opens=java.base/java.lang.reflect=ALL-UNNAMED
>             --add-opens=java.base/java.lang.invoke=ALL-UNNAMED
>             --add-opens=java.base/java.time=ALL-UNNAMED
>             --add-opens=java.base/java.time.format=ALL-UNNAMED</java.17.options>



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org