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


(Arul Narasimhan) #1

Hi
I am getting the following error in Integration Test case. This does not show up with my ElasticSearch bundle is 5.1.2. Right now the upgrade to ES 5.6.8 gives me this error.

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

  1. Could not find a suitable constructor in org.elasticsearch.rest.RestController. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private. at org.elasticsearch.rest.RestController.class(Unknown Source) while locating org.elasticsearch.rest.RestController for parameter 0 at com.trgr.elasticsearch.plugin.indexcleaner.rest.IndexCleanerAction.(Unknown Source) at unknown

1 error
at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:361)
at org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:137)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:96)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:42)
at org.elasticsearch.node.Node.(Node.java:499)
at org.elasticsearch.node.MockNode.(MockNode.java:60)
at org.elasticsearch.test.InternalTestCluster.buildNode(InternalTestCluster.java:602)
at org.elasticsearch.test.InternalTestCluster.reset(InternalTestCluster.java:1029)
at org.elasticsearch.test.InternalTestCluster.beforeTest(InternalTestCluster.java:977)
at org.elasticsearch.test.ESIntegTestCase.beforeInternal(ESIntegTestCase.java:369)
at org.elasticsearch.test.ESIntegTestCase.setupTestCluster(ESIntegTestCase.java:2050)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.carrotsearch.randomizedtesting.RandomizedRunner.invoke(RandomizedRunner.java:1713)
at com.carrotsearch.randomizedtesting.RandomizedRunner$9.evaluate(RandomizedRunner.java:941)
at com.carrotsearch.randomizedtesting.RandomizedRunner$10.evaluate(RandomizedRunner.java:957)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at org.apache.lucene.util.TestRuleSetupTeardownChained$1.evaluate(TestRuleSetupTeardownChained.java:49)
at org.apache.lucene.util.AbstractBeforeAfterRule$1.evaluate(AbstractBeforeAfterRule.java:45)
at org.apache.lucene.util.TestRuleThreadAndTestName$1.evaluate(TestRuleThreadAndTestName.java:48)
at org.apache.lucene.util.TestRuleIgnoreAfterMaxFailures$1.evaluate(TestRuleIgnoreAfterMaxFailures.java:64)
at org.apache.lucene.util.TestRuleMarkFailure$1.evaluate(TestRuleMarkFailure.java:47)
at com.carrotsearch.randomizedtesting.rules.StatementAdapter.evaluate(StatementAdapter.java:36)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$StatementRunner.run(ThreadLeakControl.java:368)
at com.carrotsearch.randomizedtesting.ThreadLeakControl.forkTimeoutingTask(ThreadLeakControl.java:817)
at com.carrotsearch.randomizedtesting.ThreadLeakControl$3.evaluate(ThreadLeakControl.java:468)


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.