To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=74448 Issue #|74448 Summary|OfficeBean LocalOfficeConnection UNO url bug Component|api Version|OOo 2.0.4 Platform|All URL| OS/Version|All Status|UNCONFIRMED Status whiteboard| Keywords| Resolution| Issue type|DEFECT Priority|P3 Subcomponent|code Assigned to|jl Reported by|tezza2k1
------- Additional comments from [EMAIL PROTECTED] Mon Feb 12 12:28:47 +0000 2007 ------- com.sun.star.comp.beans.LocalOfficeConnection has a bug[1]. In the setUnoUrl() function the mPipe variable is not initialized properly. It is set to null regardless of the value passed in. This null value causes problems later. In the OfficeService.getIdentifier() function, a null mPipe means that getPipeName() is called again to provide a value. So if you would like to set a custom UNO connection you cannot, as getPipeName always returns a JVM wide constant. The bug is that the requested key is "pipe", when in fact the key should be "name". My suggested fix (r1.10) is to change the line in setUnoUrl(): mPipe = (String) aURL.getConnectionParameters().get( "pipe" ); to mPipe = (String) aURL.getConnectionParameters().get( "name" ); ============================ To reproduce this bug, do something like this [java]: String pipeName = ""+System.currentTimeMillis(); String unoUrlString="uno:pipe,name=" + pipeName + ";urp;StarOffice.ServiceManager" ; LOG.debug("Attempting UNO connection with: "+unoUrlString); aBean = new OOoBean(); try { aBean.startOOoConnection(unoUrlString); } catch (Throwable e) { String errorText="I could not create an OOoBean with UNO connection: "+unoUrlString; LOG.fatal(errorText,e); throw new TechnicalMalfunctionException(errorText,e); } Then look at the URP generated... via a ps auxw. It will not match the unoUrlString --------------------------------------------------------------------- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]