java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native

Stack Overflow | Avinash G A | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Cassandra Startup failure on ARM64 machine (java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native)

    Stack Overflow | 4 months ago | Avinash G A
    java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      Could not initialize class com.sun.jna.Native

      at org.apache.cassandra.utils.memory.MemoryUtil.allocate()
    2. org.apache.cassandra
      ColumnFamilyStore$Flush.run
      1. org.apache.cassandra.utils.memory.MemoryUtil.allocate(MemoryUtil.java:98)
      2. org.apache.cassandra.io.util.Memory.<init>(Memory.java:74)
      3. org.apache.cassandra.io.util.SafeMemory.<init>(SafeMemory.java:32)
      4. org.apache.cassandra.io.compress.CompressionMetadata$Writer.<init>(CompressionMetadata.java:316)
      5. org.apache.cassandra.io.compress.CompressionMetadata$Writer.open(CompressionMetadata.java:330)
      6. org.apache.cassandra.io.compress.CompressedSequentialWriter.<init>(CompressedSequentialWriter.java:94)
      7. org.apache.cassandra.io.sstable.format.big.BigTableWriter.<init>(BigTableWriter.java:84)
      8. org.apache.cassandra.io.sstable.format.big.BigFormat$WriterFactory.open(BigFormat.java:92)
      9. org.apache.cassandra.io.sstable.format.SSTableWriter.create(SSTableWriter.java:101)
      10. org.apache.cassandra.io.sstable.SimpleSSTableMultiWriter.create(SimpleSSTableMultiWriter.java:119)
      11. org.apache.cassandra.db.compaction.AbstractCompactionStrategy.createSSTableMultiWriter(AbstractCompactionStrategy.java:553)
      12. org.apache.cassandra.db.compaction.CompactionStrategyManager.createSSTableMultiWriter(CompactionStrategyManager.java:905)
      13. org.apache.cassandra.db.ColumnFamilyStore.createSSTableMultiWriter(ColumnFamilyStore.java:506)
      14. org.apache.cassandra.db.Memtable$FlushRunnable.createFlushWriter(Memtable.java:483)
      15. org.apache.cassandra.db.Memtable$FlushRunnable.<init>(Memtable.java:422)
      16. org.apache.cassandra.db.Memtable$FlushRunnable.<init>(Memtable.java:399)
      17. org.apache.cassandra.db.Memtable.flushRunnables(Memtable.java:277)
      18. org.apache.cassandra.db.ColumnFamilyStore$Flush.flushMemtable(ColumnFamilyStore.java:1117)
      19. org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1084)
      19 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames