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
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards 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)[apache-cassandra-3.9.jar:3.9]
      2. org.apache.cassandra.io.util.Memory.<init>(Memory.java:74)[apache-cassandra-3.9.jar:3.9]
      3. org.apache.cassandra.io.util.SafeMemory.<init>(SafeMemory.java:32)[apache-cassandra-3.9.jar:3.9]
      4. org.apache.cassandra.io.compress.CompressionMetadata$Writer.<init>(CompressionMetadata.java:316)[apache-cassandra-3.9.jar:3.9]
      5. org.apache.cassandra.io.compress.CompressionMetadata$Writer.open(CompressionMetadata.java:330)[apache-cassandra-3.9.jar:3.9]
      6. org.apache.cassandra.io.compress.CompressedSequentialWriter.<init>(CompressedSequentialWriter.java:94)[apache-cassandra-3.9.jar:3.9]
      7. org.apache.cassandra.io.sstable.format.big.BigTableWriter.<init>(BigTableWriter.java:84)[apache-cassandra-3.9.jar:3.9]
      8. org.apache.cassandra.io.sstable.format.big.BigFormat$WriterFactory.open(BigFormat.java:92)[apache-cassandra-3.9.jar:3.9]
      9. org.apache.cassandra.io.sstable.format.SSTableWriter.create(SSTableWriter.java:101)[apache-cassandra-3.9.jar:3.9]
      10. org.apache.cassandra.io.sstable.SimpleSSTableMultiWriter.create(SimpleSSTableMultiWriter.java:119)[apache-cassandra-3.9.jar:3.9]
      11. org.apache.cassandra.db.compaction.AbstractCompactionStrategy.createSSTableMultiWriter(AbstractCompactionStrategy.java:553)[apache-cassandra-3.9.jar:3.9]
      12. org.apache.cassandra.db.compaction.CompactionStrategyManager.createSSTableMultiWriter(CompactionStrategyManager.java:905)[apache-cassandra-3.9.jar:3.9]
      13. org.apache.cassandra.db.ColumnFamilyStore.createSSTableMultiWriter(ColumnFamilyStore.java:506)[apache-cassandra-3.9.jar:3.9]
      14. org.apache.cassandra.db.Memtable$FlushRunnable.createFlushWriter(Memtable.java:483)[apache-cassandra-3.9.jar:3.9]
      15. org.apache.cassandra.db.Memtable$FlushRunnable.<init>(Memtable.java:422)[apache-cassandra-3.9.jar:3.9]
      16. org.apache.cassandra.db.Memtable$FlushRunnable.<init>(Memtable.java:399)[apache-cassandra-3.9.jar:3.9]
      17. org.apache.cassandra.db.Memtable.flushRunnables(Memtable.java:277)[apache-cassandra-3.9.jar:3.9]
      18. org.apache.cassandra.db.ColumnFamilyStore$Flush.flushMemtable(ColumnFamilyStore.java:1117)[apache-cassandra-3.9.jar:3.9]
      19. org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1084)[apache-cassandra-3.9.jar:3.9]
      19 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_101]
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_101]
      3. java.lang.Thread.run(Thread.java:745)[na:1.8.0_101]
      3 frames