java.lang.NullPointerException

DataStax JIRA | Piotr Kołaczkowski | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    {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}

    DataStax JIRA | 2 years ago | Piotr Kołaczkowski
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.apache.spark.SparkEnv.<init>()
    2. Spark
      SparkEnv.<init>
      1. org.apache.spark.SparkEnv.<init>(SparkEnv.scala:78)
      1 frame
    3. com.datastax.spark
      SparkEnvMock.<init>
      1. com.datastax.spark.connector.metrics.SparkEnvMock.<init>(SparkEnvMock.scala:5)
      1 frame
    4. Spark
      OutputMetricsUpdaterSpec$$anonfun$2.apply
      1. org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply$mcV$sp(OutputMetricsUpdaterSpec.scala:27)
      2. org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply(OutputMetricsUpdaterSpec.scala:20)
      3. org.apache.spark.metrics.OutputMetricsUpdaterSpec$$anonfun$2.apply(OutputMetricsUpdaterSpec.scala:20)
      3 frames
    5. scalatest
      FlatSpecLike$class.runTest
      1. org.scalatest.Transformer$$anonfun$apply$1.apply$mcV$sp(Transformer.scala:22)
      2. org.scalatest.OutcomeOf$class.outcomeOf(OutcomeOf.scala:85)
      3. org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
      4. org.scalatest.Transformer.apply(Transformer.scala:22)
      5. org.scalatest.Transformer.apply(Transformer.scala:20)
      6. org.scalatest.FlatSpecLike$$anon$1.apply(FlatSpecLike.scala:1647)
      7. org.scalatest.Suite$class.withFixture(Suite.scala:1122)
      8. org.scalatest.FlatSpec.withFixture(FlatSpec.scala:1683)
      9. org.scalatest.FlatSpecLike$class.invokeWithFixture$1(FlatSpecLike.scala:1644)
      10. org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656)
      11. org.scalatest.FlatSpecLike$$anonfun$runTest$1.apply(FlatSpecLike.scala:1656)
      12. org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
      13. org.scalatest.FlatSpecLike$class.runTest(FlatSpecLike.scala:1656)
      13 frames
    6. Spark
      OutputMetricsUpdaterSpec.org$scalatest$BeforeAndAfter$$super$runTest
      1. org.apache.spark.metrics.OutputMetricsUpdaterSpec.org$scalatest$BeforeAndAfter$$super$runTest(OutputMetricsUpdaterSpec.scala:12)
      1 frame
    7. scalatest
      BeforeAndAfter$class.runTest
      1. org.scalatest.BeforeAndAfter$class.runTest(BeforeAndAfter.scala:200)
      1 frame
    8. Spark
      OutputMetricsUpdaterSpec.runTest
      1. org.apache.spark.metrics.OutputMetricsUpdaterSpec.runTest(OutputMetricsUpdaterSpec.scala:12)
      1 frame