Bug #2176

TBX: 0.7.8, CQP unavailable with TXM 0.7.8 Linux64 installer

Added by Serge Heiden over 2 years ago. Updated 7 months ago.

Status:New Start date:04/29/2017
Priority:Urgent Due date:
Assignee:- % Done:

80%

Category:Setup Spent time: -
Target version:TXM 0.8.0

Description

Under Ubuntu 16.04, after TXM 0.7.8 Linux64 setup, the files in plugins/CQP.linux_1.1.0.201704201625/res/linux64 are never unzipped -> CQP is unavailable and TXM is not working:

Démarrage de TXM 0.7.8 (2017-04-20)...
Chargement des sous-corpus et des partitions...Terminé.
Failed to load CQP lib with exception: java.lang.UnsatisfiedLinkError: no cqpjni in java.library.path
Looking for Cqi libs in : /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib:/usr/lib/TXM/TXM/plugins/CQP.linux_1.1.0.201704201625/res/linux64
Current directory: /home/sheiden/.
java.lang.Exception: java.lang.UnsatisfiedLinkError: no cqpjni in java.library.path
    at org.txm.searchengine.cqp.MemCqiServer.<init>(MemCqiServer.java:172)
    at org.txm.Toolbox.startSearchEngine(Toolbox.java:799)
    at org.txm.Toolbox.initialize(Toolbox.java:570)
    at org.txm.rcpapplication.ApplicationWorkbenchAdvisor$12$1.run(ApplicationWorkbenchAdvisor.java:1404)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: java.lang.UnsatisfiedLinkError: no cqpjni in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1886)
    at java.lang.Runtime.loadLibrary0(Runtime.java:849)
    at java.lang.System.loadLibrary(System.java:1088)
    at org.txm.searchengine.cqp.MemCqiServer.<init>(MemCqiServer.java:164)
    ... 4 more
** Échec de la connexion au moteur de recherche : 
- mauvais login/mot de passe/nom de machine/port :anonymous localhost 4877
java.lang.RuntimeException: ** Le client CQi n'est pas initilialisé
    at org.txm.searchengine.cqp.corpus.CorpusManager.getCorpusManager(CorpusManager.java:92)
    at org.txm.Toolbox.startSearchEngine(Toolbox.java:872)
    at org.txm.Toolbox.initialize(Toolbox.java:570)
    at org.txm.rcpapplication.ApplicationWorkbenchAdvisor$12$1.run(ApplicationWorkbenchAdvisor.java:1404)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
** Echec du test d'attente de CQP : java.lang.RuntimeException: ** Le client CQi n'est pas initilialisé
** Le client CQi n'est pas initilialisé
java.lang.RuntimeException: ** Le client CQi n'est pas initilialisé
    at org.txm.searchengine.cqp.corpus.CorpusManager.getCorpusManager(CorpusManager.java:92)
    at org.txm.objects.Base.loadCQPCorpora(Base.java:174)
    at org.txm.Toolbox.startSearchEngine(Toolbox.java:890)
    at org.txm.Toolbox.initialize(Toolbox.java:570)
    at org.txm.rcpapplication.ApplicationWorkbenchAdvisor$12$1.run(ApplicationWorkbenchAdvisor.java:1404)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Fail to load CQP corpora of corpus GRAAL
** Le client CQi n'est pas initilialisé
java.lang.RuntimeException: ** Le client CQi n'est pas initilialisé
    at org.txm.searchengine.cqp.corpus.CorpusManager.getCorpusManager(CorpusManager.java:92)
    at org.txm.objects.Base.loadCQPCorpora(Base.java:174)
    at org.txm.Toolbox.startSearchEngine(Toolbox.java:890)
    at org.txm.Toolbox.initialize(Toolbox.java:570)
    at org.txm.rcpapplication.ApplicationWorkbenchAdvisor$12$1.run(ApplicationWorkbenchAdvisor.java:1404)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Fail to load CQP corpora of corpus RUSSIANCORPUS
** Le client CQi n'est pas initilialisé
java.lang.RuntimeException: ** Le client CQi n'est pas initilialisé
    at org.txm.searchengine.cqp.corpus.CorpusManager.getCorpusManager(CorpusManager.java:92)
    at org.txm.objects.Base.loadCQPCorpora(Base.java:174)
    at org.txm.Toolbox.startSearchEngine(Toolbox.java:890)
    at org.txm.Toolbox.initialize(Toolbox.java:570)
    at org.txm.rcpapplication.ApplicationWorkbenchAdvisor$12$1.run(ApplicationWorkbenchAdvisor.java:1404)
    at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Fail to load CQP corpora of corpus PALAFRALAT

etc.

Workaround

Unzip manually the files.

Error messages tuning

a)

** Échec de la connexion au moteur de recherche : 
- mauvais login/mot de passe/nom de machine/port :anonymous localhost 4877

should not be displayed in the context of CQPLIB?

b)

** Echec du test d'attente de CQP

-> `Échec du test d'attente de CQP`

c)

** Echec du test d'attente de CQP : java.lang.RuntimeException: ** Le client CQi n'est pas initilialisé

Something is missing between `d'attente de CQP : java.lang.RuntimeException`, at least a newline.

d)

Fail to load CQP corpora of corpus GRAAL

-> `Failed to load CQP indexes of GRAAL corpus`

Solution

The file rights are set with the features build.properties files

root.linux.gtk.x86_64.permissions.755=jre/bin/java,plugins/org.txm.libs.cqp.linux/res/linux32/,plugins/org.txm.libs.cqp.linux/res/linux64/
root.macosx.cocoa.x86_64.permissions.755=jre/bin/java,plugins/org.txm.libs.cqp.macosx/res/macosx/

History

#1 Updated by Serge Heiden over 2 years ago

  • Description updated (diff)

#2 Updated by Matthieu Decorde about 2 years ago

  • % Done changed from 0 to 10

for the message tuning section

#3 Updated by Matthieu Decorde about 2 years ago

  • Target version changed from TXM 0.7.8 to TXM 0.8.0a (split/restructuration)

not reproduce since last alpha tests, I move it to 0.7.9

#4 Updated by Matthieu Decorde over 1 year ago

  • % Done changed from 10 to 50

the files are no more ziped, we now use the build.properties file to set the execution rights

#5 Updated by Matthieu Decorde 9 months ago

  • Description updated (diff)

#6 Updated by Matthieu Decorde 9 months ago

  • % Done changed from 50 to 80

#7 Updated by Sebastien Jacquot 7 months ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

Also available in: Atom PDF