← Back to team overview

desktop-packages team mailing list archive

[Bug 869722] Re: Can't get a "com.sun.star.frame.Desktop" instance from Libreoffice UNO using Mono

 

** Attachment added: "A small class in CSharp for testing the loader"
   https://bugs.launchpad.net/bugs/869722/+attachment/2521211/+files/TestLibreOfficeBootstrap.cs

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/869722

Title:
  Can't get a "com.sun.star.frame.Desktop" instance from Libreoffice UNO
  using Mono

Status in “libreoffice” package in Ubuntu:
  New

Bug description:
  I have used Mono with LibreOffice in Ubuntu 11.04, and it worked quite well. In Ubuntu 11.10, the bootstrapping works, but I can't get an instance of the "com.sun.star.frame.Desktop" service which is required for creating or loading further services.
  The code in the attached file runs, and tells me that the requested loader is null.

  Trying out the code:
  1. Start Monodevelop
  2. Create a new Command-Line project
  3. Delete Main.cs from the project
  4. Add the attached file called TestLibreOfficeBootstrap.cs to the project
  5. Right-click on "References" in the project tree, select "Edit References"
  6. Choose the ".Net Assembly" tab
  7. Navigate to the path /usr/lib/cli/uno-1.0/
  8. Add all cli_*.dll to the project
  9. Select the new references in the project tree, right-click on them and disable "Local copy"
  10. Run the project (by pressing F5).

  On Ubuntu 11.04, the output is "Loader is not null", on Ubuntu 11.10,
  the output is "Loader is null". So the CIL Bindings for Libreoffice on
  11.10 is completely useless for me right now.

  ProblemType: Bug
  DistroRelease: Ubuntu 11.10
  Package: libreoffice 1:3.4.3-3ubuntu2
  ProcVersionSignature: Ubuntu 3.0.0-12.19-generic-pae 3.0.4
  Uname: Linux 3.0.0-12-generic-pae i686
  ApportVersion: 1.23-0ubuntu2
  Architecture: i386
  Date: Thu Oct  6 15:58:26 2011
  InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Alpha i386 (20100803.1)
  ProcEnviron:
   PATH=(custom, user)
   LANG=de_AT.UTF-8
   SHELL=/bin/bash
  SourcePackage: libreoffice
  UpgradeStatus: Upgraded to oneiric on 2011-09-15 (21 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/869722/+subscriptions


References