Failed

Scenario: Deleting user in account that is lower in hierarchy.Scenario: Deleting user in account that is lower in hierarchy (from org.eclipse.kapua.integration.service.user.RunUserServiceI9nTest)

Failing for the past 5 builds (Since Failed#725 )
Took 1.3 sec.

Error Message

Cannot instantiate Elasticsearch Client

Stacktrace

org.eclipse.kapua.service.datastore.exception.DatastoreInternalError: Cannot instantiate Elasticsearch Client
Caused by: java.lang.ClassCastException: org.eclipse.kapua.service.elasticsearch.client.rest.RestElasticsearchClient cannot be cast to org.eclipse.kapua.service.elasticsearch.client.ElasticsearchClientProvider

Standard Output

16:08:35.397 [main] INFO  o.e.k.s.a.steps.AccountServiceSteps - Logging out in cleanup
16:08:35.397 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
16:08:35.397 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: sql/all_delete.sql
16:08:35.398 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
16:08:35.398 [main] INFO  o.e.k.s.u.steps.UserRoleServiceSteps - Logging out in cleanup
16:08:35.398 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
16:08:35.398 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: sql/all_delete.sql
16:08:35.399 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
16:08:35.399 [main] INFO  o.e.k.s.user.steps.UserServiceSteps - Logging out in cleanup
16:08:35.399 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
16:08:35.399 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: sql/all_delete.sql
16:08:35.400 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
16:08:35.400 [main] INFO  o.e.k.s.a.s.AuthorizationServiceSteps - Logging out in cleanup
16:08:35.400 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
16:08:35.400 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: sql/all_delete.sql
16:08:35.401 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
16:08:35.401 [main] INFO  o.e.k.s.d.r.s.DeviceRegistrySteps - Logging out in cleanup
16:08:35.401 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
16:08:35.401 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: sql/all_delete.sql
16:08:35.401 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
16:08:35.402 [main] INFO  o.e.k.s.job.steps.JobServiceSteps - Logging out in cleanup
16:08:35.402 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
16:08:35.402 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: sql/all_delete.sql
16:08:35.402 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
16:08:35.402 [main] INFO  o.e.k.s.tag.steps.TagServiceSteps - Logging out in cleanup
16:08:35.402 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
16:08:35.402 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: sql/all_delete.sql
16:08:35.403 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
16:08:35.404 [main] INFO  o.e.k.s.d.steps.DatastoreSteps - Logging out in cleanup
16:08:35.404 [main] ERROR o.e.k.s.d.steps.DatastoreSteps - Failed to log out in @After
org.eclipse.kapua.service.datastore.exception.DatastoreInternalError: Cannot instantiate Elasticsearch Client
	at org.eclipse.kapua.service.datastore.internal.client.DatastoreClientFactory.getInstance(DatastoreClientFactory.java:67)
	at org.eclipse.kapua.service.datastore.internal.client.DatastoreClientFactory.getElasticsearchClient(DatastoreClientFactory.java:86)
	at org.eclipse.kapua.service.datastore.internal.AbstractRegistryFacade.getElasticsearchClient(AbstractRegistryFacade.java:46)
	at org.eclipse.kapua.service.datastore.internal.MessageStoreFacade.deleteAllIndexes(MessageStoreFacade.java:530)
	at org.eclipse.kapua.service.datastore.internal.mediator.DatastoreMediator.deleteAllIndexes(DatastoreMediator.java:238)
	at org.eclipse.kapua.service.datastore.steps.DatastoreSteps.deleteIndices(DatastoreSteps.java:366)
	at org.eclipse.kapua.service.datastore.steps.DatastoreSteps.afterScenario(DatastoreSteps.java:349)
	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 cucumber.runtime.Utils$1.call(Utils.java:37)
	at cucumber.runtime.Timeout.timeout(Timeout.java:13)
	at cucumber.runtime.Utils.invoke(Utils.java:31)
	at cucumber.runtime.java.JavaHookDefinition.execute(JavaHookDefinition.java:60)
	at cucumber.runtime.Runtime.runHookIfTagsMatch(Runtime.java:223)
	at cucumber.runtime.Runtime.runHooks(Runtime.java:211)
	at cucumber.runtime.Runtime.runAfterHooks(Runtime.java:205)
	at cucumber.runtime.model.CucumberScenario.run(CucumberScenario.java:46)
	at cucumber.runtime.junit.ExecutionUnitRunner.run(ExecutionUnitRunner.java:91)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:63)
	at cucumber.runtime.junit.FeatureRunner.runChild(FeatureRunner.java:18)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at cucumber.runtime.junit.FeatureRunner.run(FeatureRunner.java:70)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:93)
	at cucumber.api.junit.Cucumber.runChild(Cucumber.java:37)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
	at cucumber.api.junit.Cucumber.run(Cucumber.java:98)
	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:272)
	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:236)
	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:386)
	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:323)
	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:143)
Caused by: java.lang.ClassCastException: org.eclipse.kapua.service.elasticsearch.client.rest.RestElasticsearchClient cannot be cast to org.eclipse.kapua.service.elasticsearch.client.ElasticsearchClientProvider
	at org.eclipse.kapua.service.datastore.internal.client.DatastoreClientFactory.getInstance(DatastoreClientFactory.java:59)
	... 44 common frames omitted
16:08:35.404 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - Running database script from resources...
16:08:35.404 [main] INFO  o.e.k.c.jpa.SimpleSqlScriptExecutor - Running resources script: sql/all_delete.sql
16:08:35.405 [main] INFO  o.e.k.c.c.KapuaConfigurableServiceSchemaUtilsWithResources - ...database scripts from resources done!
16:08:35.406 [main] INFO  o.eclipse.kapua.qa.common.BasicSteps - Wait multiplier active: 4.0
16:08:35.406 [main] INFO  org.eclipse.kapua.qa.common.DBHelper - Setting up embedded database
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - =================== KapuaLiquibaseClient Configuration ===================
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  Liquibase Version: 3.6.3
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  DB connection info
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	JDBC URL: jdbc:h2:mem:kapua;MODE=MySQL;DB_CLOSE_DELAY=-1;INIT=CREATE SCHEMA IF NOT EXISTS kapuadb\;SET SCHEMA kapuadb
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Username: kapua
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Password: ******
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Schema: kapuadb
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  Timestamp(3) fix info (eclipse/kapua#2889)
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Force timestamp fix: false
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Apply timestamp fix: true
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - ==========================================
16:08:35.406 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Running Liquibase scripts...
16:08:35.428 [main] INFO  org.reflections.Reflections - Reflections took 5 ms to scan 22 urls, producing 1370 keys and 1388 values 
16:08:35.515 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing pre master files...
16:08:35.515 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 	Master Liquibase files found: 5
16:08:35.515 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-authorization-master.pre.xml...
16:08:35.542 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-event-store-master.pre.xml...
16:08:35.574 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-job-master.pre.xml...
16:08:35.597 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-scheduler-master.pre.xml...
16:08:35.621 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-system-configurations-master.pre.xml...
16:08:35.648 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing pre master files... DONE!
16:08:35.648 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing master files...
16:08:35.648 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 	Master Liquibase files found: 21
16:08:35.648 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-account-master.xml...
16:08:35.703 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-asset-job-master.xml...
16:08:35.730 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-authentication-master.xml...
16:08:35.799 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-authorization-master.xml...
16:08:35.931 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-broker-master.xml...
16:08:35.954 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-bundle-job-master.xml...
16:08:35.985 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-command-job-master.xml...
16:08:36.013 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-configuration-job-master.xml...
16:08:36.039 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-datastore-master.xml...
16:08:36.061 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-device-management-master.xml...
16:08:36.084 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-device-master.xml...
16:08:36.209 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-device_management_registry-master.xml...
16:08:36.254 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-endpoint-master.xml...
16:08:36.279 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-job-device-management-operation-master.xml...
16:08:36.300 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-job-engine-master.xml...
16:08:36.343 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-job-master.xml...
16:08:36.440 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-packages-job-master.xml...
16:08:36.473 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-scheduler-master.xml...
16:08:36.556 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-stream-master.xml...
16:08:36.575 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-tag-master.xml...
16:08:36.613 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-user-master.xml...
16:08:36.665 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing master files... DONE!
16:08:36.665 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing post master files...
16:08:36.665 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 	Master Liquibase files found: 5
16:08:36.665 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-asset-job-master.post.xml...
16:08:36.683 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-command-job-master.post.xml...
16:08:36.700 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-configuration-job-master.post.xml...
16:08:36.716 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-endpoint-master.post.xml...
16:08:36.735 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-packages-job-master.post.xml...
16:08:36.751 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing post master files... DONE!
16:08:36.751 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Running Liquibase scripts... DONE!
16:08:36.752 [main] WARN  o.e.kapua.ExceptionMessageUtils - Could not load exception messages for resource: datastore-service-error-messages in locale: en_US. A generic error message will be printed.
16:08:36.753 [main] WARN  o.e.kapua.ExceptionMessageUtils - Could not load exception messages for resource: datastore-service-error-messages in locale: en_US. A generic error message will be printed.
16:08:36.754 [main] WARN  o.e.kapua.ExceptionMessageUtils - Could not load exception messages for resource: datastore-service-error-messages in locale: en_US. A generic error message will be printed.