java.lang.NoClassDefFoundError: com/sun/jna/Native

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you didn't forget to instantiate your topic in the kafka broker.

,

This error comes up in the old version of spring-test , you should update tospring test 4.3.2

Solutions on the web

via Apache's JIRA Issue Tracker by Alan Boudreault, 1 year ago
com/sun/jna/Native
java.lang.ClassNotFoundException: com.sun.jna.Native
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.apache.cassandra.utils.memory.MemoryUtil.allocate(MemoryUtil.java:82)
at org.apache.cassandra.io.util.Memory.(Memory.java:74)
at org.apache.cassandra.io.util.SafeMemory.(SafeMemory.java:32)
at org.apache.cassandra.io.compress.CompressionMetadata$Writer.(CompressionMetadata.java:274)
at org.apache.cassandra.io.compress.CompressionMetadata$Writer.open(CompressionMetadata.java:288)
at org.apache.cassandra.io.compress.CompressedSequentialWriter.(CompressedSequentialWriter.java:73)
at org.apache.cassandra.io.util.SequentialWriter.open(SequentialWriter.java:167)
at org.apache.cassandra.io.sstable.format.big.BigTableWriter.(BigTableWriter.java:75)
at org.apache.cassandra.io.sstable.format.big.BigFormat$WriterFactory.open(BigFormat.java:107)
at org.apache.cassandra.io.sstable.format.SSTableWriter.create(SSTableWriter.java:84)
at org.apache.cassandra.db.Memtable$FlushRunnable.createFlushWriter(Memtable.java:419)
at org.apache.cassandra.db.Memtable$FlushRunnable.writeSortedContents(Memtable.java:366)
at org.apache.cassandra.db.Memtable$FlushRunnable.runMayThrow(Memtable.java:351)
at org.apache.cassandra.db.ColumnFamilyStore$Flush.run(ColumnFamilyStore.java:1121)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 1 week ago
Once, 1 month ago
Once, 2 months ago
Once, 2 months ago
5 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.