# Exception in thread "main" java.lang.NoSuchMethodError: org.apache.logging.log4j.Logger.debug(Ljava/lang/String;Ljava/lang/Object;)V

**URL:** <https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchmethoderror-org-apache-logging-log4j-logger-debug-ljava-lang-string-ljava-lang-object-v/191260>\
**Category:** Elasticsearch\
**Created:** [July 18, 2019, 5:27pm UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchmethoderror-org-apache-logging-log4j-logger-debug-ljava-lang-string-ljava-lang-object-v/191260 "2019-07-18T17:27:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [July 19, 2019, 10:18am UTC](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchmethoderror-org-apache-logging-log4j-logger-debug-ljava-lang-string-ljava-lang-object-v/191260/2 "2019-07-19T10:18:51Z")

</div>

Welcome!

Please [read this](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) about how to format and then update your question.

Provide your `pom.xml` or better a simplified one so any java dev can reproduce the problem. You can share a sample project on Github so that easy to clone and reproduce.

BTW 5.6 is EOL. You should go to 6.x or better use the 7.2 version and switch to the Rest client as the Transport Client has been deprecated and will be removed in 8.x.

---

_[View the full topic](https://discuss.elastic.co/t/exception-in-thread-main-java-lang-nosuchmethoderror-org-apache-logging-log4j-logger-debug-ljava-lang-string-ljava-lang-object-v/191260)._
