Merhabalar arkadaşlar, Sitemizi programlama ile ilgilenen bütün arkadaşlarımızın türkçe içerik konusunda çektiği sıkıntılar düşünülerek soru/cevap şeklinde bir etkileşimde bulunabilmesi için kurduk. Umuyoruz hepimiz için güzel bir deneyim olur. Hasscript Ekibi
0 oy
109 gösterim

Spring projesini ayağa kalkacağı sıra logda şu hata gözüküyor.

"JNA not found. native methods will be disabled."  nedir bu hata boostraptan dolayı sanırım. Ama nedir, nasıl çözülür bilgisi olan ?

2017-07-20 22:12:48.163  INFO 3528 --- [           main] org.elasticsearch.node                   : [Hack] version[2.4.4], pid[3528], build[fcbb46d/2017-01-03T11:33:16Z]
2017-07-20 22:12:48.163  INFO 3528 --- [           main] org.elasticsearch.node                   : [Hack] initializing ...
2017-07-20 22:12:48.208  INFO 3528 --- [           main] org.elasticsearch.plugins                : [Hack] modules [], plugins [], sites []
2017-07-20 22:12:48.308  INFO 3528 --- [           main] org.elasticsearch.env                    : [Hack] using [1] data paths, mounts [[(C:)]], net usable_space [40.5gb], net total_space [234.4gb], spins? [unknown], types [NTFS]
2017-07-20 22:12:48.308  INFO 3528 --- [           main] org.elasticsearch.env                    : [Hack] heap size [910.5mb], compressed ordinary object pointers [true]
2017-07-20 22:12:56.921  WARN 3528 --- [           main] org.elasticsearch.bootstrap              : JNA not found. native methods will be disabled.

java.lang.ClassNotFoundException: com.sun.jna.Native
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_65]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_65]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_65]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_65]
    at java.lang.Class.forName0(Native Method) ~[na:1.8.0_65]
    at java.lang.Class.forName(Class.java:264) ~[na:1.8.0_65]
    at org.elasticsearch.bootstrap.Natives.<clinit>(Natives.java:45) ~[elasticsearch-2.4.4.jar:2.4.4]
    at org.elasticsearch.bootstrap.BootstrapInfo.isMemoryLocked(BootstrapInfo.java:44) [elasticsearch-2.4.4.jar:2.4.4]
    at org.elasticsearch.monitor.process.ProcessProbe.processInfo(ProcessProbe.java:130) [elasticsearch-2.4.4.jar:2.4.4]
    at org.elasticsearch.monitor.process.ProcessService.<init>(ProcessService.java:44) [elasticsearch-2.4.4.jar:2.4.4]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) [na:1.8.0_65]
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) [na:1.8.0_65]
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [na:1.8.0_65]
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422) [na:1.8.0_65]
    at org.elasticsearch.common.inject.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:50) [elasticsearch-
    at .....................................
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:314) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1162) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1151) [spring-boot-1.5.3.RELEASE.jar:1.5.3.RELEASE]
    at com.example.CalorieRestApplication.main(CalorieRestApplication.java:15) [classes/:na]

2017-07-20 22:12:58.896  INFO 3528 --- [           main] org.elasticsearch.node                   : [Hack] initialized
2017-07-20 22:12:58.896  INFO 3528 --- [           main] org.elasticsearch.node                   : [Hack] starting ...
2017-07-20 22:12:58.900  INFO 3528 --- [           main] org.elasticsearch.transport              : [Hack] publish_address {local[1]}, bound_addresses {local[1]}
2017-07-20 22:12:58.914  INFO 3528 --- [           main] org.elasticsearch.discovery              : [Hack] elasticsearch/0zdOM3x7SlS51HyzWrOsIg
2017-07-20 22:12:58.956  INFO 3528 --- [pdateTask][T#1]] org.elasticsearch.cluster.service        : [Hack] new_master {Hack}{0zdOM3x7SlS51HyzWrOsIg}{local}{local[1]}{local=true}, reason: local-disco-initial_connect(master)
2017-07-20 22:12:58.984  INFO 3528 --- [           main] org.elasticsearch.node                   : [Hack] started
2017-07-20 22:12:59.177  INFO 3528 --- [           main] o.s.d.r.w.RepositoryRestHandlerAdapter   : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@78aa1f72: startup date [Thu Jul 20 22:12:32 AST 2017]; root of context hierarchy
Javascript kategorisinde (1.7k puan) sordu

1 cevap

0 oy

benim sorunumu şu kısmı pom a ekleyince hata gitti

    <dependency>
        <groupId>net.java.dev.jna</groupId>
        <artifactId>jna</artifactId>
        <version>4.1.0</version>
    </dependency>
(1.7k puan) cevapladı
...