I am unable to find out why this error is being throw. The same code was
working an hour ago.. No changes made:: Please reply
log4j:WARN No appenders could be found for logger
(org.elasticsearch.plugins).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Exception in thread "main"
org.elasticsearch.common.util.concurrent.ExecutionError:
java.lang.NoSuchMethodError:
sun.reflect.annotation.AnnotationParser.parseParameterAnnotations([BLsun/reflect/ConstantPool;Ljava/lang/Class;)[[Ljava/lang/annotation/Annotation;
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2199)
at org.elasticsearch.common.cache.LocalCache.get(LocalCache.java:3934)
at org.elasticsearch.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
at
org.elasticsearch.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
at
org.elasticsearch.common.inject.internal.FailableCache.get(FailableCache.java:51)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:50)
at
org.elasticsearch.common.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:50)
at
org.elasticsearch.common.inject.InjectorImpl.initializeBinding(InjectorImpl.java:372)
at
org.elasticsearch.common.inject.BindingProcessor$1$1.run(BindingProcessor.java:148)
at
org.elasticsearch.common.inject.BindingProcessor.initializeBindings(BindingProcessor.java:204)
at
org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:119)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:102)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:59)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:187)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:125)
at
com.orkash.newsmonitoring.MongoMonitoring.getEsConnection(MongoMonitoring.java:101)
at
com.orkash.newsmonitoring.MongoMonitoring.(MongoMonitoring.java:132)
at com.orkash.newsmonitoring.MongoMonitoring.main(MongoMonitoring.java:839)
Caused by: java.lang.NoSuchMethodError:
sun.reflect.annotation.AnnotationParser.parseParameterAnnotations([BLsun/reflect/ConstantPool;Ljava/lang/Class;)[[Ljava/lang/annotation/Annotation;
at
java.lang.reflect.Constructor.getParameterAnnotations(Constructor.java:658)
at
org.elasticsearch.common.inject.spi.InjectionPoint.(InjectionPoint.java:67)
at
org.elasticsearch.common.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:196)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:59)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:29)
at
org.elasticsearch.common.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:37)
at
org.elasticsearch.common.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:33)
at
org.elasticsearch.common.inject.internal.FailableCache$1.load(FailableCache.java:39)
at
org.elasticsearch.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
at
org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
at
org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
... 19 more
I am unable to find out why this error is being throw. The same code was
working an hour ago.. No changes made:: Please reply
log4j:WARN No appenders could be found for logger
(org.elasticsearch.plugins).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for
more info.
Exception in thread "main"
org.elasticsearch.common.util.concurrent.ExecutionError:
java.lang.NoSuchMethodError:
sun.reflect.annotation.AnnotationParser.parseParameterAnnotations([BLsun/reflect/ConstantPool;Ljava/lang/Class;)[[Ljava/lang/annotation/Annotation;
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2199)
at org.elasticsearch.common.cache.LocalCache.get(LocalCache.java:3934)
at
org.elasticsearch.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
at
org.elasticsearch.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
at
org.elasticsearch.common.inject.internal.FailableCache.get(FailableCache.java:51)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:50)
at
org.elasticsearch.common.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:50)
at
org.elasticsearch.common.inject.InjectorImpl.initializeBinding(InjectorImpl.java:372)
at
org.elasticsearch.common.inject.BindingProcessor$1$1.run(BindingProcessor.java:148)
at
org.elasticsearch.common.inject.BindingProcessor.initializeBindings(BindingProcessor.java:204)
at
org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:119)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:102)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:59)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:187)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:125)
at
com.orkash.newsmonitoring.MongoMonitoring.getEsConnection(MongoMonitoring.java:101)
at
com.orkash.newsmonitoring.MongoMonitoring.(MongoMonitoring.java:132)
at com.orkash.newsmonitoring.MongoMonitoring.main(MongoMonitoring.java:839)
Caused by: java.lang.NoSuchMethodError:
sun.reflect.annotation.AnnotationParser.parseParameterAnnotations([BLsun/reflect/ConstantPool;Ljava/lang/Class;)[[Ljava/lang/annotation/Annotation;
at
java.lang.reflect.Constructor.getParameterAnnotations(Constructor.java:658)
at
org.elasticsearch.common.inject.spi.InjectionPoint.(InjectionPoint.java:67)
at
org.elasticsearch.common.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:196)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:59)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:29)
at
org.elasticsearch.common.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:37)
at
org.elasticsearch.common.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:33)
at
org.elasticsearch.common.inject.internal.FailableCache$1.load(FailableCache.java:39)
at
org.elasticsearch.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
at
org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
at
org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
... 19 more
The problem got resolved by starting my system where i am running the java
code. but i wonder why the problem arose.
Regards,
Bharvi Dixit
On Tuesday, 29 July 2014 17:12:30 UTC+5:30, Jörg Prante wrote:
It seems you have updated your Java? Restarting ES is inevitable in that
case.
Jörg
On Tue, Jul 29, 2014 at 12:32 PM, Bharvi Dixit <bharv...@gmail.com
<javascript:>> wrote:
I am unable to find out why this error is being throw. The same code was
working an hour ago.. No changes made:: Please reply
log4j:WARN No appenders could be found for logger
(org.elasticsearch.plugins).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See Apache log4j 1.2 - Frequently Asked Technical Questions for
more info.
Exception in thread "main"
org.elasticsearch.common.util.concurrent.ExecutionError:
java.lang.NoSuchMethodError:
sun.reflect.annotation.AnnotationParser.parseParameterAnnotations([BLsun/reflect/ConstantPool;Ljava/lang/Class;)[[Ljava/lang/annotation/Annotation;
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2199)
at org.elasticsearch.common.cache.LocalCache.get(LocalCache.java:3934)
at
org.elasticsearch.common.cache.LocalCache.getOrLoad(LocalCache.java:3938)
at
org.elasticsearch.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4821)
at
org.elasticsearch.common.inject.internal.FailableCache.get(FailableCache.java:51)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.get(ConstructorInjectorStore.java:50)
at
org.elasticsearch.common.inject.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:50)
at
org.elasticsearch.common.inject.InjectorImpl.initializeBinding(InjectorImpl.java:372)
at
org.elasticsearch.common.inject.BindingProcessor$1$1.run(BindingProcessor.java:148)
at
org.elasticsearch.common.inject.BindingProcessor.initializeBindings(BindingProcessor.java:204)
at
org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:119)
at
org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:102)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at
org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:59)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:187)
at
org.elasticsearch.client.transport.TransportClient.(TransportClient.java:125)
at
com.orkash.newsmonitoring.MongoMonitoring.getEsConnection(MongoMonitoring.java:101)
at
com.orkash.newsmonitoring.MongoMonitoring.(MongoMonitoring.java:132)
at
com.orkash.newsmonitoring.MongoMonitoring.main(MongoMonitoring.java:839)
Caused by: java.lang.NoSuchMethodError:
sun.reflect.annotation.AnnotationParser.parseParameterAnnotations([BLsun/reflect/ConstantPool;Ljava/lang/Class;)[[Ljava/lang/annotation/Annotation;
at
java.lang.reflect.Constructor.getParameterAnnotations(Constructor.java:658)
at
org.elasticsearch.common.inject.spi.InjectionPoint.(InjectionPoint.java:67)
at
org.elasticsearch.common.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:196)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:59)
at
org.elasticsearch.common.inject.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:29)
at
org.elasticsearch.common.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:37)
at
org.elasticsearch.common.inject.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:33)
at
org.elasticsearch.common.inject.internal.FailableCache$1.load(FailableCache.java:39)
at
org.elasticsearch.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3524)
at
org.elasticsearch.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2317)
at
org.elasticsearch.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2280)
at
org.elasticsearch.common.cache.LocalCache$Segment.get(LocalCache.java:2195)
... 19 more
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.