# NumberFormatException occurs when TransportClient is building

**URL:** <https://discuss.elastic.co/t/numberformatexception-occurs-when-transportclient-is-building/47599>\
**Category:** Elasticsearch\
**Created:** [April 18, 2016, 3:09am UTC](https://discuss.elastic.co/t/numberformatexception-occurs-when-transportclient-is-building/47599 "2016-04-18T03:09:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hyojoung\_Shin](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@Hyojoung\_Shin](https://discuss.elastic.co/u/Hyojoung_Shin)\
**Post date:** [April 18, 2016, 3:09am UTC](https://discuss.elastic.co/t/numberformatexception-occurs-when-transportclient-is-building/47599/1 "2016-04-18T03:09:34Z")

</div>

Hi All,

I am using Java to insert data into Elasticsearch java APIs.

When I am building TransportClient, it stops at throw new NumberFormatException("null").

This code use to work find. It is not working anymore.

I am using elasticsearch 2.3.1 on centos.

`

`

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [April 18, 2016, 1:39pm UTC](https://discuss.elastic.co/t/numberformatexception-occurs-when-transportclient-is-building/47599/2 "2016-04-18T13:39:20Z")

</div>

This error should be catched and ignored by Elasticsearch. I suspect you are only having this issue because your debugger is configured to pause on thrown exceptions.

---

<div class="post-metadata">

**Author:** ![Hyojoung\_Shin](https://avatars.discourse-cdn.com/v4/letter/h/6a8cbe/32.png) [@Hyojoung\_Shin](https://discuss.elastic.co/u/Hyojoung_Shin)\
**Post date:** [April 19, 2016, 7:49am UTC](https://discuss.elastic.co/t/numberformatexception-occurs-when-transportclient-is-building/47599/3 "2016-04-19T07:49:45Z")

</div>

Oh you are right.  
Thanks!!

---

<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:** [July 5, 2017, 10:58pm UTC](https://discuss.elastic.co/t/numberformatexception-occurs-when-transportclient-is-building/47599/4 "2017-07-05T22:58:09Z")

</div>


