Failed

Scenario: Init Security Context for all scenarios.Scenario: Init Security Context for all scenarios (from org.eclipse.kapua.integration.service.user.RunUserServiceI9nTest)

Failing for the past 7 builds (Since Failed#725 )
Took 0.96 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

10:03:13.716 [main] INFO  o.e.k.q.c.c.CucumberWithProperties - Clearing property kapua.config.url
10:03:13.716 [main] INFO  o.e.k.q.c.c.CucumberWithProperties - Setting property datastore.elasticsearch.provider, value is org.eclipse.kapua.service.elasticsearch.client.rest.RestElasticsearchClient
10:03:13.716 [main] INFO  o.e.k.q.c.c.CucumberWithProperties - Setting property org.eclipse.kapua.qa.datastore.extraStartupDelay, value is 5
10:03:13.716 [main] INFO  o.e.k.q.c.c.CucumberWithProperties - Setting property org.eclipse.kapua.qa.broker.extraStartupDelay, value is 5
###############################################################################
# Copyright (c) 2017, 2021 Eurotech and/or its affiliates and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
# which is available at https://www.eclipse.org/legal/epl-2.0/
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
#     Eurotech - initial API and implementation
###############################################################################
@user @userService @integration
Feature: User Service Integration
  User Service integration scenarios
10:03:13.718 [main] INFO  o.eclipse.kapua.qa.common.BasicSteps - Wait multiplier active: 4.0
10:03:13.719 [main] INFO  org.eclipse.kapua.qa.common.DBHelper - Setting up embedded database
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - =================== KapuaLiquibaseClient Configuration ===================
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  Liquibase Version: 3.6.3
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  DB connection info
10:03:13.719 [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
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Username: kapua
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Password: ******
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Schema: kapuadb
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  Timestamp(3) fix info (eclipse/kapua#2889)
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Force timestamp fix: false
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - |  	Apply timestamp fix: true
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - ==========================================
10:03:13.719 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Running Liquibase scripts...
10:03:13.730 [main] INFO  org.reflections.Reflections - Reflections took 3 ms to scan 22 urls, producing 1370 keys and 1388 values 
10:03:13.770 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing pre master files...
10:03:13.770 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 	Master Liquibase files found: 5
10:03:13.770 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-authorization-master.pre.xml...
10:03:13.791 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-event-store-master.pre.xml...
10:03:13.815 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-job-master.pre.xml...
10:03:13.832 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-scheduler-master.pre.xml...
10:03:13.849 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-system-configurations-master.pre.xml...
10:03:13.880 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing pre master files... DONE!
10:03:13.880 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing master files...
10:03:13.880 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 	Master Liquibase files found: 21
10:03:13.880 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-account-master.xml...
10:03:13.920 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-asset-job-master.xml...
10:03:13.943 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-authentication-master.xml...
10:03:14.001 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-authorization-master.xml...
10:03:14.091 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-broker-master.xml...
10:03:14.106 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-bundle-job-master.xml...
10:03:14.130 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-command-job-master.xml...
10:03:14.150 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-configuration-job-master.xml...
10:03:14.169 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-datastore-master.xml...
10:03:14.184 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-device-management-master.xml...
10:03:14.199 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-device-master.xml...
10:03:14.285 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-device_management_registry-master.xml...
10:03:14.322 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-endpoint-master.xml...
10:03:14.339 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-job-device-management-operation-master.xml...
10:03:14.354 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-job-engine-master.xml...
10:03:14.384 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-job-master.xml...
10:03:14.441 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-packages-job-master.xml...
10:03:14.463 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-scheduler-master.xml...
10:03:14.520 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-stream-master.xml...
10:03:14.533 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-tag-master.xml...
10:03:14.559 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-user-master.xml...
10:03:14.592 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing master files... DONE!
10:03:14.592 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing post master files...
10:03:14.592 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 	Master Liquibase files found: 5
10:03:14.592 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-asset-job-master.post.xml...
10:03:14.604 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-command-job-master.post.xml...
10:03:14.617 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-configuration-job-master.post.xml...
10:03:14.629 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-endpoint-master.post.xml...
10:03:14.643 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - 		Executing liquibase script: /tmp/kapua-liquibase/changelog-packages-job-master.post.xml...
10:03:14.655 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Executing post master files... DONE!
10:03:14.655 [main] INFO  o.e.k.c.l.KapuaLiquibaseClient - Running Liquibase scripts... DONE!
10:03:14.678 [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.
10:03:14.679 [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.
10:03:14.680 [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.