Uploaded image for project: 'Apache Gora'
  1. Apache Gora
  2. GORA-225 Various Issues with MemStore
  3. GORA-226

java.util.NoSuchElementException when attempting to obtain TreeMap.firstKey in MemStore#execute

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.3
    • 0.4
    • gora-core
    • None
    • gora-core 0.3, Nutch 2.x HEAD

    Description

      Tests [0] and [1] fail identically with the following stack trace

         
      Testcase: testInject took 1.931 sec
      	Caused an ERROR
      null
      java.util.NoSuchElementException
      	at java.util.TreeMap.key(TreeMap.java:1221)
      	at java.util.TreeMap.firstKey(TreeMap.java:285)
      	at org.apache.gora.memory.store.MemStore.execute(MemStore.java:122)
      	at org.apache.nutch.util.CrawlTestUtil.readContents(CrawlTestUtil.java:112)
      	at org.apache.nutch.crawl.TestInjector.readDb(TestInjector.java:104)
      	at org.apache.nutch.crawl.TestInjector.testInject(TestInjector.java:62)
      

      TreeMap is here [2]

      [0] http://svn.apache.org/viewvc/nutch/branches/2.x/src/test/org/apache/nutch/crawl/TestInjector.java?view=markup
      [1] http://svn.apache.org/viewvc/nutch/branches/2.x/src/test/org/apache/nutch/fetcher/TestFetcher.java?view=markup
      [2] http://docs.oracle.com/javase/6/docs/api/java/util/TreeMap.html

      Attachments

        Activity

          People

            Unassigned Unassigned
            lewismc Lewis John McGibbney
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: