java.lang.NullPointerException

JIRA | Michael Stack | 10 years ago
  1. 0

    Recovery a fairly large crawl on crawling013, getting following exception: 10/13/2005 01:16:57 +0000 FINE org.archive.crawler.frontier.BdbFrontier put Restoring: 146.145.120.3 10/13/2005 01:16:57 +0000 FINE org.archive.crawler.frontier.BdbFrontier put Restoring: 168.8.216.16 java.lang.NullPointerException at java.util.TreeMap.compare(TreeMap.java:1093) at java.util.TreeMap.put(TreeMap.java:465) at java.util.TreeSet.add(TreeSet.java:210) at java.util.Collections$SynchronizedCollection.add(Collections.java:1581) at org.archive.crawler.frontier.BdbFrontier$4.put(BdbFrontier.java:326) at org.archive.crawler.frontier.BdbFrontier.put(BdbFrontier.java:375) at org.archive.crawler.frontier.BdbFrontier.resurrectOneQueueState(BdbFrontier .java:359) at org.archive.crawler.frontier.BdbFrontier.resurrectQueueState(BdbFrontier.ja va:329) at org.archive.crawler.frontier.BdbFrontier.initQueue(BdbFrontier.java:272) at org.archive.crawler.frontier.WorkQueueFrontier.initialize(WorkQueueFrontier .java:269) at org.archive.crawler.frontier.BdbFrontier.initialize(BdbFrontier.java:467) at org.archive.crawler.framework.CrawlController.setupCrawlModules(CrawlContro ller.java:652) at org.archive.crawler.framework.CrawlController.initialize(CrawlController.ja va:378) at org.archive.crawler.admin.CrawlJob.startCrawling(CrawlJob.java:777) at org.archive.crawler.admin.CrawlJobHandler.startNextJobInternal(CrawlJobHand ler.java:1120) at org.archive.crawler.admin.CrawlJobHandler$2.run(CrawlJobHandler.java:1103) at java.lang.Thread.run(Thread.java:595) Later adding asserts, I see that for the key '146.145.120.3', there is not item in allqueues: Exception in thread "StartNextJob" java.lang.AssertionError: null is null: 146.145.120.3 at org.archive.crawler.frontier.BdbFrontier.put(BdbFrontier.java:374) at org.archive.crawler.frontier.BdbFrontier.resurrectOneQueueState(BdbFrontier .java:354) at org.archive.crawler.frontier.BdbFrontier.resurrectQueueState(BdbFrontier.ja va:329) at org.archive.crawler.frontier.BdbFrontier.initQueue(BdbFrontier.java:272) at org.archive.crawler.frontier.WorkQueueFrontier.initialize(WorkQueueFrontier .java:269) at org.archive.crawler.frontier.BdbFrontier.initialize(BdbFrontier.java:467) at org.archive.crawler.framework.CrawlController.setupCrawlModules(CrawlContro ller.java:652) at org.archive.crawler.framework.CrawlController.initialize(CrawlController.ja va:378) at org.archive.crawler.admin.CrawlJob.startCrawling(CrawlJob.java:777) at org.archive.crawler.admin.CrawlJobHandler.startNextJobInternal(CrawlJobHand ler.java:1120) at org.archive.crawler.admin.CrawlJobHandler$2.run(CrawlJobHandler.java:1103) at java.lang.Thread.run(Thread.java:595)

    JIRA | 10 years ago | Michael Stack
    java.lang.NullPointerException
  2. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 java.util.TreeMap.compare()
    2. Java RT
      Collections$SynchronizedCollection.add
      1. java.util.TreeMap.compare(TreeMap.java:1093)
      2. java.util.TreeMap.put(TreeMap.java:465)
      3. java.util.TreeSet.add(TreeSet.java:210)
      4. java.util.Collections$SynchronizedCollection.add(Collections.java:1581)
      4 frames
    3. org.archive.crawler
      CrawlJobHandler$2.run
      1. org.archive.crawler.frontier.BdbFrontier$4.put(BdbFrontier.java:326)
      2. org.archive.crawler.frontier.BdbFrontier.put(BdbFrontier.java:375)
      3. org.archive.crawler.frontier.BdbFrontier.resurrectOneQueueState(BdbFrontier.java:359)
      4. org.archive.crawler.frontier.BdbFrontier.resurrectQueueState(BdbFrontier.java:329)
      5. org.archive.crawler.frontier.BdbFrontier.initQueue(BdbFrontier.java:272)
      6. org.archive.crawler.frontier.WorkQueueFrontier.initialize(WorkQueueFrontier.java:269)
      7. org.archive.crawler.frontier.BdbFrontier.initialize(BdbFrontier.java:467)
      8. org.archive.crawler.framework.CrawlController.setupCrawlModules(CrawlController.java:652)
      9. org.archive.crawler.framework.CrawlController.initialize(CrawlController.java:378)
      10. org.archive.crawler.admin.CrawlJob.startCrawling(CrawlJob.java:777)
      11. org.archive.crawler.admin.CrawlJobHandler.startNextJobInternal(CrawlJobHandler.java:1120)
      12. org.archive.crawler.admin.CrawlJobHandler$2.run(CrawlJobHandler.java:1103)
      12 frames
    4. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame