-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hello,
I'm using esclient_2.10-1.3.0, Scala 2.10.4, Java 1.7.0_65-b17, elasticsearch 1.2.2
I'm new to ElasticSearch and I don't know whether I'm doing something wrong or not, but I got this error:
Exception in thread "main" java.lang.VerifyError: Bad type on operand stack
Exception Details:
Location:
org/scalastuff/esclient/ActionMagnet$$anon$3.execute(Lorg/elasticsearch/client/Client;Lorg/elasticsearch/action/ActionRequest;)Lscala/concurrent/Future; @30: invokeinterface
Reason:
Type 'org/elasticsearch/action/admin/cluster/ClusterAction' (current frame, stack[1]) is not assignable to 'org/elasticsearch/action/Action'
Current Frame:
bci: @30
flags: { }
locals: { 'org/scalastuff/esclient/ActionMagnet$$anon$3', 'org/elasticsearch/client/Client', 'org/elasticsearch/action/ActionRequest', 'scala/concurrent/Promise' }
stack: { 'org/elasticsearch/client/ClusterAdminClient', 'org/elasticsearch/action/admin/cluster/ClusterAction', 'org/elasticsearch/action/ActionRequest', 'org/elasticsearch/action/ActionListener' }
Bytecode:
0000000: b200 17b6 001b 4e2b b900 2101 00b9 0027
0000010: 0100 2ab4 0029 2cb2 002c 2db6 0030 b900
0000020: 3504 002d b900 3b01 00b0
at org.scalastuff.esclient.ActionMagnet$.magnet(ActionMagnet.scala:155)
at org.scalastuff.esclient.ActionMagnet$.<init>(ActionMagnet.scala:98)
at org.scalastuff.esclient.ActionMagnet$.<clinit>(ActionMagnet.scala)
at ....
at ....
My code looks like
import org.scalastuff.esclient.ESClient
....
val esClient = nodeBuilder.clusterName("myClusterName").client(true).node.client
....
....
val bulkRequest = esClient.prepareBulk.setListenerThreaded(true)
val builders = companies.map(c => esClient.prepareIndex(indexName, typeName, c.getId).setSource(c.toJSON.toString))
builders.toList.foreach(bulkRequest.add)
val bulkResponse: Future[BulkResponse] =
esClient.execute(bulkRequest.request())
Please tell me if you need more details from me.
Thanks in advance for your help.
Uri
Metadata
Metadata
Assignees
Labels
No labels