Could anybody give me a hand?
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang
On Wednesday, June 6, 2012 1:24:17 AM UTC+8, Yang wrote:
Dear all,
I'm playing with ES, but meet a problem, after I spent my whole day, I
couldn't get it done.
I just want to get the specific document by indexId, type and documentId
via the code below:
(all the classes come from org.apache.commons.httpclient)
String docURL = genDocumentURL(indexId, type, documentId);// just combine
them as an url.
HttpClient http = new HttpClient();
GetMethod get = new GetMethod(docURL);
int status = http.executeMethod(get);
log.info("the status of request a document: [" + status + "]");
String body = get.getResponseBodyAsString();
log.info("resopnse body is: [" + body + "]");
After I run the code above, I got the exception below:
the status of request a document: [500]
resopnse body is: [{"error":"RemoteTransportException[Failed to
deserialize response of type [org.elasticsearch.action.get.GetResponse]];
nested: TransportSerializationException[Failed to deserialize response of
type [org.elasticsearch.action.get.GetResponse]]; nested:
IOException[Expected handle header, got [79]]; ","status":500}]
ES version: 0.19.4
All config of ES are default. I don't change anything.
Could anyone give me a hint or a reference, that would be very helpful~~
Thanks very much~
Yang