# TransportSerializationException - version 0.19.3

**URL:** <https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998>\
**Category:** Elasticsearch\
**Created:** [June 6, 2012, 7:07pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998 "2012-06-06T19:07:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![adrem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrem/32/2216_2.png) [@adrem](https://discuss.elastic.co/u/adrem)\
**Post date:** [June 6, 2012, 7:07pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/1 "2012-06-06T19:07:39Z")

</div>

Hello,

I am connecting a node client to a cluster, using the maven artifact jar  
ver 0.19.3. When running my tests in a mac everything works fine.

But in a windows workstation or in a Linux box, I get a  
TransportSerializationException

Here is an excerpt of the calling code :  
final ActionFuture createFuture =  
client.admin().indices().create(new CreateIndexRequest(idxName));  
final boolean acknowledged = createFuture.actionGet().acknowledged();  
if (!acknowledged) {  
return false;  
}

Any clues ?

Thanks

PS: This is the stacktrace produced by this exception  
Constructor threw exception; nested exception is  
org.elasticsearch.transport.TransportSerializationException: Failed to  
deserialize exception response from stream  
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)  
at  
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)  
at  
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)  
... 45 more  
Caused by: org.elasticsearch.transport.TransportSerializationException:  
Failed to deserialize exception response from stream  
at  
org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:277)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler.process(MessageChannelHandler.java:231)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler.callDecode(MessageChannelHandler.java:141)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:93)  
at  
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
at  
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)  
at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
at  
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:364)  
at  
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:238)  
at  
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)  
at  
org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
at java.lang.Thread.run(Thread.java:722)  
Caused by: java.io.StreamCorruptedException: unexpected end of block data  
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1369)  
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
at java.lang.Throwable.readObject(Throwable.java:913)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:601)  
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
at java.lang.Throwable.readObject(Throwable.java:913)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:601)  
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)  
at  
org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:275)  
... 16 more

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 10, 2012, 9:30pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/2 "2012-06-10T21:30:11Z")

</div>

Are you working on a remote cluster or embedded?

On Wed, Jun 6, 2012 at 9:07 PM, Ceteris Paribus [netvisao@gmail.com](mailto:netvisao@gmail.com) wrote:

> Hello,
> 
> I am connecting a node client to a cluster, using the maven artifact jar  
> ver 0.19.3. When running my tests in a mac everything works fine.
> 
> But in a windows workstation or in a Linux box, I get a  
> TransportSerializationException
> 
> Here is an excerpt of the calling code :  
> final ActionFuture createFuture =  
> client.admin().indices().create(new CreateIndexRequest(idxName));  
> final boolean acknowledged = createFuture.actionGet().acknowledged();  
> if (!acknowledged) {  
> return false;  
> }
> 
> Any clues ?
> 
> Thanks
> 
> PS: This is the stacktrace produced by this exception  
> Constructor threw exception; nested exception is  
> org.elasticsearch.transport.TransportSerializationException: Failed to  
> deserialize exception response from stream  
> at  
> org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)  
> at  
> org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)  
> at  
> org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)  
> ... 45 more  
> Caused by: org.elasticsearch.transport.TransportSerializationException:  
> Failed to deserialize exception response from stream  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:277)  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler.process(MessageChannelHandler.java:231)  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler.callDecode(MessageChannelHandler.java:141)  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:93)  
> at  
> org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> at  
> org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)  
> at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
> at  
> org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:364)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:238)  
> at  
> org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)  
> at  
> org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> at java.lang.Thread.run(Thread.java:722)  
> Caused by: java.io.StreamCorruptedException: unexpected end of block data  
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1369)  
> at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> at  
> java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> at java.lang.Throwable.readObject(Throwable.java:913)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> at java.lang.reflect.Method.invoke(Method.java:601)  
> at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> at  
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> at  
> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> at java.lang.Throwable.readObject(Throwable.java:913)  
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> at java.lang.reflect.Method.invoke(Method.java:601)  
> at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> at  
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)  
> at  
> org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:275)  
> ... 16 more

---

<div class="post-metadata">

