Bug #1010

TBX: 0.7.6, Concordance fail with "fromKey > toKey" error message

Added by Matthieu Decorde about 5 years ago. Updated over 4 years ago.

Status:Feedback Start date:09/12/2014
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:Commands Spent time: -
Target version:TXM 0.7.7

Description

The error may occur when computing a concordance, it depends on the corpus/sub-corpus used.
Complete Error message :

** Une erreur est survenue lors du chargement des lignes de la
concordance
: {0}java.lang.IllegalArgumentException: fromKey > toKey

Diagnostic 1

  • Can we reproduce the bug ?
  • Test: call concordance with the same corpus
  • Conclusion: we have reproduced the bug when computing a concordance on a sub-corpus.

Solution

The bug was introduced in TXM 0.7.6, with a bad limit test in the AbstractCqiClient class. It was not checking correctly if the pivot position was greater than the last corpus position.

Validation test

  • create a subcorpus
  • call concordance and test with a query

MD : OK Windows 8 : DG7 subcorpus of Discours and Query []

History

#1 Updated by Matthieu Decorde about 5 years ago

  • Description updated (diff)
  • Category set to Commands

#2 Updated by Matthieu Decorde about 5 years ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde about 5 years ago

  • Description updated (diff)

#4 Updated by Matthieu Decorde about 5 years ago

  • % Done changed from 0 to 80

#5 Updated by Serge Heiden about 5 years ago

  • Subject changed from TBX: 0.7.6, Concordance fail with error "fromKey > toKey" to TBX: 0.7.6, Concordance fail with "fromKey > toKey" error
  • Description updated (diff)

#6 Updated by Matthieu Decorde about 5 years ago

  • Subject changed from TBX: 0.7.6, Concordance fail with "fromKey > toKey" error to TBX: 0.7.6, Concordance fail with "fromKey > toKey" error message
  • Description updated (diff)

#7 Updated by Sebastien Jacquot about 5 years ago

Successfully tested on Win 7 64bits/Java 1.7.

#8 Updated by Sebastien Jacquot almost 5 years ago

  • Target version changed from TXM 0.7.6 to TXM 0.7.7

#9 Updated by Matthieu Decorde almost 5 years ago

  • Status changed from New to Feedback

#10 Updated by Matthieu Decorde almost 5 years ago

  • Description updated (diff)

#11 Updated by Matthieu Decorde over 4 years ago

  • Description updated (diff)
  • % Done changed from 80 to 100

Also available in: Atom PDF