Issue 868 - File Open-Problems with sxw
Summary: File Open-Problems with sxw
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: PC Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: Mathias_Bauer
QA Contact: issues@www
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-05-07 20:50 UTC by issues@www
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description issues@www 2001-05-07 20:50:25 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----------------------------------
Comment 1 ooo 2001-06-05 13:57:58 UTC
Java language binding problems?
Comment 2 issues@www 2001-06-11 15:34:38 UTC
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.
Comment 3 Mathias_Bauer 2001-07-12 15:24:50 UTC
Fixed in 633 build.
Comment 4 Mathias_Bauer 2001-09-14 22:26:10 UTC
This bug was fixed in the 633 build.
Comment 5 Mathias_Bauer 2003-01-17 13:33:21 UTC
.