db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bogdan Vatkov" <bvat...@globaltech-bg.com>
Subject LargeSelect problems
Date Tue, 13 Jan 2004 10:22:30 GMT
Hi All,

I have the following code snipplet..

  public List getList() {
    try {
      return VpbxPeer.populateObjects(businessObjectList);
    } catch (Exception e) {
      logError(e);
      return null;
    }
  }


  private void LoadLargeSelect(Criteria parameter) {
      largeSelect = new LargeSelect(parameter, PAGE_SIZE, PAGES_FETCH_COUNT);
      largeSelect.run();
      try {
        largeSelect.getNextResults();
      } catch (Exception e) {
        logError(e);
      }
  }


Problem1:
After executing LoadLargeSelect() and one of the getNext/PreviuosResults methods i have the
rows doubled in my list..i've checked the debug prints of the LargeSelect ..its rowcount is
doubled itself.
- what i am doing wrong ? what might be the reason for this row duplication.
Problem2:
Too often (i use the code above in a JSP/Servlet environment) i get the 
java.util.ConcurrentModificationException
when executing the getList() method.
What I am missing? 
Is there any tutorial for LargeSelect (a simple example of using this class)?

With best regards,
Bogdan


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message