To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=100071 Issue #|100071 Summary|Using .NET assemblies, remote contexts return objects |that can't be used Component|api Version|OOo 3.0.1 Platform|Opteron/x86_64 URL| OS/Version|Windows XP Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P2 Subcomponent|code Assigned to|jsc Reported by|loumf
------- Additional comments from lo...@openoffice.org Mon Mar 9 20:38:52 +0000 2009 ------- 1. Start soffice.exe to sit on a port soffice.exe -invisible -nofirststartwizard -minimized -nologo -nolockcheck -nodefault -headless - accept="socket,host=localhost,port=8100;urp" 2. Create a project (console application) with this code XComponentContext xLocalContext = uno.util.Bootstrap.defaultBootstrap_InitialComponentContext(); XMultiComponentFactory xLocalServiceManager = xLocalContext.getServiceManager(); XUnoUrlResolver xUrlResolver = (XUnoUrlResolver)xLocalServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", xLocalContext); XMultiServiceFactory multiServiceFactory = (XMultiServiceFactory)xUrlResolver.resolve("uno:socket,host=localhost,port=8100;urp;StarOffice.ServiceManager"); XComponentLoader componentLoader = (XComponentLoader)multiServiceFactory.createInstance("com.sun.star.frame.Desktop"); 3. The last line will throw with Unable to cast transparent proxy to type 'unoidl.com.sun.star.frame.XComponentLoader' 4. If you use a local context created with Bootstrap.bootstrap(), it will work fine, but then you cannot connect to Open Office on another machine Reported in the forum here http://www.oooforum.org/forum/viewtopic.phtml?t=77457 I have seen it as well. I spent two days trying to figure it out, but I think it's just a bug in OO. --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@api.openoffice.org For additional commands, e-mail: issues-h...@api.openoffice.org --------------------------------------------------------------------- To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org For additional commands, e-mail: allbugs-h...@openoffice.org