{"action":"opened","issue":{"url":"https://api.github.com/repos/EclairJS/eclairjs-nashorn/issues/196","repository_url":"https://api.github.com/repos/EclairJS/eclairjs-nashorn","labels_url":"https://api.github.com/repos/EclairJS/eclairjs-nashorn/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/EclairJS/eclairjs-nashorn/issues/196/comments","events_url":"https://api.github.com/repos/EclairJS/eclairjs-nashorn/issues/196/events","html_url":"https://github.com/EclairJS/eclairjs-nashorn/issues/196","id":144313646,"number":196,"title":"examples/mllib/ranking_metrics_example.js throws exception","user":{"login":"billreed63","id":717822,"avatar_url":"https://avatars.githubusercontent.com/u/717822?v=3","gravatar_id":"","url":"https://api.github.com/users/billreed63","html_url":"https://github.com/billreed63","followers_url":"https://api.github.com/users/billreed63/followers","following_url":"https://api.github.com/users/billreed63/following{/other_user}","gists_url":"https://api.github.com/users/billreed63/gists{/gist_id}","starred_url":"https://api.github.com/users/billreed63/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billreed63/subscriptions","organizations_url":"https://api.github.com/users/billreed63/orgs","repos_url":"https://api.github.com/users/billreed63/repos","events_url":"https://api.github.com/users/billreed63/events{/privacy}","received_events_url":"https://api.github.com/users/billreed63/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/EclairJS/eclairjs-nashorn/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/EclairJS/eclairjs-nashorn/labels/Spark%201.6.0","name":"Spark 1.6.0","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-29T16:14:43Z","updated_at":"2016-03-29T16:14:43Z","closed_at":null,"body":"````\r\n16/03/29 12:11:53 ERROR Executor: Exception in task 0.0 in stage 159.0 (TID 338)\r\njava.lang.ClassCastException: [I cannot be cast to java.lang.Iterable\r\n\tat org.apache.spark.mllib.evaluation.RankingMetrics$$anonfun$1.apply(RankingMetrics.scala:170)\r\n\tat org.apache.spark.mllib.evaluation.RankingMetrics$$anonfun$1.apply(RankingMetrics.scala:170)\r\n\tat scala.collection.Iterator$$anon$11.next(Iterator.scala:328)\r\n\tat scala.collection.Iterator$$anon$11.next(Iterator.scala:328)\r\n\tat scala.collection.Iterator$class.foreach(Iterator.scala:727)\r\n\tat scala.collection.AbstractIterator.foreach(Iterator.scala:1157)\r\n\tat org.apache.spark.util.StatCounter.merge(StatCounter.scala:53)\r\n\tat org.apache.spark.util.StatCounter.<init>(StatCounter.scala:35)\r\n\tat org.apache.spark.util.StatCounter$.apply(StatCounter.scala:144)\r\n\tat org.apache.spark.rdd.DoubleRDDFunctions$$anonfun$stats$1$$anonfun$apply$1.apply(DoubleRDDFunctions.scala:42)\r\n\tat org.apache.spark.rdd.DoubleRDDFunctions$$anonfun$stats$1$$anonfun$apply$1.apply(DoubleRDDFunctions.scala:42)\r\n\tat org.apache.spark.rdd.RDD$$anonfun$mapPartitions$1$$anonfun$apply$20.apply(RDD.scala:710)\r\n\tat org.apache.spark.rdd.RDD$$anonfun$mapPartitions$1$$anonfun$apply$20.apply(RDD.scala:710)\r\n\tat org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:38)\r\n\tat org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:306)\r\n\tat org.apache.spark.rdd.RDD.iterator(RDD.scala:270)\r\n\tat org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:66)\r\n\tat org.apache.spark.scheduler.Task.run(Task.scala:89)\r\n\tat org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:213)\r\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)\r\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n16/03/29 12:11:53 ERROR Executor: Exception \r\n````"}}