Apache OpenOffice (AOO) Bugzilla – Issue 868
File Open-Problems with sxw
Last modified: 2013-02-24 21:09:49 UTC
When i try to open a File in Star-Writer 6.0 format i get different results from Basic and Java. The Basic function works without problems, the Java-Function results in an "unrecoverable Error" The opening of a StarWriter 5.0 format works correct. -------------Basic-Code---------------------------------- REM ***** BASIC ***** Sub Main dim mNoArgs () dim oDesktop, oDocument as Object dim sUrl as String dim sMyText as String dim oCursor as Object oDesktop = createUnoService("com.sun.star.frame.Desktop") ' "file:///opt/OpenOffice6/627/user/work/test5.sdw" sUrl = _ "file:///opt/OpenOffice6/627/user/work/NocheineDatei.sxw" oDocument = _ oDesktop.loadComponentFromURL (sUrl, "_blank", 0 , mNoArgs() ) End Sub -------------Basic-Code---------------------------------- -------------Java-Code---------------------------------- String sFile = "file:///opt/OpenOffice6/627/user/work/NocheineDatei.sxw" ; XComponentLoader rLoader = (XComponentLoader)UnoRuntime.queryInterface( XComponentLoader.class, oMSF.createInstance("com.sun.star.frame.Desktop")); PropertyValue [] szEmptyArgs = new PropertyValue [0]; PropertyValue myProp = new PropertyValue () ; XComponent rComponent = rLoader.loadComponentFromURL(sFile, "_blank", 0, szEmptyArgs); oDoc = (XTextDocument) UnoRuntime.queryInterface(XTextDocument.class, rComponent); -------------Java-Code----------------------------------
Java language binding problems?
It crashes deep within sfx, so I guess, it is not a remote-bridge problem. SFX627MI! 1d6717a2() SFX627MI! 1d67103f() SFX627MI! 1d5abcab() SFX627MI! 1d5971b8() SFX627MI! 1d62873e() 001d293c() SFX627MI! 1d5934d0() As I have seen that you have a similar bug in the inhouse bugtracking system (#87804#), I send it to you. I have tested it in 633a build, there everything works fine.
Fixed in 633 build.
This bug was fixed in the 633 build.
.