Problem while upgrading cloud aws from 2.4.0 to 2.5.1


(Maximenay) #1

Hi,

In my Java application I use a TransportClient. It was working just fine until I tried to upgrade cloud aws to 2.5.1.
I'm now getting the following exception when trying to instantiate the TransportClient:

org.elasticsearch.common.inject.CreationException: Guice creation errors:

1) A binding to org.elasticsearch.cloud.aws.AwsS3Service was already configured at _unknown_.
  at _unknown_

2) A binding to org.elasticsearch.cloud.aws.AwsEc2Service was already configured at _unknown_.
  at _unknown_

2 errors
	at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:344)
	at org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:151)
	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.<init>(TransportClient.java:187)
	at org.elasticsearch.client.transport.TransportClient.<init>(TransportClient.java:123)

Any idea what could be wrong?

Thanks,
Maxime


(system) #2