java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • {noformat} OutputMetricsUpdater [info] - should initialize task metrics properly when they are empty *** FAILED *** (2 milliseconds) [info] java.lang.NullPointerException: [info] at org.apache.spark.SparkEnv.<init>(SparkEnv.scala:78) [info] at com.datastax.spark.connector.metrics.SparkEnvMock.<init>(SparkEnvMock.scala:5) [info] at org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply$mcV$sp(OutputMetricsUpdaterSpec.scala:27) [info] at org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply(OutputMetricsUpdaterSpec.scala:20) [info] at org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply(OutputMetricsUpdaterSpec.scala:20) [info] at org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22) [info] at org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85) [info] at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104) [info] at org.scalatest.Transformer.apply(Transformer.scala:22) [info] at org.scalatest.Transformer.apply(Transformer.scala:20) [info] at org.scalatest.FlatSpecLike$$anon$1.apply(FlatSpecLike.scala:1647) [info] at org.scalatest.Suite$class.withFixture(Suite.scala:1122) [info] at org.scalatest.FlatSpec.withFixture(FlatSpec.scala:1683) [info] at org.scalatest.FlatSpecLike$class.invokeWithFixture$1(FlatSpecLike.scala:1644) [info] at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656) [info] at org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656) [info] at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306) [info] at org.scalatest.FlatSpecLike$class.runTest(FlatSpecLike.scala:1656) [info] at org.apache.spark.metrics.OutputMetricsUpdaterSpec.org$scalatest$BeforeAndAfter$$super$runTest(OutputMetricsUpdaterSpec.scala:12) [info] at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:200) [info] at org.apache.spark.metrics.OutputMetricsUpdaterSpec.runTest(OutputMetricsUpdaterSpec.scala:12) {noformat}
    via by Piotr Kołaczkowski,
    • java.lang.NullPointerException at org.apache.spark.SparkEnv.<init>(SparkEnv.scala:78) at com.datastax.spark.connector.metrics.SparkEnvMock.<init>(SparkEnvMock.scala:5) at org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply$mcV$sp(OutputMetricsUpdaterSpec.scala:27) at org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply(OutputMetricsUpdaterSpec.scala:20) at org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply(OutputMetricsUpdaterSpec.scala:20) 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.apache.spark.metrics.OutputMetricsUpdaterSpec.org$scalatest$BeforeAndAfter$$super$runTest(OutputMetricsUpdaterSpec.scala:12) at org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:200) at org.apache.spark.metrics.OutputMetricsUpdaterSpec.runTest(OutputMetricsUpdaterSpec.scala:12)
    No Bugmate found.