# NullPointerException when build a transportclient with version 2.3.2

**URL:** <https://discuss.elastic.co/t/nullpointerexception-when-build-a-transportclient-with-version-2-3-2/76171>\
**Category:** Elasticsearch\
**Created:** [February 23, 2017, 8:27am UTC](https://discuss.elastic.co/t/nullpointerexception-when-build-a-transportclient-with-version-2-3-2/76171 "2017-02-23T08:27:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sion264](https://avatars.discourse-cdn.com/v4/letter/s/67e7ee/32.png) [@sion264](https://discuss.elastic.co/u/sion264)\
**Post date:** [February 23, 2017, 8:27am UTC](https://discuss.elastic.co/t/nullpointerexception-when-build-a-transportclient-with-version-2-3-2/76171/1 "2017-02-23T08:27:15Z")

</div>

Hi, My team used elasticsearch for the previous two projects, which are all running well in the server. I am currently working on another one using it, which also works well my local server. But when I deployed it on my beta environment, a problem occurred which did not happen in my local tomcat. All the jdk version in server is 1.7.0\_80. Could anyone tells me what might be the reason causing the this problem, and whether there is a solution to it? Looking forward to your reply, many thanks!

Caused by: java.lang.NullPointerException  
at java.util.logging.Logger.doSetParent(Logger.java:1615)  
at java.util.logging.Logger.getAnonymousLogger(Logger.java:537)  
at java.util.logging.Logger.getAnonymousLogger(Logger.java:498)  
at org.elasticsearch.common.inject.InjectorShell$LoggerFactory.get(InjectorShell.java:241)  
at org.elasticsearch.common.inject.InjectorShell$LoggerFactory.get(InjectorShell.java:236)  
at org.elasticsearch.common.inject.InjectorImpl$5$1.call(InjectorImpl.java:828)  
at org.elasticsearch.common.inject.InjectorImpl.callInContext(InjectorImpl.java:880)  
at org.elasticsearch.common.inject.InjectorImpl$5.get(InjectorImpl.java:823)  
at org.elasticsearch.common.inject.InheritingState.makeAllBindingsToEagerSingletons(InheritingState.java:157)  
at org.elasticsearch.common.inject.InjectorImpl.readOnlyAllSingletons(InjectorImpl.java:909)  
at org.elasticsearch.common.inject.ModulesBuilder.createInjector(ModulesBuilder.java:50)  
at org.elasticsearch.client.transport.TransportClient$Builder.build(TransportClient.java:160)

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [February 27, 2017, 9:08am UTC](https://discuss.elastic.co/t/nullpointerexception-when-build-a-transportclient-with-version-2-3-2/76171/2 "2017-02-27T09:08:51Z")

</div>

Hey,

is it possible that you are missing log4j or slf4j as a dependency in your tomcat project?

--Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 27, 2017, 9:09am UTC](https://discuss.elastic.co/t/nullpointerexception-when-build-a-transportclient-with-version-2-3-2/76171/3 "2017-03-27T09:09:15Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
