You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2012/07/20 09:19:40 UTC
[Bug 120327] New: Cannot
https://issues.apache.org/ooo/show_bug.cgi?id=120327
Priority: P3
Bug ID: 120327
Assignee: ooo-issues@incubator.apache.org
Summary: Cannot
Severity: normal
Issue Type: DEFECT
Classification: Code
OS: Linux
Reporter: MaxZinal@yandex.ru
Hardware: PC
Status: UNCONFIRMED
Version: OOo 3.4 Beta
Component: code
Product: udk
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 120327] Cannot instantiate com.sun.star.beans.Introspection
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120327
--- Comment #1 from Maxim Zinal <Ma...@yandex.ru> ---
The following code should be able to instantiate an introspection service.
However, null reference is returned.
BEGIN CODE
XUnoUrlResolver unoUrlResolver =
UnoUrlResolver.create(Bootstrap.createInitialComponentContext(null));
Object serviceManager = unoUrlResolver.
resolve("uno:socket,host=127.0.0.1,port=2002;urp;StarOffice.ServiceManager");
XMultiComponentFactory factory = (XMultiComponentFactory)
UnoRuntime.queryInterface(XMultiComponentFactory.class, serviceManager);
XPropertySet propSet = (XPropertySet)
UnoRuntime.queryInterface(XPropertySet.class, factory);
XComponentContext context = (XComponentContext) UnoRuntime.queryInterface(
XComponentContext.class, propSet.getPropertyValue("DefaultContext"));
XIntrospection introsp = (XIntrospection) UnoRuntime.queryInterface(
XIntrospection.class,
factory.createInstanceWithContext("com.sun.star.beans.Introspection",
context));
END CODE
Here introsp variable is null, because null is returned from the last
createInstanceWithContext() invocation
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 120327] Cannot instantiate com.sun.star.beans.Introspection
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120327
Maxim Zinal <Ma...@yandex.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|OOo 3.4 Beta |AOO340-dev
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 120327] Cannot instantiate com.sun.star.beans.Introspection
Posted by bu...@apache.org.
https://issues.apache.org/ooo/show_bug.cgi?id=120327
Maxim Zinal <Ma...@yandex.ru> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Cannot |Cannot instantiate
| |com.sun.star.beans.Introspe
| |ction
--
You are receiving this mail because:
You are the assignee for the bug.