You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Stephen L. De Rudder (Jira)" <ji...@apache.org> on 2021/09/15 04:01:00 UTC

[jira] [Commented] (CASSANDRA-16085) Cassandra fails to start using Java SE 8 Update 261

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

Stephen L. De Rudder commented on CASSANDRA-16085:
--------------------------------------------------

Add the ability to catch UnsatisfiedLinkError in WindowsTimer and if not available to allow startup to continue. I get the following on Windows 2019 Server running Cassandra 3.11.3 on Azul Zulu Java 1.8u302:
{code:java}
ERROR [main] 2021-09-10 14:25:29,064 CassandraDaemon.java:708 - Exception encountered during startup
java.lang.UnsatisfiedLinkError: C:\Windows\Temp\jna-1617058420\jna439724638011461000.dll: Can't find dependent libraries
    at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[na:1.8.0_302]
    at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1950) ~[na:1.8.0_302]
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1832) ~[na:1.8.0_302]
    at java.lang.Runtime.load0(Runtime.java:811) ~[na:1.8.0_302]
    at java.lang.System.load(System.java:1088) ~[na:1.8.0_302]
    at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851) ~[jna-4.2.2.jar:4.2.2 (b0)]
    at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826) ~[jna-4.2.2.jar:4.2.2 (b0)]
    at com.sun.jna.Native.<clinit>(Native.java:140) ~[jna-4.2.2.jar:4.2.2 (b0)]
    at org.apache.cassandra.utils.WindowsTimer.<clinit>(WindowsTimer.java:35) ~[apache-cassandra-3.11.3.jar:3.11.3]
    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:599) [apache-cassandra-3.11.3.jar:3.11.3]
    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691) [apache-cassandra-3.11.3.jar:3.11.3]
{code}
The fix implemented is similar to fix done in CASSANDRA-13333. In that issue  WindowsTimer was mentioned but further down the question of  moving WindowsTimer is asked so it could be fixed and answered not to move.
 
I have attached the patch files for branches cassandra-3.0, cassandra-3.11, and trunk.
Below are the links to the 3 github branches (since I am new at this; I hope at least 1 set of patches or branches will work).
[CASSANDRA-16085-3.0|https://github.com/sldr/cassandra/tree/CASSANDRA-16085-3.0]
[CASSANDRA-16085-3.11|https://github.com/sldr/cassandra/tree/CASSANDRA-16085-3.11]
[CASSANDRA-16085-trunk|https://github.com/sldr/cassandra/tree/CASSANDRA-16085-trunk]
 
Let me know if you need anything else.
Thanks!

> Cassandra fails to start using Java SE 8 Update 261
> ---------------------------------------------------
>
>                 Key: CASSANDRA-16085
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16085
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Alex Drinkwater
>            Priority: Urgent
>         Attachments: cassandra-16085-3.0.patch, cassandra-16085-3.11.patch, cassandra-16085-trunk.patch
>
>
> When using JRE 8u261 to start cassandra it fails and gives this error: \njava.lang.UnsatisfiedLinkError: WindowsTimer 



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

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