# Error when trying to create a TransportClient with 6.0.0-alpha2

**URL:** <https://discuss.elastic.co/t/error-when-trying-to-create-a-transportclient-with-6-0-0-alpha2/89699>\
**Category:** Elasticsearch\
**Created:** [June 16, 2017, 11:52am UTC](https://discuss.elastic.co/t/error-when-trying-to-create-a-transportclient-with-6-0-0-alpha2/89699 "2017-06-16T11:52:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzrucher](https://avatars.discourse-cdn.com/v4/letter/r/76d3ee/32.png) [@rzrucher](https://discuss.elastic.co/u/rzrucher)\
**Post date:** [June 16, 2017, 11:52am UTC](https://discuss.elastic.co/t/error-when-trying-to-create-a-transportclient-with-6-0-0-alpha2/89699/1 "2017-06-16T11:52:33Z")

</div>

Hi all,

I'm trying to play with version 6.0.0-alph2 and get this exception when trying to create a new TransportClient :

> Caused by: java.lang.NoClassDefFoundError: org/apache/lucene/search/postingshighlight/CustomSeparatorBreakIterator  
> at org.elasticsearch.search.SearchModule.setupHighlighters(SearchModule.java:576)  
> at org.elasticsearch.search.SearchModule.(SearchModule.java:282)  
> at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:139)  
> at org.elasticsearch.client.transport.TransportClient.(TransportClient.java:259)  
> at org.elasticsearch.transport.client.PreBuiltTransportClient.(PreBuiltTransportClient.java:125)  
> at org.elasticsearch.transport.client.PreBuiltTransportClient.(PreBuiltTransportClient.java:111)  
> at org.elasticsearch.transport.client.PreBuiltTransportClient.(PreBuiltTransportClient.java:101)

But after looking into Lucene 7 sources, I see that this class is in package org.apache.lucene.search.uhighlight.

Should be a bug in the new version or I'm doing something wrong ?

---

<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:** [June 16, 2017, 2:24pm UTC](https://discuss.elastic.co/t/error-when-trying-to-create-a-transportclient-with-6-0-0-alpha2/89699/2 "2017-06-16T14:24:57Z")

</div>

Sorry not answering to the direct question but I'd like to highlight here that the Transport Client is going to be deprecated. The High Level REST client should be the one you should try instead.

You might hit the same issue though. If so, may I ask you a reproduction code so we can better understand in which context this is happening?

---

<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 14, 2017, 2:25pm UTC](https://discuss.elastic.co/t/error-when-trying-to-create-a-transportclient-with-6-0-0-alpha2/89699/3 "2017-07-14T14:25:00Z")

</div>

Closed on July 14, 2017, 2:25pm UTC

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