I posted this in the Macros forum, but think it may be the wrong forum. Hopefully, this is the correct forum. There are updates here though.
I am trying to connect to a remote instance of StarOffice 9(basis3.1) on Solaris 10 x86, however, I am having some strange inconsistencies. On some systems, my application successfully launches the SpreadSheet application by using the bootstrap method, although it fails if I use a user that did not compile the code. However, on other systems (same architecture), the SpreadSheet application will not launch unless I already have StarOffice running, otherwise it throws com.sun.star.lang.DisposedException: java.io.Exception. Any help on this matter would be greatly accepted.
I've narrowed it down to this call:
ProtertyValue[] load_props = new PropertyValue[0];
XComponent comp = xComponentLoader.loadComponentFromURL("private:factory/scalc", "_blank", 0, load_props);
This call never returns and is throwing the exception.
Thanks in Advanced,
Raymond
loadComponentFromURL crashing
loadComponentFromURL crashing
Raymond
Solaris 10 x86 StarrOffice 9 - basis3.1
Solaris 10 x86 StarrOffice 9 - basis3.1
Re: loadComponentFromURL crashing
Pass an empty array without any property struct if you don't need any additional information.
Last edited by Villeroy on Sun Aug 12, 2012 10:12 am, edited 1 time in total.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: loadComponentFromURL crashing
Thanks for the response. I'm not sure if this is what you meant, but I did the following with the same results.
PropertyValue[] load_props = new PropertyValue[0];
load_props[0] = new PropertyValue();
XComponent comp = xComponentLoader.loadComponentFromURL("private:factory/scalc", "_blank", 0, load_props);
Any ideas?
PropertyValue[] load_props = new PropertyValue[0];
load_props[0] = new PropertyValue();
XComponent comp = xComponentLoader.loadComponentFromURL("private:factory/scalc", "_blank", 0, load_props);
Any ideas?
Raymond
Solaris 10 x86 StarrOffice 9 - basis3.1
Solaris 10 x86 StarrOffice 9 - basis3.1
Re: loadComponentFromURL crashing
That's an environment I've never used. So all I can give you is a little bit of general advice, although that might not be helpful in your case.rjsteele wrote:I am trying to connect to a remote instance of StarOffice 9(basis3.1) on Solaris 10 x86
This two lines are ok. I've used myself this line, always without any problems:rjsteele wrote:I've narrowed it down to this call:
ProtertyValue[] load_props = new PropertyValue[0];
XComponent comp = xComponentLoader.loadComponentFromURL("private:factory/scalc", "_blank", 0, load_props);
This call never returns and is throwing the exception.
Code: Select all
XComponent comp = xComponentLoader.loadComponentFromURL("private:factory/scalc", "_blank", 0, new PropertyValue[0]);
OOo 3.2.0 on Ubuntu 10.04 • OOo 3.2.1 on Windows 7 64-bit and MS Windows XP