[jira] [Commented] (CASSANDRA-15258) Cassandra JDK11 Windows not working

2020-01-04 Thread Gus Heck (Jira)


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

Gus Heck commented on CASSANDRA-15258:
--

I am seeing this on 4.0-alpha2 Running on
{code:java}
openjdk version "11.0.5" 2019-10-15 LTS
OpenJDK Runtime Environment Zulu11.35+15-CA (build 11.0.5+10-LTS)
OpenJDK 64-Bit Server VM Zulu11.35+15-CA (build 11.0.5+10-LTS, mixed mode){code}
Full stack trace:
{code:java}
2020-01-04T17:22:52,885 ERROR main org.apache.cassandra.service.CassandraDaemon 
Exception encountered during startup java.lang.ExceptionInInitializerError
at 
org.apache.cassandra.config.DatabaseDescriptor.guessFileStore(DatabaseDescriptor.java:1127)
at 
org.apache.cassandra.config.DatabaseDescriptor.applySimpleConfig(DatabaseDescriptor.java:541)
at 
org.apache.cassandra.config.DatabaseDescriptor.applyAll(DatabaseDescriptor.java:340)
at 
org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:168)
at 
org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:152)
at 
org.apache.cassandra.service.CassandraDaemon.applyConfig(CassandraDaemon.java:665)
at 
org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:609)
at org.jesterj.ingest.persistence.Cassandra.start(Cassandra.java:135)
at 
org.jesterj.ingest.scanners.SimpleFileScannerImplFTITest.testScanWithMemory(SimpleFileScannerImplFTITest.java:63)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at 
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
at 
org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
at 
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at 
com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at 
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at 
com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
Caused by: java.lang.RuntimeException: java.lang.IllegalAccessException: access 
to public member failed: 
jdk.internal.ref.Cleaner.clean[Ljava.lang.Object;@794b435f/invokeVirtual, from 
org.apache.cassandra.io.util.FileUtils (unnamed module @43a0cee9)
at org.apache.cassandra.io.util.FileUtils.(FileUtils.java:95)
... 33 more
Caused by: java.lang.IllegalAccessException: access to public member failed: 
jdk.internal.ref.Cleaner.clean[Ljava.lang.Object;@794b435f/invokeVirtual, from 
org.apache.cassandra.io.util.FileUtils (unnamed module @43a0cee9)
at 
java.base/java.lang.invoke.MemberName.makeAccessException(MemberName.java:942)
at 
java.base/java.lang.invoke.MethodHandles$Lookup.checkAccess(MethodHandles.java:2206)
at 
java.base/java.lang.invoke.MethodHandles$Lookup.checkMethod(MethodHandles.java:2146)
at 
java.base/java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(MethodHandles.java:2290)
at 
java.base/java.lang.invoke.MethodHandles$Lookup.getDirectMethodNoSecurityManager(MethodHandles.java:2283)
at 
java.base/java.lang.invoke.MethodHandles$Lookup.unreflect(MethodHandles.java:1747)
at org.apache.cassandra.io.util.FileUtils.(FileUtils.java:86)
... 33 more
{code}

> Cassandra

[jira] [Commented] (CASSANDRA-15258) Cassandra JDK11 Windows not working

2019-09-26 Thread A Thomas B (Jira)


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

A Thomas B commented on CASSANDRA-15258:


I think the issue is that the condition on cassandra-env.ps1:403 is miswritten.

 

Just running
{code:java}
$env:JVM_VERSION=11
$env:JVM_VERSION.CompareTo("1.8.0"){code}
returns "1"

 

However, even when commenting out the entire condition:

 
{code:java}
if ($env:JVM_VERSION.CompareTo("1.8.0") -eq -1 -or 
[convert]::ToInt32($env:JVM_PATCH_VERSION) -lt 151)
{
echo "Cassandra 4.0 requires either Java 8 (update 151 or newer) or Java 11 
(or newer). Java $env:JVM_VERSION is not supported."
exit
}{code}
 

but then it fails with

 
{code:java}
[0.014s][error  ][logging] Error opening log file 
'C:\Users\bugorskia\cassandra/logs/gc.log': No such file or directory
[0.015s][error  ][logging] Initialization of output 
'file=C:\Users\bugorskia\cassandra/logs/gc.log' using options '(null)' failed.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit. {code}
 

so I created a folder called "logs" and then when I run it I get a Java 
exception:


{code:java}
Caused by: java.lang.IllegalAccessException: access to public member failed: 
jdk.internal.ref.Cleaner.clean[Ljava.lang.Object;@4097cac/invokeVirtual, from 
org.apache.cassandra.io.util.FileUtils (unnamed module @78a773fd) {code}
 

which is a reoccuring theme of Cassandra failing due to the changes from Java 9 
modules.

> Cassandra JDK11 Windows 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