java.lang.ClassNotFoundException: com.sun.jna.Native

Stack Overflow | Saurabh Kumar | 6 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

    Spring data elasticsearch throwing expection during startup

    Stack Overflow | 6 months ago | Saurabh Kumar
    java.lang.ClassNotFoundException: com.sun.jna.Native
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    GitHub comment 35#200066890

    GitHub | 11 months ago | ylemoigne
    java.lang.ClassNotFoundException: com.sun.jna.Native
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.sun.jna.Native

    at java.net.URLClassLoader.findClass()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader.findClass(URLClassLoader.java:381)
    2. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    3. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
    4. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    5. java.lang.Class.forName0(Native Method)
    6. java.lang.Class.forName(Class.java:264)
    6 frames
  3. ElasticSearch
    ProcessService.<init>
    1. org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45)
    2. org.elasticsearch.bootstrap.BootstrapInfo.isMemoryLocked(BootstrapInfo.java:44)
    3. org.elasticsearch.monitor.process.ProcessProbe.processInfo(ProcessProbe.java:130)
    4. org.elasticsearch.monitor.process.ProcessService.<init>(ProcessService.java:44)
    4 frames
  4. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  5. ElasticSearch
    NodeBuilder.node
    1. org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:50)
    2. org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:86)
    3. org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    4. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
    5. org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:886)
    6. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
    7. org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
    8. org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
    9. org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    10. org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
    11. org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
    12. org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    13. org.elasticsearch.common.inject.SingleParameterInjector.inject(SingleParameterInjector.java:42)
    14. org.elasticsearch.common.inject.SingleParameterInjector.getAll(SingleParameterInjector.java:66)
    15. org.elasticsearch.common.inject.ConstructorInjector.construct(ConstructorInjector.java:85)
    16. org.elasticsearch.common.inject.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:104)
    17. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:47)
    18. org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:886)
    19. org.elasticsearch.common.inject.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:43)
    20. org.elasticsearch.common.inject.Scopes$1$1.get(Scopes.java:59)
    21. org.elasticsearch.common.inject.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:46)
    22. org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:201)
    23. org.elasticsearch.common.inject.InjectorBuilder$1.call(InjectorBuilder.java:193)
    24. org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:879)
    25. org.elasticsearch.common.inject.InjectorBuilder.loadEagerSingletons(InjectorBuilder.java:193)
    26. org.elasticsearch.common.inject.InjectorBuilder.injectDynamically(InjectorBuilder.java:175)
    27. org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:110)
    28. org.elasticsearch.common.inject.Guice.createInjector(Guice.java:96)
    29. org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
    30. org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:46)
    31. org.elasticsearch.node.Node.<init>(Node.java:213)
    32. org.elasticsearch.node.Node.<init>(Node.java:140)
    33. org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)
    34. org.elasticsearch.node.NodeBuilder.node(NodeBuilder.java:150)
    34 frames
  6. Spring Boot AutoConfigure
    ElasticsearchAutoConfiguration.createNodeClient
    1. org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchAutoConfiguration.createNodeClient(ElasticsearchAutoConfiguration.java:107)
    1 frame