https://projects.ecoinformatics.org/ecoinfo/https://projects.ecoinformatics.org/ecoinfo/ecoinfo/favicon.ico?14691340362007-05-09T02:01:18ZEcoinformatics RedmineMetacat - Bug #2838: Search "soil" in metacat causes an exceptionhttps://projects.ecoinformatics.org/ecoinfo/issues/2838?journal_id=98322007-05-09T02:01:18ZJing Taotao@nceas.ucsb.edu
<ul></ul><p>This bug was caused by the new private class ResultDocumentSet. In addRelationship method, we have Iterator docidkey which is got from a Vector docid in class ResultDocumentSet. Then there is a while loop for Iterator docidkey. However, during this while loop, if there is a beta6 doc, the docid Vector will be have remove and put operation. Those operations to Vector will cause original Iterator docidkeys be invalid. So call "docidkey.next()" will cause the exception.</p>
<p>Solution, rather than remove and put action to the Vector, a set() method was added to ResultDocumentSet. This method would NOT cause concurrent modification to the Vector.</p> Metacat - Bug #2838: Search "soil" in metacat causes an exceptionhttps://projects.ecoinformatics.org/ecoinfo/issues/2838?journal_id=98332013-03-27T21:21:28ZRedmine Admin
<ul></ul><p>Original Bugzilla ID was 2838</p>