-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot access org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse #27
Comments
Try version |
you mean elastic search or codelibs version |
elasticsearch-cluster-runner 6.5.4.0 is for elasticsearch 6.5.4. |
Thank you, I have an other issue with this 2019-01-17 11:39:14,059 main ERROR LogManager returned an instance of org.apache.logging.slf4j.SLF4JLoggerContextFactory which does not implement org.apache.logging.log4j.core.impl.Log4jContextFactory. Unable to initialize Log4j. Caused by: java.lang.ClassCastException: org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext Is there any work around for this issue, please let me know |
You can check dependencies for this project in pom.xml. |
I have taken all the dependencies from this project pom.xml, but still I am getting this error |
I could not reproduce it. Could you provide steps or all code to reproduce it. |
I had the same problem too. I am using Spring Data Elasticsearch. In a Spring Boot project. The problem is that
An interesting observation: The Thank You for your Work! |
@wallner - it is easy. Elasticsearch-cluster-runner works only with log4j. It depends on log4j-core and uses the log4j core classes in runtime. Spring boot starter logger add to the classpath SLF4j bridge that causes exception above |
We shouldn't have to change our applications logging implementation in order to use this library. |
It will be great if Elasticsearch-cluster-runner will not depend on log4j implementation. Only on log4j interfaces. It will allow to use it without patching sources each time than I need to run integration tests in spring boot application. See https://stackoverflow.com/questions/54036773/unable-to-initialize-log4j-slf4jloggercontextfactory for example |
Hi,
I am using elastic search 6.5.4 and added below dependency in pom.xml
org.codelibs
elasticsearch-cluster-runner
5.5.2.0
As mentioned, I tried using the runner for my test cases. My Test case class has compile time error.
cannot access org.elasticsearch.action.admin.indices.mapping.put.PutMappingResponse.
Please let me know the solution.
The text was updated successfully, but these errors were encountered: