Carrot2 error on elasticsearch version 0.19.11

curl -XPOST
'http://localhost:9200/indexname/_carrot2?carrot2.language=ENGLISH&carrot2.title_fields=title&carrot2.summary_fields=snippet&carrot2.url_field=url&carrot2.attach_detail=true&carrot2.cluster_count_base=10&carrot2.cluster_phrase_label_boost=2.0'
-d '{
"query": {
"bool": {
"should": [
{
"match_all": {}
}
]
}
},
"from": 0,
"size": 500
}'

the above query throw the following error in elasticsearch log..

[2012-11-14 06:25:26,572][WARN ][http.netty ] [Dominus]
Caught exception while handling client http traffic, closing connection
[id: 0x9
76ffeac, /192.168.1.245:41607 => /192.168.1.243:9200]
java.lang.NoSuchMethodError:
org.elasticsearch.rest.RestRequest.contentByteArray()[B
at
org.elasticsearch.plugin.infinitbyte.Carrot2RestAction.parseSearchRequest(Carrot2RestAction.java:349)
at
org.elasticsearch.plugin.infinitbyte.Carrot2RestAction.handleRequest(Carrot2RestAction.java:87)
at
org.elasticsearch.rest.RestController.executeHandler(RestController.java:159)
at
org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:142)
at
org.elasticsearch.http.HttpServer.internalDispatchRequest(HttpServer.java:120)
at
org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:82)
at
org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:285)
at
org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:43)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at
org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:149)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:455)
at
org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:538)
at
org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:437)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
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:84)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
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:679)

--

That looks as though the Carrot2 plugin you're using is incompatible with
the version of ElasticSearch you're using (the plugin is invoking a method
that doesn't exist anymore). Which version of ElasticSearch are you using?
I think you'll need to raise this as an issue with the Carrot2 plugin
project.

On Thursday, November 15, 2012 12:50:40 AM UTC+13, Jalal wrote:

curl -XPOST '
http://localhost:9200/indexname/_carrot2?carrot2.language=ENGLISH&carrot2.title_fields=title&carrot2.summary_fields=snippet&carrot2.url_field=url&carrot2.attach_detail=true&carrot2.cluster_count_base=10&carrot2.cluster_phrase_label_boost=2.0'
-d '{
"query": {
"bool": {
"should": [
{
"match_all": {}
}
]
}
},
"from": 0,
"size": 500
}'

the above query throw the following error in elasticsearch log..

[2012-11-14 06:25:26,572][WARN ][http.netty ] [Dominus]
Caught exception while handling client http traffic, closing connection
[id: 0x9
76ffeac, /192.168.1.245:41607 => /192.168.1.243:9200]
java.lang.NoSuchMethodError:
org.elasticsearch.rest.RestRequest.contentByteArray()[B
at
org.elasticsearch.plugin.infinitbyte.Carrot2RestAction.parseSearchRequest(Carrot2RestAction.java:349)
at
org.elasticsearch.plugin.infinitbyte.Carrot2RestAction.handleRequest(Carrot2RestAction.java:87)
at
org.elasticsearch.rest.RestController.executeHandler(RestController.java:159)
at
org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:142)
at
org.elasticsearch.http.HttpServer.internalDispatchRequest(HttpServer.java:120)
at
org.elasticsearch.http.HttpServer$Dispatcher.dispatchRequest(HttpServer.java:82)
at
org.elasticsearch.http.netty.NettyHttpServerTransport.dispatchRequest(NettyHttpServerTransport.java:285)
at
org.elasticsearch.http.netty.HttpRequestHandler.messageReceived(HttpRequestHandler.java:43)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at
org.elasticsearch.common.netty.handler.codec.http.HttpChunkAggregator.messageReceived(HttpChunkAggregator.java:149)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at
org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at
org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:455)
at
org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:538)
at
org.elasticsearch.common.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:437)
at
org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:75)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:793)
at
org.elasticsearch.common.netty.OpenChannelsHandler.handleUpstream(OpenChannelsHandler.java:74)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:565)
at
org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:560)
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:84)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:471)
at
org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:332)
at
org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:35)
at
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:102)
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:679)

--

Thanks Chris,
The error was with elasticsearch version 0.19.11, the carrot plugin used to
work well with 0.19.8. I will raise this issue with the Carrot plugin
project.

On Fri, Nov 16, 2012 at 2:42 AM, Chris Male gento0nz@gmail.com wrote:

That looks as though the Carrot2 plugin you're using is incompatible with
the version of ElasticSearch you're using (the plugin is invoking a method
that doesn't exist anymore). Which version of ElasticSearch are you using?
I think you'll need to raise this as an issue with the Carrot2 plugin
project.

On Thursday, November 15, 2012 12:50:40 AM UTC+13, Jalal wrote:

curl -XPOST 'http://localhost:9200/indexname/_carrot2?carrot2.
language=ENGLISH&carrot2.title_fields=title&carrot2.
summary_fields=snippet&carrot2.url_field=url&carrot2.
attach_detail=true&carrot2.cluster_count_base=10&carrot2.
cluster_phrase_label_boost=2.0http://localhost:9200/indexname/_carrot2?carrot2.language=ENGLISH&carrot2.title_fields=title&carrot2.summary_fields=snippet&carrot2.url_field=url&carrot2.attach_detail=true&carrot2.cluster_count_base=10&carrot2.cluster_phrase_label_boost=2.0
**' -d '{
"query": {
"bool": {
"should": [
{
"match_all": {}
}
]
}
},
"from": 0,
"size": 500
}'

the above query throw the following error in elasticsearch log..

[2012-11-14 06:25:26,572][WARN ][http.netty ] [Dominus]
Caught exception while handling client http traffic, closing connection
[id: 0x9
76ffeac, /192.168.1.245:41607 => /192.168.1.243:9200]
java.lang.NoSuchMethodError: org.elasticsearch.rest.**
RestRequest.contentByteArray()**[B
at org.elasticsearch.plugin.infinitbyte.Carrot2RestAction.
parseSearchRequest(**Carrot2RestAction.java:349)
at org.elasticsearch.plugin.infinitbyte.Carrot2RestAction.
handleRequest(**Carrot2RestAction.java:87)
at org.elasticsearch.rest.RestController.executeHandler(
RestController.java:159)
at org.elasticsearch.rest.**RestController.dispatchRequest(
RestController.java:142)
at org.elasticsearch.http.**HttpServer.**internalDispatchRequest(
**HttpServer.java:120)
at org.elasticsearch.http.HttpServer$Dispatcher.
dispatchRequest(HttpServer.**java:82)
at org.elasticsearch.http.netty.NettyHttpServerTransport.
dispatchRequest(**NettyHttpServerTransport.java:**285)
at org.elasticsearch.http.netty.HttpRequestHandler.
messageReceived(**HttpRequestHandler.java:43)
at org.elasticsearch.common.netty.channel.
SimpleChannelUpstreamHandler.handleUpstream(
SimpleChannelUpstreamHandler.**java:75)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
565)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline$**DefaultChannelHandlerContext.sendUpstream(
DefaultChannelPipeline.java:**793)
at org.elasticsearch.common.netty.handler.codec.http.
HttpChunkAggregator.**messageReceived(**HttpChunkAggregator.java:149)
at org.elasticsearch.common.netty.channel.
SimpleChannelUpstreamHandler.handleUpstream(
SimpleChannelUpstreamHandler.**java:75)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
565)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline$**DefaultChannelHandlerContext.sendUpstream(
DefaultChannelPipeline.java:**793)
at org.elasticsearch.common.netty.channel.Channels.
fireMessageReceived(Channels.**java:296)
at org.elasticsearch.common.netty.handler.codec.frame.
FrameDecoder.**unfoldAndFireMessageReceived(**FrameDecoder.java:455)
at org.elasticsearch.common.netty.handler.codec.replay.
ReplayingDecoder.callDecode(**ReplayingDecoder.java:538)
at org.elasticsearch.common.netty.handler.codec.replay.
ReplayingDecoder.**messageReceived(**ReplayingDecoder.java:437)
at org.elasticsearch.common.netty.channel.
SimpleChannelUpstreamHandler.handleUpstream(
SimpleChannelUpstreamHandler.**java:75)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
565)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline$**DefaultChannelHandlerContext.sendUpstream(
DefaultChannelPipeline.java:**793)
at org.elasticsearch.common.netty.OpenChannelsHandler.
handleUpstream(**OpenChannelsHandler.java:74)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
565)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
560)
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:**84)
at org.elasticsearch.common.netty.channel.socket.nio.
AbstractNioWorker.**processSelectedKeys(**AbstractNioWorker.java:471)
at org.elasticsearch.common.netty.channel.socket.nio.
AbstractNioWorker.run(**AbstractNioWorker.java:332)
at org.elasticsearch.common.netty.channel.socket.nio.
NioWorker.run(NioWorker.java:**35)
at org.elasticsearch.common.netty.util.
ThreadRenamingRunnable.run(**ThreadRenamingRunnable.java:**102)
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:679)

--

--

hi,already fixed in 1.1.1,
have fun,:slight_smile:

On Fri, Nov 16, 2012 at 4:10 PM, Jalal Mohammed jalalm@algotree.com wrote:

Thanks Chris,
The error was with elasticsearch version 0.19.11, the carrot plugin used
to work well with 0.19.8. I will raise this issue with the Carrot plugin
project.

On Fri, Nov 16, 2012 at 2:42 AM, Chris Male gento0nz@gmail.com wrote:

That looks as though the Carrot2 plugin you're using is incompatible with
the version of ElasticSearch you're using (the plugin is invoking a method
that doesn't exist anymore). Which version of ElasticSearch are you using?
I think you'll need to raise this as an issue with the Carrot2 plugin
project.

On Thursday, November 15, 2012 12:50:40 AM UTC+13, Jalal wrote:

curl -XPOST 'http://localhost:9200/indexname/_carrot2?carrot2.
language=ENGLISH&carrot2.title_fields=title&carrot2.
summary_fields=snippet&carrot2.url_field=url&carrot2.
attach_detail=true&carrot2.cluster_count_base=10&carrot2.
cluster_phrase_label_boost=2.0http://localhost:9200/indexname/_carrot2?carrot2.language=ENGLISH&carrot2.title_fields=title&carrot2.summary_fields=snippet&carrot2.url_field=url&carrot2.attach_detail=true&carrot2.cluster_count_base=10&carrot2.cluster_phrase_label_boost=2.0
**' -d '{
"query": {
"bool": {
"should": [
{
"match_all": {}
}
]
}
},
"from": 0,
"size": 500
}'

the above query throw the following error in elasticsearch log..

[2012-11-14 06:25:26,572][WARN ][http.netty ] [Dominus]
Caught exception while handling client http traffic, closing connection
[id: 0x9
76ffeac, /192.168.1.245:41607 => /192.168.1.243:9200]
java.lang.NoSuchMethodError: org.elasticsearch.rest.**
RestRequest.contentByteArray()**[B
at org.elasticsearch.plugin.infinitbyte.Carrot2RestAction.
parseSearchRequest(**Carrot2RestAction.java:349)
at org.elasticsearch.plugin.infinitbyte.Carrot2RestAction.
handleRequest(**Carrot2RestAction.java:87)
at org.elasticsearch.rest.RestController.executeHandler(
RestController.java:159)
at org.elasticsearch.rest.**RestController.dispatchRequest(
RestController.java:142)
at org.elasticsearch.http.HttpServer.
internalDispatchRequest(**HttpServer.java:120)
at org.elasticsearch.http.HttpServer$Dispatcher.
dispatchRequest(HttpServer.**java:82)
at org.elasticsearch.http.netty.NettyHttpServerTransport.
dispatchRequest(**NettyHttpServerTransport.java:**285)
at org.elasticsearch.http.netty.HttpRequestHandler.
messageReceived(**HttpRequestHandler.java:43)
at org.elasticsearch.common.netty.channel.
SimpleChannelUpstreamHandler.handleUpstream(
SimpleChannelUpstreamHandler.**java:75)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
565)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline$**DefaultChannelHandlerContext.sendUpstream(
DefaultChannelPipeline.java:**793)
at org.elasticsearch.common.netty.handler.codec.http.
HttpChunkAggregator.**messageReceived(**HttpChunkAggregator.java:149)
at org.elasticsearch.common.netty.channel.
SimpleChannelUpstreamHandler.handleUpstream(
SimpleChannelUpstreamHandler.**java:75)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
565)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline$**DefaultChannelHandlerContext.sendUpstream(
DefaultChannelPipeline.java:**793)
at org.elasticsearch.common.netty.channel.Channels.
fireMessageReceived(Channels.**java:296)
at org.elasticsearch.common.netty.handler.codec.frame.
FrameDecoder.**unfoldAndFireMessageReceived(**FrameDecoder.java:455)
at org.elasticsearch.common.netty.handler.codec.replay.
ReplayingDecoder.callDecode(**ReplayingDecoder.java:538)
at org.elasticsearch.common.netty.handler.codec.replay.
ReplayingDecoder.**messageReceived(**ReplayingDecoder.java:437)
at org.elasticsearch.common.netty.channel.
SimpleChannelUpstreamHandler.handleUpstream(
SimpleChannelUpstreamHandler.**java:75)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
565)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline$**DefaultChannelHandlerContext.sendUpstream(
DefaultChannelPipeline.java:**793)
at org.elasticsearch.common.netty.OpenChannelsHandler.
handleUpstream(**OpenChannelsHandler.java:74)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
565)
at org.elasticsearch.common.netty.channel.
DefaultChannelPipeline.**sendUpstream(DefaultChannelPipeline.java:
560)
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:**84)
at org.elasticsearch.common.netty.channel.socket.nio.
AbstractNioWorker.**processSelectedKeys(**AbstractNioWorker.java:471)
at org.elasticsearch.common.netty.channel.socket.nio.
AbstractNioWorker.run(**AbstractNioWorker.java:332)
at org.elasticsearch.common.netty.channel.socket.nio.
NioWorker.run(NioWorker.java:**35)
at org.elasticsearch.common.netty.util.
ThreadRenamingRunnable.run(**ThreadRenamingRunnable.java:**102)
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:679)

--

--

--