Error while creating connection with elasticsearch v1.0.0 throgh java code

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

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/b20f091b-3a1a-4778-be9a-15b8233668f6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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 bharvidixit@gmail.com
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

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b20f091b-3a1a-4778-be9a-15b8233668f6%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b20f091b-3a1a-4778-be9a-15b8233668f6%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAKdsXoGsLi2zz824hO%2BssTrO6Fp7qW8WUEE%3DsxveJAoemdYz3g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Hi,
Thanks for the reply.

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

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/b20f091b-3a1a-4778-be9a-15b8233668f6%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/b20f091b-3a1a-4778-be9a-15b8233668f6%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/dc9749a0-5531-437b-93c4-c8c86f3fbe5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.