Bug #3182

Annotations, error (to identify, seems related with some self-closing tags)

Added by Sebastien Jacquot 2 months ago. Updated about 1 month ago.

Status:New Start date:11/17/2021
Priority:Normal Due date:
Assignee:- % Done:

20%

Category:Annotation Spent time: -
Target version:TXM 0.8.2

Description

CQP Annotations, error (to identify, seems related with some self-closing/milestone tags).

Impossible to annotate the file in attachment. Seems related with the milestone "<anchor/>".
Same behavior with "<anch/>".
But works with "<lb/>".

Error log:

Recherche de TypedValue avec id = test
Affectation de la valeur test à la propriété span pour 1 occurrences.
001 .Octet reçu du serveur CQi : 4.
Octet reçu du serveur CQi : 4.
org.txm.searchengine.cqp.serverException.CqiClErrorCorpusAccess: 
    at org.txm.searchengine.cqp.MemCqiClient.throwExceptionFromCqi(MemCqiClient.java:159)
    at org.txm.searchengine.cqp.MemCqiClient.throwExceptionFromCqi(MemCqiClient.java:67)
    at org.txm.searchengine.cqp.MemCqiClient.attributeSize(MemCqiClient.java:219)
    at org.txm.annotation.kr.core.CQPAnnotationManager.getAnnotations(CQPAnnotationManager.java:133)
    at org.txm.annotation.kr.core.AnnotationManager.createAnnotations(AnnotationManager.java:278)
    at org.txm.annotation.kr.rcp.concordance.SimpleKRAnnotation.affectAnnotationValues(SimpleKRAnnotation.java:612)
    at org.txm.annotation.kr.rcp.concordance.SimpleKRAnnotation$7.run(SimpleKRAnnotation.java:431)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Error during annotation creation: org.txm.searchengine.cqp.serverException.CqiClErrorCorpusAccess: 

** Erreur pendant laffectation de lannotation java.lang.IllegalStateException: 
Exception Description: No transaction is currently active
java.lang.IllegalStateException: 
Exception Description: No transaction is currently active
    at org.eclipse.persistence.internal.jpa.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:123)
    at org.txm.annotation.kr.core.AnnotationManager.createAnnotations(AnnotationManager.java:344)
    at org.txm.annotation.kr.rcp.concordance.SimpleKRAnnotation.affectAnnotationValues(SimpleKRAnnotation.java:612)
    at org.txm.annotation.kr.rcp.concordance.SimpleKRAnnotation$7.run(SimpleKRAnnotation.java:431)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

Steps to reproduce:
- import the attached file
- do a concordance of "Les"
- try to annotate the line with category "test"

test.xml Magnifier (727 Bytes) Sebastien Jacquot, 12/17/2021 03:03 pm

History

#1 Updated by Serge Heiden about 1 month ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde about 1 month ago

  • % Done changed from 0 to 70

MD: seems fixed with last TXM 0.8.2beta update

#3 Updated by Sebastien Jacquot about 1 month ago

  • % Done changed from 70 to 80

After more tests:
1) I made a mistake, the attached file contains a <lb/> instead of <anchor/>.
2) The problem doesn't seem to be present using XTZ import but only using XML/w import

#4 Updated by Sebastien Jacquot about 1 month ago

  • % Done changed from 80 to 70

#5 Updated by Sebastien Jacquot about 1 month ago

  • File deleted (test.xml)

#6 Updated by Sebastien Jacquot about 1 month ago

#7 Updated by Sebastien Jacquot about 1 month ago

New test.xml file that leads to the bug.

#8 Updated by Matthieu Decorde about 1 month ago

  • % Done changed from 70 to 20

MD: I could not reproduced the bug on Ubuntu and TXM 0.8.2 dev

Also available in: Atom PDF