**Author:** ![adrem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrem/32/2216_2.png) [@adrem](https://discuss.elastic.co/u/adrem)\
**Post date:** [June 10, 2012, 10:03pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/3 "2012-06-10T22:03:41Z")

</div>

Embedded.  
Thanks!  
On Jun 10, 2012 5:30 PM, "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Are you working on a remote cluster or embedded?
> 
> On Wed, Jun 6, 2012 at 9:07 PM, Ceteris Paribus [netvisao@gmail.com](mailto:netvisao@gmail.com)wrote:
> 
> > Hello,
> > 
> > I am connecting a node client to a cluster, using the maven artifact jar  
> > ver 0.19.3. When running my tests in a mac everything works fine.
> > 
> > But in a windows workstation or in a Linux box, I get a  
> > TransportSerializationException
> > 
> > Here is an excerpt of the calling code :  
> > final ActionFuture createFuture =  
> > client.admin().indices().create(new CreateIndexRequest(idxName));  
> > final boolean acknowledged = createFuture.actionGet().acknowledged();  
> > if (!acknowledged) {  
> > return false;  
> > }
> > 
> > Any clues ?
> > 
> > Thanks
> > 
> > PS: This is the stacktrace produced by this exception  
> > Constructor threw exception; nested exception is  
> > org.elasticsearch.transport.TransportSerializationException: Failed to  
> > deserialize exception response from stream  
> > at  
> > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)  
> > at  
> > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)  
> > at  
> > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)  
> > ... 45 more  
> > Caused by: org.elasticsearch.transport.TransportSerializationException:  
> > Failed to deserialize exception response from stream  
> > at  
> > org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:277)  
> > at  
> > org.elasticsearch.transport.netty.MessageChannelHandler.process(MessageChannelHandler.java:231)  
> > at  
> > org.elasticsearch.transport.netty.MessageChannelHandler.callDecode(MessageChannelHandler.java:141)  
> > at  
> > org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:93)  
> > at  
> > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)  
> > at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> > at  
> > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)  
> > at  
> > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
> > at  
> > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
> > at  
> > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)  
> > at  
> > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:364)  
> > at  
> > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:238)  
> > at  
> > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)  
> > at  
> > org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> > at java.lang.Thread.run(Thread.java:722)  
> > Caused by: java.io.StreamCorruptedException: unexpected end of block data  
> > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1369)  
> > at  
> > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> > at  
> > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> > at java.lang.Throwable.readObject(Throwable.java:913)  
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > at  
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> > at  
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> > at java.lang.reflect.Method.invoke(Method.java:601)  
> > at  
> > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> > at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> > at  
> > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> > at  
> > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> > at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> > at java.lang.Throwable.readObject(Throwable.java:913)  
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > at  
> > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> > at  
> > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> > at java.lang.reflect.Method.invoke(Method.java:601)  
> > at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> > at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> > at  
> > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)  
> > at  
> > org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:275)  
> > ... 16 more

---

<div class="post-metadata">

**Author:** ![adrem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrem/32/2216_2.png) [@adrem](https://discuss.elastic.co/u/adrem)\
**Post date:** [June 10, 2012, 10:07pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/4 "2012-06-10T22:07:08Z")

</div>

Also thishappens only when I try to create the index and a template. Not  
when I try to insert a document.  
On Jun 10, 2012 6:03 PM, "A. Rnk." [netvisao@gmail.com](mailto:netvisao@gmail.com) wrote:

> Embedded.  
> Thanks!  
> On Jun 10, 2012 5:30 PM, "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > Are you working on a remote cluster or embedded?
> > 
> > On Wed, Jun 6, 2012 at 9:07 PM, Ceteris Paribus [netvisao@gmail.com](mailto:netvisao@gmail.com)wrote:
> > 
> > > Hello,
> > > 
> > > I am connecting a node client to a cluster, using the maven artifact jar  
> > > ver 0.19.3. When running my tests in a mac everything works fine.
> > > 
> > > But in a windows workstation or in a Linux box, I get a  
> > > TransportSerializationException
> > > 
> > > Here is an excerpt of the calling code :  
> > > final ActionFuture createFuture =  
> > > client.admin().indices().create(new CreateIndexRequest(idxName));  
> > > final boolean acknowledged = createFuture.actionGet().acknowledged();  
> > > if (!acknowledged) {  
> > > return false;  
> > > }
> > > 
> > > Any clues ?
> > > 
> > > Thanks
> > > 
> > > PS: This is the stacktrace produced by this exception  
> > > Constructor threw exception; nested exception is  
> > > org.elasticsearch.transport.TransportSerializationException: Failed to  
> > > deserialize exception response from stream  
> > > at  
> > > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)  
> > > at  
> > > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)  
> > > at  
> > > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)  
> > > ... 45 more  
> > > Caused by: org.elasticsearch.transport.TransportSerializationException:  
> > > Failed to deserialize exception response from stream  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:277)  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.process(MessageChannelHandler.java:231)  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.callDecode(MessageChannelHandler.java:141)  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:93)  
> > > at  
> > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)  
> > > at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> > > at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)  
> > > at  
> > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
> > > at  
> > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
> > > at  
> > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)  
> > > at  
> > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:364)  
> > > at  
> > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:238)  
> > > at  
> > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)  
> > > at  
> > > org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> > > at  
> > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> > > at  
> > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> > > at java.lang.Thread.run(Thread.java:722)  
> > > Caused by: java.io.StreamCorruptedException: unexpected end of block data  
> > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1369)  
> > > at  
> > > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> > > at  
> > > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> > > at java.lang.Throwable.readObject(Throwable.java:913)  
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > > at  
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> > > at  
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> > > at java.lang.reflect.Method.invoke(Method.java:601)  
> > > at  
> > > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> > > at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> > > at  
> > > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> > > at  
> > > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> > > at  
> > > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> > > at java.lang.Throwable.readObject(Throwable.java:913)  
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > > at  
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> > > at  
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> > > at java.lang.reflect.Method.invoke(Method.java:601)  
> > > at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> > > at  
> > > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> > > at  
> > > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> > > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:275)  
> > > ... 16 more

---

<div class="post-metadata">

**Author:** ![adrem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrem/32/2216_2.png) [@adrem](https://discuss.elastic.co/u/adrem)\
**Post date:** [June 11, 2012, 1:52am UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/5 "2012-06-11T01:52:58Z")

</div>

Also this happens only when I try to create the index and a template. Not  
when I try to insert a document.  
On Jun 10, 2012 6:03 PM, "A. Rnk." [netvisao@gmail.com](mailto:netvisao@gmail.com) wrote:

> Embedded.  
> Thanks!  
> On Jun 10, 2012 5:30 PM, "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> 
> > Are you working on a remote cluster or embedded?
> > 
> > On Wed, Jun 6, 2012 at 9:07 PM, Ceteris Paribus [netvisao@gmail.com](mailto:netvisao@gmail.com)wrote:
> > 
> > > Hello,
> > > 
> > > I am connecting a node client to a cluster, using the maven artifact jar  
> > > ver 0.19.3. When running my tests in a mac everything works fine.
> > > 
> > > But in a windows workstation or in a Linux box, I get a  
> > > TransportSerializationException
> > > 
> > > Here is an excerpt of the calling code :  
> > > final ActionFuture createFuture =  
> > > client.admin().indices().create(new CreateIndexRequest(idxName));  
> > > final boolean acknowledged = createFuture.actionGet().acknowledged();  
> > > if (!acknowledged) {  
> > > return false;  
> > > }
> > > 
> > > Any clues ?
> > > 
> > > Thanks
> > > 
> > > PS: This is the stacktrace produced by this exception  
> > > Constructor threw exception; nested exception is  
> > > org.elasticsearch.transport.TransportSerializationException: Failed to  
> > > deserialize exception response from stream  
> > > at  
> > > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)  
> > > at  
> > > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)  
> > > at  
> > > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)  
> > > ... 45 more  
> > > Caused by: org.elasticsearch.transport.TransportSerializationException:  
> > > Failed to deserialize exception response from stream  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:277)  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.process(MessageChannelHandler.java:231)  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.callDecode(MessageChannelHandler.java:141)  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:93)  
> > > at  
> > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)  
> > > at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> > > at  
> > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)  
> > > at  
> > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
> > > at  
> > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
> > > at  
> > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)  
> > > at  
> > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:364)  
> > > at  
> > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:238)  
> > > at  
> > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)  
> > > at  
> > > org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> > > at  
> > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> > > at  
> > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> > > at java.lang.Thread.run(Thread.java:722)  
> > > Caused by: java.io.StreamCorruptedException: unexpected end of block data  
> > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1369)  
> > > at  
> > > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> > > at  
> > > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> > > at java.lang.Throwable.readObject(Throwable.java:913)  
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > > at  
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> > > at  
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> > > at java.lang.reflect.Method.invoke(Method.java:601)  
> > > at  
> > > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> > > at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> > > at  
> > > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> > > at  
> > > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> > > at  
> > > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> > > at java.lang.Throwable.readObject(Throwable.java:913)  
> > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > > at  
> > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> > > at  
> > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> > > at java.lang.reflect.Method.invoke(Method.java:601)  
> > > at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> > > at  
> > > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> > > at  
> > > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> > > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)  
> > > at  
> > > org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:275)  
> > > ... 16 more

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 13, 2012, 5:57pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/6 "2012-06-13T17:57:12Z")

</div>

Is there a chance for a recreation if its embedded?

On Mon, Jun 11, 2012 at 3:52 AM, A. Rnk. [netvisao@gmail.com](mailto:netvisao@gmail.com) wrote:

> Also this happens only when I try to create the index and a template. Not  
> when I try to insert a document.  
> On Jun 10, 2012 6:03 PM, "A. Rnk." [netvisao@gmail.com](mailto:netvisao@gmail.com) wrote:
> 
> > Embedded.  
> > Thanks!  
> > On Jun 10, 2012 5:30 PM, "Shay Banon" [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:
> > 
> > > Are you working on a remote cluster or embedded?
> > > 
> > > On Wed, Jun 6, 2012 at 9:07 PM, Ceteris Paribus [netvisao@gmail.com](mailto:netvisao@gmail.com)wrote:
> > > 
> > > > Hello,
> > > > 
> > > > I am connecting a node client to a cluster, using the maven artifact  
> > > > jar ver 0.19.3. When running my tests in a mac everything works fine.
> > > > 
> > > > But in a windows workstation or in a Linux box, I get a  
> > > > TransportSerializationException
> > > > 
> > > > Here is an excerpt of the calling code :  
> > > > final ActionFuture createFuture =  
> > > > client.admin().indices().create(new CreateIndexRequest(idxName));  
> > > > final boolean acknowledged = createFuture.actionGet().acknowledged();  
> > > > if (!acknowledged) {  
> > > > return false;  
> > > > }
> > > > 
> > > > Any clues ?
> > > > 
> > > > Thanks
> > > > 
> > > > PS: This is the stacktrace produced by this exception  
> > > > Constructor threw exception; nested exception is  
> > > > org.elasticsearch.transport.TransportSerializationException: Failed to  
> > > > deserialize exception response from stream  
> > > > at  
> > > > org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:115)  
> > > > at  
> > > > org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)  
> > > > at  
> > > > org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:248)  
> > > > ... 45 more  
> > > > Caused by: org.elasticsearch.transport.TransportSerializationException:  
> > > > Failed to deserialize exception response from stream  
> > > > at  
> > > > org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:277)  
> > > > at  
> > > > org.elasticsearch.transport.netty.MessageChannelHandler.process(MessageChannelHandler.java:231)  
> > > > at  
> > > > org.elasticsearch.transport.netty.MessageChannelHandler.callDecode(MessageChannelHandler.java:141)  
> > > > at  
> > > > org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:93)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:364)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:238)  
> > > > at  
> > > > org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)  
> > > > at  
> > > > org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)  
> > > > at  
> > > > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)  
> > > > at  
> > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)  
> > > > at java.lang.Thread.run(Thread.java:722)  
> > > > Caused by: java.io.StreamCorruptedException: unexpected end of block  
> > > > data  
> > > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1369)  
> > > > at  
> > > > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> > > > at  
> > > > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> > > > at java.lang.Throwable.readObject(Throwable.java:913)  
> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > > > at  
> > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> > > > at  
> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> > > > at java.lang.reflect.Method.invoke(Method.java:601)  
> > > > at  
> > > > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> > > > at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> > > > at  
> > > > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> > > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> > > > at  
> > > > java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)  
> > > > at  
> > > > java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:498)  
> > > > at java.lang.Throwable.readObject(Throwable.java:913)  
> > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
> > > > at  
> > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
> > > > at  
> > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
> > > > at java.lang.reflect.Method.invoke(Method.java:601)  
> > > > at  
> > > > java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:991)  
> > > > at  
> > > > java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)  
> > > > at  
> > > > java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)  
> > > > at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1347)  
> > > > at java.io.ObjectInputStream.readObject(ObjectInputStream.java:369)  
> > > > at  
> > > > org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:275)  
> > > > ... 16 more

---

<div class="post-metadata">

**Author:** ![Tobias\_Wunden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tobias_wunden/32/2642_2.png) [@Tobias\_Wunden](https://discuss.elastic.co/u/Tobias_Wunden)\
**Post date:** [November 8, 2012, 1:31pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/7 "2012-11-08T13:31:01Z")

</div>

The same happens to me (I see the same stack trace when using the code example that has been posted earlier). Elasticsearch 0.19.9 is embedded, and I am using the following configuration (development setup):

cluster.name: weblounge  
node.name: "Localhost"  
node.master: true  
node.data: true  
index.number\_of\_shards: 1  
index.number\_of\_replicas: 0  
http.enabled: true

Everything else is commented out (defaults). The error does not appear every time, but very often. I am using elasticsearch inside an OSGi bundle (embeded), so it seems strange to me, that the bundle classloader should not be able to find an elasticsearch class.

I also see this in the logs (right after the stack trace):

14:28:19 WARN (Slf4jESLogger:104) [Localhost] Message not fully read (response) for [8] handler org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$4@14ecf6c5, error [true], resetting.

Any help is appreciated, please let me know if I can be of assistance, i. e providing more information.

---

<div class="post-metadata">

**Author:** ![Tobias\_Wunden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tobias_wunden/32/2642_2.png) [@Tobias\_Wunden](https://discuss.elastic.co/u/Tobias_Wunden)\
**Post date:** [November 8, 2012, 1:52pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/8 "2012-11-08T13:52:28Z")

</div>

The same happens to me (I see the same stack trace when using the code  
example that has been posted earlier) on Mac OS X as well as RedHat EL 6.  
Elasticsearch 0.19.9 is embedded, and I am using the following  
configuration (development setup):

cluster.name: weblounge  
node.name: "Localhost"  
node.master: true  
node.data: true  
index.number\_of\_shards: 1  
index.number\_of\_replicas: 0  
http.enabled: true

Everything else is commented out (defaults). The error appears every time I  
restart. I am using elasticsearch inside an OSGi bundle (embeded), so it  
seems strange to me that the bundle classloader should not be able to find  
an elasticsearch class. I am creating the client within the same bundle.

I also see this in the logs (right after the stack trace):

14:28:19 WARN (Slf4jESLogger:104) [Localhost] Message not fully read  
(response) for [8] handler  
org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$4@14ecf6c5,  
error [true], resetting.

Any help is appreciated, please let me know if I can be of assistance, i. e  
providing more information.

--

---

<div class="post-metadata">

**Author:** ![adrem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrem/32/2216_2.png) [@adrem](https://discuss.elastic.co/u/adrem)\
**Post date:** [November 8, 2012, 2:48pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/9 "2012-11-08T14:48:49Z")

</div>

I found out that in embedded mode, host's jvm need to be have the same architecture, and that is still an issue for version 0.19.11.

---

<div class="post-metadata">

**Author:** ![adrem](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrem/32/2216_2.png) [@adrem](https://discuss.elastic.co/u/adrem)\
**Post date:** [November 8, 2012, 2:49pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/10 "2012-11-08T14:49:57Z")

</div>

I found out that in embedded mode, host's jvm need to be have the same  
architecture, and that is still an issue for version 0.19.11.

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/TransportSerializationException-version-0-19-3-tp4018887p4025129.html](http://elasticsearch-users.115913.n3.nabble.com/TransportSerializationException-version-0-19-3-tp4018887p4025129.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [November 8, 2012, 5:57pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/11 "2012-11-08T17:57:03Z")

</div>

Hi,

some thoughts about possible causes:

- weird JRE class loader issue when using class loader  
transport.settings().getClassLoader()?

- different JREs (JRE 6, JRE 7) in one cluster?

- Netty object deserialization issue? Possibly related to  
[Netty 3.x : A java.util.Locale encoded with ObjectEncoder in Java 1.6 cannot be decoded with ObjectDecoder in Java 1.7 · Issue #603 · netty/netty · GitHub](https://github.com/netty/netty/issues/603)

Ensuring a common JRE version in the cluster and upgrading to ES \>= 0.19.10  
may help.

Would be nice to get more setup parameters of the cluster (os, JVM), to get  
a chance to reproduce the issue.

The "Message not fully read" warning might be harmless.

Jörg

On Thursday, November 8, 2012 2:52:28 PM UTC+1, Tobias Wunden wrote:

> The same happens to me (I see the same stack trace when using the code  
> example that has been posted earlier) on Mac OS X as well as RedHat EL 6.  
> Elasticsearch 0.19.9 is embedded, and I am using the following  
> configuration (development setup):
> 
> cluster.name: weblounge  
> node.name: "Localhost"  
> node.master: true  
> node.data: true  
> index.number\_of\_shards: 1  
> index.number\_of\_replicas: 0  
> http.enabled: true
> 
> Everything else is commented out (defaults). The error appears every time  
> I restart. I am using elasticsearch inside an OSGi bundle (embeded), so it  
> seems strange to me that the bundle classloader should not be able to find  
> an elasticsearch class. I am creating the client within the same bundle.
> 
> I also see this in the logs (right after the stack trace):
> 
> 14:28:19 WARN (Slf4jESLogger:104) [Localhost] Message not fully read  
> (response) for [8] handler  
> org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$4@14ecf6c5,  
> error [true], resetting.
> 
> Any help is appreciated, please let me know if I can be of assistance, i.  
> e providing more information.

--

---

<div class="post-metadata">

**Author:** ![Tobias\_Wunden](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tobias_wunden/32/2642_2.png) [@Tobias\_Wunden](https://discuss.elastic.co/u/Tobias_Wunden)\
**Post date:** [November 8, 2012, 7:42pm UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/12 "2012-11-08T19:42:13Z")

</div>

Hi Jörg,

thanks a lot for taking the time to answer! Of course I messed up my original message, and meant to say that the embedded version is actually 0.9.19 (missed out on the "1", shame on me!). The same is happening on Mac OS X 10.8 (Mountain Lion) as well as RedHat 6.0. Since this is a single node "cluster", it is not possible that different versions of the JRE are being used (at least I can't see how that would be possible, given that the client (content management system) and Elasticsearch are both running in the same VM).

Tobias

On 08.11.2012, at 18:57, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> Hi,
> 
> some thoughts about possible causes:
> 
> - weird JRE class loader issue when using class loader transport.settings().getClassLoader()?
> 
> - different JREs (JRE 6, JRE 7) in one cluster?
> 
> - Netty object deserialization issue? Possibly related to [Netty 3.x : A java.util.Locale encoded with ObjectEncoder in Java 1.6 cannot be decoded with ObjectDecoder in Java 1.7 · Issue #603 · netty/netty · GitHub](https://github.com/netty/netty/issues/603)
> 
> Ensuring a common JRE version in the cluster and upgrading to ES \>= 0.19.10 may help.
> 
> Would be nice to get more setup parameters of the cluster (os, JVM), to get a chance to reproduce the issue.
> 
> The "Message not fully read" warning might be harmless.
> 
> Jörg
> 
> On Thursday, November 8, 2012 2:52:28 PM UTC+1, Tobias Wunden wrote:  
> The same happens to me (I see the same stack trace when using the code example that has been posted earlier) on Mac OS X as well as RedHat EL 6. Elasticsearch 0.19.9 is embedded, and I am using the following configuration (development setup):
> 
> cluster.name: weblounge  
> node.name: "Localhost"  
> node.master: true  
> node.data: true  
> index.number\_of\_shards: 1  
> index.number\_of\_replicas: 0  
> http.enabled: true
> 
> Everything else is commented out (defaults). The error appears every time I restart. I am using elasticsearch inside an OSGi bundle (embeded), so it seems strange to me that the bundle classloader should not be able to find an elasticsearch class. I am creating the client within the same bundle.
> 
> I also see this in the logs (right after the stack trace):
> 
> 14:28:19 WARN (Slf4jESLogger:104) [Localhost] Message not fully read (response) for [8] handler org.elasticsearch.action.support.master.TransportMasterNodeOperationAction$4@14ecf6c5, error [true], resetting.
> 
> Any help is appreciated, please let me know if I can be of assistance, i. e providing more information.
> 
> --

--

---

<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 6, 2017, 3:05am UTC](https://discuss.elastic.co/t/transportserializationexception-version-0-19-3/7998/13 "2017-07-06T03:05:14Z")

</div>


