java.lang.AssertionError

JIRA | Marko | 7 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

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

    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