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)

Most upvoted comments

@khiradeshubham I think it’s better to track in separate issue. Please provide also java version, like output from java -version and 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.

Hi @ledor473, I used the test app that @malafeev made to diagnose this issue. I have pushed a fix for the error produced in the test application, and it is now available in 1.1.1-SNAPSHOT. Would you be able to run your test case against this newest snapshot? Please let me know!

@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 😃