Hi, waiting for Christmas, i was playing with Basex. I had no problem for using a short Thesaurus i built a few days ago. But when i tried to use the extended one (26Mo), i get this error message. Is this a problem of mine ? Here is an extract of my thesaurus: <thesaurus xmlns="http://www.crealscience.fr"> <entry> <term>excusable</term> <synonym> <term>amnistiable</term> </synonym> <synonym> <term>pardonnable</term> </synonym> </entry> </thesaurus>
Error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_45 OS: Windows 7, x86 Stack Trace: java.lang.NullPointerException at org.basex.query.ft.Thesaurus.text(Thesaurus.java:178) at org.basex.query.ft.Thesaurus.build(Thesaurus.java:135) at org.basex.query.ft.Thesaurus.init(Thesaurus.java:115) at org.basex.query.ft.Thesaurus.find(Thesaurus.java:190) at org.basex.query.ft.ThesQuery.find(ThesQuery.java:48) at org.basex.query.ft.FTTokenizer.cache(FTTokenizer.java:112) at org.basex.query.ft.FTWords.contains(FTWords.java:259) at org.basex.query.ft.FTWords.item(FTWords.java:113) at org.basex.query.ft.FTContainsExpr.item(FTContainsExpr.java:45) at org.basex.query.ft.FTContainsExpr.item(FTContainsExpr.java:24) at org.basex.query.expr.ParseExpr.iter(ParseExpr.java:46) at org.basex.query.MainModule.iter(MainModule.java:93) at org.basex.query.QueryContext.iter(QueryContext.java:282) at org.basex.query.QueryContext.execute(QueryContext.java:541) at org.basex.query.QueryProcessor.execute(QueryProcessor.java:98) at org.basex.core.cmd.AQuery.query(AQuery.java:76) at org.basex.core.cmd.XQuery.run(XQuery.java:22) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.gui.GUI.exec(GUI.java:397) at org.basex.gui.GUI$7.run(GUI.java:347) Query: 'abaca' contains text 'chanvre' using thesaurus at '../thesauruslight.xml' Query plan: <QueryPlan> <FTContainsExpr> <Str value="abaca" type="xs:string"/> <FTWords> <Str value="chanvre" type="xs:string"/> </FTWords> </FTContainsExpr> </QueryPlan>
Well, Ty for your help and ...Merry Christmas ! Xavier Salvador
Hi Xavier,
sounds like a bug. Feel free to provide me with the full version of the Thesaurus (I'll have a look at it in Jan 2014).
All the best, Christian ____________________
On Tue, Dec 24, 2013 at 8:52 PM, Xavier-Laurent SALVADOR xavier-laurent.salvador@univ-paris13.fr wrote:
Hi, waiting for Christmas, i was playing with Basex. I had no problem for using a short Thesaurus i built a few days ago. But when i tried to use the extended one (26Mo), i get this error message. Is this a problem of mine ? Here is an extract of my thesaurus:
<thesaurus xmlns="http://www.crealscience.fr"> <entry> <term>excusable</term> <synonym> <term>amnistiable</term> </synonym> <synonym> <term>pardonnable</term> </synonym> </entry> </thesaurus>
Error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_45 OS: Windows 7, x86 Stack Trace: java.lang.NullPointerException at org.basex.query.ft.Thesaurus.text(Thesaurus.java:178) at org.basex.query.ft.Thesaurus.build(Thesaurus.java:135) at org.basex.query.ft.Thesaurus.init(Thesaurus.java:115) at org.basex.query.ft.Thesaurus.find(Thesaurus.java:190) at org.basex.query.ft.ThesQuery.find(ThesQuery.java:48) at org.basex.query.ft.FTTokenizer.cache(FTTokenizer.java:112) at org.basex.query.ft.FTWords.contains(FTWords.java:259) at org.basex.query.ft.FTWords.item(FTWords.java:113) at org.basex.query.ft.FTContainsExpr.item(FTContainsExpr.java:45) at org.basex.query.ft.FTContainsExpr.item(FTContainsExpr.java:24) at org.basex.query.expr.ParseExpr.iter(ParseExpr.java:46) at org.basex.query.MainModule.iter(MainModule.java:93) at org.basex.query.QueryContext.iter(QueryContext.java:282) at org.basex.query.QueryContext.execute(QueryContext.java:541) at org.basex.query.QueryProcessor.execute(QueryProcessor.java:98) at org.basex.core.cmd.AQuery.query(AQuery.java:76) at org.basex.core.cmd.XQuery.run(XQuery.java:22) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.gui.GUI.exec(GUI.java:397) at org.basex.gui.GUI$7.run(GUI.java:347) Query: 'abaca' contains text 'chanvre' using thesaurus at '../thesauruslight.xml' Query plan:
<QueryPlan> <FTContainsExpr> <Str value="abaca" type="xs:string"/> <FTWords> <Str value="chanvre" type="xs:string"/> </FTWords> </FTContainsExpr> </QueryPlan>
Well, Ty for your help and ...Merry Christmas ! Xavier Salvador
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Christian, i would like to add that my thesaurus is now usefull. Restricting the usage with a "at most 2/3/4 levels" and specifying a relationship made it usefull and convenient. Basex is really a beautiful job. Thanks again, xls
2013/12/25 Christian Grün christian.gruen@gmail.com
Hi Xavier,
sounds like a bug. Feel free to provide me with the full version of the Thesaurus (I'll have a look at it in Jan 2014).
All the best, Christian ____________________
On Tue, Dec 24, 2013 at 8:52 PM, Xavier-Laurent SALVADOR xavier-laurent.salvador@univ-paris13.fr wrote:
Hi, waiting for Christmas, i was playing with Basex. I had no problem for using a short Thesaurus i built a few days ago. But when i tried to use the extended one (26Mo), i get this error
message.
Is this a problem of mine ? Here is an extract of my thesaurus:
<thesaurus xmlns="http://www.crealscience.fr"> <entry> <term>excusable</term> <synonym> <term>amnistiable</term> </synonym> <synonym> <term>pardonnable</term> </synonym> </entry> </thesaurus>
Error: Improper use? Potential bug? Your feedback is welcome: Contact: basex-talk@mailman.uni-konstanz.de Version: BaseX 7.7.2 Java: Oracle Corporation, 1.7.0_45 OS: Windows 7, x86 Stack Trace: java.lang.NullPointerException at org.basex.query.ft.Thesaurus.text(Thesaurus.java:178) at org.basex.query.ft.Thesaurus.build(Thesaurus.java:135) at org.basex.query.ft.Thesaurus.init(Thesaurus.java:115) at org.basex.query.ft.Thesaurus.find(Thesaurus.java:190) at org.basex.query.ft.ThesQuery.find(ThesQuery.java:48) at org.basex.query.ft.FTTokenizer.cache(FTTokenizer.java:112) at org.basex.query.ft.FTWords.contains(FTWords.java:259) at org.basex.query.ft.FTWords.item(FTWords.java:113) at org.basex.query.ft.FTContainsExpr.item(FTContainsExpr.java:45) at org.basex.query.ft.FTContainsExpr.item(FTContainsExpr.java:24) at org.basex.query.expr.ParseExpr.iter(ParseExpr.java:46) at org.basex.query.MainModule.iter(MainModule.java:93) at org.basex.query.QueryContext.iter(QueryContext.java:282) at org.basex.query.QueryContext.execute(QueryContext.java:541) at org.basex.query.QueryProcessor.execute(QueryProcessor.java:98) at org.basex.core.cmd.AQuery.query(AQuery.java:76) at org.basex.core.cmd.XQuery.run(XQuery.java:22) at org.basex.core.Command.run(Command.java:345) at org.basex.core.Command.exec(Command.java:321) at org.basex.core.Command.execute(Command.java:78) at org.basex.gui.GUI.exec(GUI.java:397) at org.basex.gui.GUI$7.run(GUI.java:347) Query: 'abaca' contains text 'chanvre' using thesaurus at
'../thesauruslight.xml'
Query plan:
<QueryPlan> <FTContainsExpr> <Str value="abaca" type="xs:string"/> <FTWords> <Str value="chanvre" type="xs:string"/> </FTWords> </FTContainsExpr> </QueryPlan>
Well, Ty for your help and ...Merry Christmas ! Xavier Salvador
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
On Tue, 2013-12-24 at 21:52 +0200, Xavier-Laurent SALVADOR wrote:
Hi, waiting for Christmas, i was playing with Basex. I had no problem for using a short Thesaurus i built a few days ago. But when i tried to use the extended one (26Mo), i get this error message.
I see Christian has already replied, but note too that you might need to give BaseX (or the JVM, rather) more memory.
Liam
Thank you for your answers. You're probably right, i will try on tomorrow. I downloaded 7.7..2, and i fragmented the thesaurus in 6 smaller files i exported from basex. When "using thesaurus at" a small thesaurus (<5 Mo), basex 's cool. When using a larger one (25 Mo), basex fails and a new message appears: [BASX0005] Stack Overflow: Try tail recursion?" I can't see how being "tail recursive" on a thesaurus. Query was 'xxxx' contains text 'vvvv' using thesaurus at 'bbb'. Sorry for the problem, and thank you for being so reactive (could i say "responsive" :-)) x
2013/12/25 Liam R E Quin liam@w3.org
On Tue, 2013-12-24 at 21:52 +0200, Xavier-Laurent SALVADOR wrote:
Hi, waiting for Christmas, i was playing with Basex. I had no problem for using a short Thesaurus i built a few days ago. But when i tried to use the extended one (26Mo), i get this error
message.
I see Christian has already replied, but note too that you might need to give BaseX (or the JVM, rather) more memory.
Liam
-- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org freenode/#xml
basex-talk@mailman.uni-konstanz.de