Hi all !

I'm implementing a new kind of thesaurus for my company. I followed the tutorial at http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.xhtml#1_2_3_8_Implementing_a_Thesaurus . It compiles fine (using http://wiki.services.openoffice.org/wiki/JavaEclipseTuto). However, when testing the new class in a BASIC script, it fails and this error message pops up :

Runtime error BASIC.
Message: [jni_uno bridge error] UNO calling Java method queryMeanings: [map_to_uno(): com.sun.star.linguistic2.XMeaning] null-ref given!

The BASIC is like this :

Dim emptyArgs(0) as new com.sun.star.beans.PropertyValue
Dim aLocale As New com.sun.star.lang.Locale
aLocale.Language = "fr"
aLocale.Country = "FR"
Set oAnglicismeThesaurus = createUnoService("test.terminologie.AnglicismeThesaurus") Set vReturn = oAnglicismeThesaurus.queryMeanings("house", aLocale, emptyArgs())

The oAnglicismeThesaurus variable is correctly instanciated: I can see its methods and properties in the OOoBASIC IDE.

Any advice or pointer will be very appreciated !
Thanks !

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to