java.lang.AssertionError

JIRA | Marko | 6 years ago
  1. 0

    The following code fails. But if i uncomment the call to request.setCount(), then it succeeds. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> QueryParser qp = new QueryParser(Version.LUCENE_CURRENT,"alt",idxSystem.getAnalyzer()); Query query = qp.parse("even"); BrowseRequest request=new BrowseRequest(); //request.setCount(10); request.setOffset(0); request.setQuery(query); List<ZoieIndexReader<BoboIndexReader>> readerList = idxSystem.getIndexReaders(); MultiBoboBrowser browser = new MultiBoboBrowser(BoboBrowser.createBrowsables(ZoieIndexReader.extractDecoratedReaders(readerList))); BrowseResult result = browser.browse(request); int totalHits = result.getNumHits(); // reports correct value. BrowseHit[] bHits = result.getHits(); // but returns no hits. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> If i turn on runtime assertion checks, then i get this exception... Exception in thread "main" java.lang.AssertionError at com.browseengine.bobo.sort.SortCollectorImpl.<init>(SortCollectorImpl.java:66) at com.browseengine.bobo.sort.SortCollector.buildSortCollector(SortCollector.java:155) at com.browseengine.bobo.api.BoboSubBrowser.getSortCollector(BoboSubBrowser.java:352) at com.browseengine.bobo.sort.MultiSortCollector.<init>(MultiSortCollector.java:44) at com.browseengine.bobo.api.MultiBoboBrowser.getSortCollector(MultiBoboBrowser.java:279) at com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:137) at test.ZoieTest.testBoboZoie2(ZoieTest.java:1542) at test.ZoieTest.main(ZoieTest.java:88)

    JIRA | 6 years ago | Marko
    java.lang.AssertionError
  2. 0

    The following code fails. But if i uncomment the call to request.setCount(), then it succeeds. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> QueryParser qp = new QueryParser(Version.LUCENE_CURRENT,"alt",idxSystem.getAnalyzer()); Query query = qp.parse("even"); BrowseRequest request=new BrowseRequest(); //request.setCount(10); request.setOffset(0); request.setQuery(query); List<ZoieIndexReader<BoboIndexReader>> readerList = idxSystem.getIndexReaders(); MultiBoboBrowser browser = new MultiBoboBrowser(BoboBrowser.createBrowsables(ZoieIndexReader.extractDecoratedReaders(readerList))); BrowseResult result = browser.browse(request); int totalHits = result.getNumHits(); // reports correct value. BrowseHit[] bHits = result.getHits(); // but returns no hits. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> If i turn on runtime assertion checks, then i get this exception... Exception in thread "main" java.lang.AssertionError at com.browseengine.bobo.sort.SortCollectorImpl.<init>(SortCollectorImpl.java:66) at com.browseengine.bobo.sort.SortCollector.buildSortCollector(SortCollector.java:155) at com.browseengine.bobo.api.BoboSubBrowser.getSortCollector(BoboSubBrowser.java:352) at com.browseengine.bobo.sort.MultiSortCollector.<init>(MultiSortCollector.java:44) at com.browseengine.bobo.api.MultiBoboBrowser.getSortCollector(MultiBoboBrowser.java:279) at com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:137) at test.ZoieTest.testBoboZoie2(ZoieTest.java:1542) at test.ZoieTest.main(ZoieTest.java:88)

    JIRA | 6 years ago | Marko
    java.lang.AssertionError
  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.AssertionError

      No message provided

      at com.browseengine.bobo.sort.SortCollectorImpl.<init>()
    2. com.browseengine.bobo
      MultiBoboBrowser.browse
      1. com.browseengine.bobo.sort.SortCollectorImpl.<init>(SortCollectorImpl.java:66)
      2. com.browseengine.bobo.sort.SortCollector.buildSortCollector(SortCollector.java:155)
      3. com.browseengine.bobo.api.BoboSubBrowser.getSortCollector(BoboSubBrowser.java:352)
      4. com.browseengine.bobo.sort.MultiSortCollector.<init>(MultiSortCollector.java:44)
      5. com.browseengine.bobo.api.MultiBoboBrowser.getSortCollector(MultiBoboBrowser.java:279)
      6. com.browseengine.bobo.api.MultiBoboBrowser.browse(MultiBoboBrowser.java:137)
      6 frames
    3. test
      ZoieTest.main
      1. test.ZoieTest.testBoboZoie2(ZoieTest.java:1542)
      2. test.ZoieTest.main(ZoieTest.java:88)
      2 frames