java-specialagent: ClassNotFoundException on Elasticsearch6RestAgentRule
Using SpecialAgent version 1.1.0, I get the following exception that prevents the application from booting:
java.lang.ClassNotFoundException: io.opentracing.contrib.specialagent.elasticsearch.Elasticsearch6RestAgentRule
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:338)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.elasticsearch.client.RestClientBuilder.build(RestClientBuilder.java:180)
at <truncated>.EsClientFactory.getClient(EsClientFactory.java:26)
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 19 (7 by maintainers)
@SevaSafris I reproduced the issue: https://github.com/malafeev/sa-apps/tree/master/spring-boot-elasticsearch
@khiradeshubham I think it’s better to track in separate issue. Please provide also java version, like output from
java -versionand sample application if possible.Thanks @SevaSafris, all I needed was use version 1.1.1, the issue is gone now. I was using version 1.1.0.
@SevaSafris do you have the link to the commit? I’m having a similar issue with a rule I’m creating.
@SevaSafris seems like yoy found the fix! The same Agent I downloaded a few days ago is working if I rename it to
opentracing-specialagent-1.1.1-SNAPSHOT.jar👍I’ve created #63 to track it 😃