Java client problem EOFException

Hi,

I just started to look at ES and here is what i did

  • Started the server and used curl to create a couple of indexes following the samples on the web site

  • Created a java class and used the API to try to connect to the server and get my indexes previously created.

Client client = new TransportClient()
.addTransportAddress(new InetSocketTransportAddress("localhost", 9300));

Then i tried to get an index previously created

GetResponse response = client.prepareGet("twitter", "tweet", "1")
.execute()
.actionGet();

I get this error

Exception in thread "main" org.elasticsearch.transport.RemoteTransportException: [Living Monolith][inet[/127.0.0.1:9300]][indices/get]
Caused by: java.io.EOFException
at org.elasticsearch.transport.netty.ChannelBufferStreamInput.readByte(ChannelBufferStreamInput.java:112)
at org.elasticsearch.common.io.stream.HandlesStreamInput.readByte(HandlesStreamInput.java:80)
at org.elasticsearch.action.get.GetRequest.readFrom(GetRequest.java:232)

Is there something wrong with what i am doing ?