java.lang.NullPointerException

DataStax JIRA | Joe Olson | 1 week 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

    Spark cassandra connector connection error , no more host to try

    Stack Overflow | 2 years ago | Shashank Shukla
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /192.168.1.26:9042 (com.datastax.driver.core.ConnectionException: [/192.168.1.26:9042] Operation timed out))
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    RE: Connecting Cassandra by unknow host

    apache.org | 1 year ago
    java.io.IOException: Failed to open native connection to Cassandra at *{30.247.7.8}:9042* at com.datastax.spark.connector.cql.CassandraConnector$.com$datastax$spark$connector$cql$CassandraConnector$$createSession(CassandraConnector.scala:174) at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$2.apply(CassandraConnector.scala:160) at com.datastax.spark.connector.cql.CassandraConnector$$anonfun$2.apply(CassandraConnector.scala:160) at com.datastax.spark.connector.cql.RefCountedCache.createNewValueAndKeys(RefCountedCache.scala:36) at com.datastax.spark.connector.cql.RefCountedCache.acquire(RefCountedCache.scala:61) at com.datastax.spark.connector.cql.CassandraConnector.openSession(CassandraConnector.scala:71) at com.datastax.spark.connector.cql.CassandraConnector.withSessionDo(CassandraConnector.scala:97) at com.datastax.spark.connector.cql.CassandraConnector.withClusterDo(CassandraConnector.scala:108)
  4. 0

    start from a new Cassandra

    GitHub | 12 months ago | carreymu
    java.io.IOException: Failed to open native connection to Cassandra at {192.168.211.128}:9042

    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.NullPointerException

      No message provided

      at com.datastax.driver.core.Cluster$Manager.close()
    2. DataStax Java Driver for Apache Cassandra - Core
      Cluster.close
      1. com.datastax.driver.core.Cluster$Manager.close(Cluster.java:1585)
      2. com.datastax.driver.core.Cluster$Manager.access$200(Cluster.java:1293)
      3. com.datastax.driver.core.Cluster.closeAsync(Cluster.java:564)
      4. com.datastax.driver.core.Cluster.close(Cluster.java:576)
      4 frames
    3. spark-cassandra-connector
      CassandraTableScanRDD.compute
      1. com.datastax.spark.connector.cql.CassandraConnector$.com$datastax$spark$connector$cql$CassandraConnector$$createSession(CassandraConnector.scala:162)
      2. com.datastax.spark.connector.cql.CassandraConnector$$anonfun$3.apply(CassandraConnector.scala:149)
      3. com.datastax.spark.connector.cql.CassandraConnector$$anonfun$3.apply(CassandraConnector.scala:149)
      4. com.datastax.spark.connector.cql.RefCountedCache.createNewValueAndKeys(RefCountedCache.scala:31)
      5. com.datastax.spark.connector.cql.RefCountedCache.acquire(RefCountedCache.scala:56)
      6. com.datastax.spark.connector.cql.CassandraConnector.openSession(CassandraConnector.scala:82)
      7. com.datastax.spark.connector.rdd.CassandraTableScanRDD.compute(CassandraTableScanRDD.scala:326)
      7 frames
    4. Spark
      Executor$TaskRunner.run
      1. org.apache.spark.rdd.RDD.computeOrReadCheckpoint(RDD.scala:323)
      2. org.apache.spark.rdd.RDD$$anonfun$8.apply(RDD.scala:336)
      3. org.apache.spark.rdd.RDD$$anonfun$8.apply(RDD.scala:334)
      4. org.apache.spark.storage.BlockManager$$anonfun$doPutIterator$1.apply(BlockManager.scala:973)
      5. org.apache.spark.storage.BlockManager$$anonfun$doPutIterator$1.apply(BlockManager.scala:948)
      6. org.apache.spark.storage.BlockManager.doPut(BlockManager.scala:888)
      7. org.apache.spark.storage.BlockManager.doPutIterator(BlockManager.scala:948)
      8. org.apache.spark.storage.BlockManager.getOrElseUpdate(BlockManager.scala:694)
      9. org.apache.spark.rdd.RDD.getOrCompute(RDD.scala:334)
      10. org.apache.spark.rdd.RDD.iterator(RDD.scala:285)
      11. org.apache.spark.scheduler.ResultTask.runTask(ResultTask.scala:87)
      12. org.apache.spark.scheduler.Task.run(Task.scala:99)
      13. org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:282)
      13 frames
    5. 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