Many thanks you for your fast reply.
I've figured out that my Libreoffice library was outdated: the problem disappeared with last version.
I've just a last little question: is there a way to pass libreoffice installation path dinamically, instead of reading it from the config file?