[ 
https://issues.apache.org/jira/browse/CASSANDRA-15258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17008431#comment-17008431
 ] 

Gus Heck commented on CASSANDRA-15258:
--------------------------------------

However, I checked out the rev from the 9608 commit, build a jar (verified that 
it had mrjar directories and manifest by opening it up) and installed it to the 
maven local repo, and that did not fix the above stack trace. Reading the 
commit further on  a hunch, I found what is likely the culprit: The code 
presumes that the following jvm args are present:
{code}
### JPMS

-Djdk.attach.allowAttachSelf=true
--add-exports java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens java.base/jdk.internal.module=ALL-UNNAMED
--add-exports java.base/jdk.internal.ref=ALL-UNNAMED
--add-exports java.base/sun.nio.ch=ALL-UNNAMED
--add-exports java.management.rmi/com.sun.jmx.remote.internal.rmi=ALL-UNNAMED
--add-exports java.rmi/sun.rmi.registry=ALL-UNNAMED
--add-exports java.rmi/sun.rmi.server=ALL-UNNAMED
--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED

 {code}

That's very bad for any embeded or test use cases that are not started via the 
cassandra startup scripts....

> Cassandra JDK11  not working
> ----------------------------
>
>                 Key: CASSANDRA-15258
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15258
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Build, Local/Startup and Shutdown
>            Reporter: RamyaK
>            Priority: Urgent
>              Labels: windows
>
> I'm trying to setup Cassandra 4.0 trunk with OpenJDK11, but getting below 
> error on start up.
>  
> +     $content = Get-Content "$env:CASSANDRA_CONF\jvm.options"
> +                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>     + CategoryInfo          : ObjectNotFound: 
> (D:\Stuff\save\C...onf\jvm.options:String) [Get-Content], 
> ItemNotFoundException
>     + FullyQualifiedErrorId : 
> PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand
> Also JVM_VERSION is 11, still its showing as
> Cassandra 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or 
> newer). Java 11 is not supported.
>  
>   Please suggest.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to