Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via JIRA by Sam Weaver, 1 year ago
state should be: open
via Spring JIRA by Christoph Strobl, 1 year ago
via Spring JIRA by Christoph Strobl, 2 years ago
java.lang.IllegalStateException: state should be: open	at com.mongodb.assertions.Assertions.isTrue(Assertions.java:70)	at com.mongodb.connection.DefaultServer.getConnection(DefaultServer.java:70)	at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:86)	at com.mongodb.operation.QueryBatchCursor.killCursor(QueryBatchCursor.java:263)	at com.mongodb.operation.QueryBatchCursor.close(QueryBatchCursor.java:148)	at com.mongodb.MongoBatchCursorAdapter.close(MongoBatchCursorAdapter.java:41)	at com.mongodb.spark.rdd.MongoRDD$$anonfun$compute$1.apply(MongoRDD.scala:258)	at com.mongodb.spark.rdd.MongoRDD$$anonfun$compute$1.apply(MongoRDD.scala:256)	at org.apache.spark.TaskContextImpl$$anon$1.onTaskCompletion(TaskContextImpl.scala:60)	at org.apache.spark.TaskContextImpl$$anonfun$markTaskCompleted$1.apply(TaskContextImpl.scala:79)	at org.apache.spark.TaskContextImpl$$anonfun$markTaskCompleted$1.apply(TaskContextImpl.scala:77)	at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.scala:59)	at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:47)	at org.apache.spark.TaskContextImpl.markTaskCompleted(TaskContextImpl.scala:77)	at org.apache.spark.scheduler.Task.run(Task.scala:91)	at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:214)	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)	at java.lang.Thread.run(Thread.java:745)