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 DataStax JIRA by Piotr Kołaczkowski, 2 years ago
via DataStax JIRA by Piotr Kołaczkowski, 1 year ago
via GitHub by jramos
, 1 year ago
Cannot call methods on a stopped SparkContext. This stopped SparkContext was created at: org.apache.spark.SparkContext.<init>(SparkContext.scala:147) io.prediction.workflow.SharedSparkContext$class.beforeAll(BaseTest.scala:65
via Stack Overflow by Fbkk
, 1 year ago
Cannot call methods on a stopped SparkContext
via nabble.com by Unknown author, 1 year ago
Cannot call methods on a stopped SparkContext
java.lang.IllegalStateException: Cannot call methods on a stopped SparkContext	at org.apache.spark.SparkContext.org$apache$spark$SparkContext$$assertNotStopped(SparkContext.scala:103)	at org.apache.spark.SparkContext.defaultParallelism(SparkContext.scala:1912)	at org.apache.spark.SparkContext.parallelize$default$2(SparkContext.scala:695)	at com.datastax.spark.connector.cql.CassandraConnectorSpec$$anonfun$9$$anonfun$apply$mcV$sp$1.apply$mcVI$sp(CassandraConnectorSpec.scala:109)	at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:141)	at com.datastax.spark.connector.cql.CassandraConnectorSpec$$anonfun$9.apply$mcV$sp(CassandraConnectorSpec.scala:108)	at com.datastax.spark.connector.cql.CassandraConnectorSpec$$anonfun$9.apply(CassandraConnectorSpec.scala:103)	at com.datastax.spark.connector.cql.CassandraConnectorSpec$$anonfun$9.apply(CassandraConnectorSpec.scala:103)	at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)	at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)	at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)	at org.scalatest.Transformer.apply(Transformer.scala:22)	at org.scalatest.Transformer.apply(Transformer.scala:20)	at org.scalatest.FlatSpecLike$$anon$1.apply(FlatSpecLike.scala:1647)	at org.scalatest.Suite$class.withFixture(Suite.scala:1122)	at org.scalatest.FlatSpec.withFixture(FlatSpec.scala:1683)	at org.scalatest.FlatSpecLike$class.invokeWithFixture$1(FlatSpecLike.scala:1644)	at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656)	at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656)	at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)	at org.scalatest.FlatSpecLike$class.runTest(FlatSpecLike.scala:1656)	at org.scalatest.FlatSpec.runTest(FlatSpec.scala:1683)	at org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714)	at org.scalatest.FlatSpecLike$$anonfun$runTests$1.apply(FlatSpecLike.scala:1714)	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:413)	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)	at scala.collection.immutable.List.foreach(List.scala:318)	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)	at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:390)	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:427)	at org.scalatest.SuperEngine$$anonfun$traverseSubNodes$1$1.apply(Engine.scala:401)	at scala.collection.immutable.List.foreach(List.scala:318)	at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)	at org.scalatest.SuperEngine.org$scalatest$SuperEngine$$runTestsInBranch(Engine.scala:396)	at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:483)	at org.scalatest.FlatSpecLike$class.runTests(FlatSpecLike.scala:1714)	at org.scalatest.FlatSpec.runTests(FlatSpec.scala:1683)	at org.scalatest.Suite$class.run(Suite.scala:1424)	at org.scalatest.FlatSpec.org$scalatest$FlatSpecLike$$super$run(FlatSpec.scala:1683)	at org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760)	at org.scalatest.FlatSpecLike$$anonfun$run$1.apply(FlatSpecLike.scala:1760)	at org.scalatest.SuperEngine.runImpl(Engine.scala:545)	at org.scalatest.FlatSpecLike$class.run(FlatSpecLike.scala:1760)	at com.datastax.spark.connector.cql.CassandraConnectorSpec.org$scalatest$BeforeAndAfterAll$$super$run(CassandraConnectorSpec.scala:14)	at org.scalatest.BeforeAndAfterAll$class.liftedTree1$1(BeforeAndAfterAll.scala:257)	at org.scalatest.BeforeAndAfterAll$class.run(BeforeAndAfterAll.scala:256)	at com.datastax.spark.connector.cql.CassandraConnectorSpec.run(CassandraConnectorSpec.scala:14)	at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:466)	at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:677)	at sbt.ForkMain$Run$2.call(ForkMain.java:294)	at sbt.ForkMain$Run$2.call(ForkMain.java:284)	at java.util.concurrent.FutureTask.run(FutureTask.java:266)	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)