java.lang.IllegalStateException: state should be: open

Google Groups | Jerry Lin | 1 year ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Memory leak in mongo-java-driver v 2.12.0

    Stack Overflow | 2 years ago | aspdeepak
    java.lang.IllegalStateException: open
  3. 0

    java.lang.IllegalStateException: open

    Stack Overflow | 2 years ago | naresh nandu
    java.lang.IllegalStateException: open

  1. rp 1 times, last 2 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    state should be: open

    at com.mongodb.assertions.Assertions.isTrue()
  2. MongoDB Java Driver
    DBCursor.hasNext
    1. com.mongodb.assertions.Assertions.isTrue(Assertions.java:70)
    2. com.mongodb.connection.DefaultServer.getDescription(DefaultServer.java:97)
    3. com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.getServerDescription(ClusterBinding.java:81)
    4. com.mongodb.operation.QueryBatchCursor.<init>(QueryBatchCursor.java:53)
    5. com.mongodb.operation.FindOperation$1.call(FindOperation.java:409)
    6. com.mongodb.operation.FindOperation$1.call(FindOperation.java:394)
    7. com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:195)
    8. com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:168)
    9. com.mongodb.operation.FindOperation.execute(FindOperation.java:394)
    10. com.mongodb.operation.FindOperation.execute(FindOperation.java:57)
    11. com.mongodb.Mongo.execute(Mongo.java:738)
    12. com.mongodb.Mongo$2.execute(Mongo.java:725)
    13. com.mongodb.DBCursor.initializeCursor(DBCursor.java:815)
    14. com.mongodb.DBCursor.hasNext(DBCursor.java:149)
    14 frames
  3. com.mongodb.hadoop
    MongoRecordReader.nextKeyValue
    1. com.mongodb.hadoop.input.MongoRecordReader.nextKeyValue(MongoRecordReader.java:75)
    1 frame
  4. Spark
    InterruptibleIterator.hasNext
    1. org.apache.spark.rdd.NewHadoopRDD$$anon$1.hasNext(NewHadoopRDD.scala:143)
    2. org.apache.spark.InterruptibleIterator.hasNext(InterruptibleIterator.scala:39)
    2 frames
  5. Scala
    Iterator$$anon$11.hasNext
    1. scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:369)
    2. scala.collection.Iterator$$anon$13.hasNext(Iterator.scala:413)
    3. scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:369)
    4. scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:369)
    4 frames
  6. Spark
    Executor$TaskRunner.run
    1. org.apache.spark.util.random.SamplingUtils$.reservoirSampleAndCount(SamplingUtils.scala:41)
    2. org.apache.spark.RangePartitioner$$anonfun$8.apply(Partitioner.scala:259)
    3. org.apache.spark.RangePartitioner$$anonfun$8.apply(Partitioner.scala:257)
    4. org.apache.spark.rdd.RDD$$anonfun$15.apply(RDD.scala:647)
    5. org.apache.spark.rdd.RDD$$anonfun$15.apply(RDD.scala:647)
    6. org.apache.spark.rdd.MapPartitionsRDD.compute(MapPartitionsRDD.scala:35)
    7. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:277)
    8. org.apache.spark.rdd.RDD.iterator(RDD.scala:244)
    9. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:61)
    10. org.apache.spark.scheduler.Task.run(Task.scala:64)
    11. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:203)
    11 frames
  7. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames