Issue 110530 - XComponentLoader loadComponentFromURL Throws Error
Summary: XComponentLoader loadComponentFromURL Throws Error
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Windows, all
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2010-03-31 16:36 UTC by msmith68
Modified: 2017-05-20 11:28 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this issue.
Description msmith68 2010-03-31 16:36:17 UTC
The XComponentLoader loadComponentFromURL method throws an error with the 
message "URL seems to be an unsupported one" when loading a file with OO 3.2.  
The same code trying to load the same file works fine when run with OO 3.1.1 
and earlier versions of OO.  

Our application is written in C++ and is run under several different Windows 
Operating systems (XP, Vista, 7, 2003 and 2008) which all produce the same 
error when OO is upgraded to version 3.2.  

When our application calls the loadComponentFromURL method it sets the method's 
URL parameter to URL of the file to be opened, which is alway on the machines 
C: drive.  The URL string is always the following 
format "file:///c:/temp/userdir/userfile.odt" where userdir and userfile are 
unique names supplied by the user.  The TargetFrameName parameter is always set 
to "_blank".  The SearchFlags parameter is always set to zero (0). The 
Arguments parameter is always set to a PropertyValue structure containing two 
properties.  They are "Hidden" which is set to sal_True and "UpdateDocMode" 
which is set to QUIET_UPDATE.  

Why does this method fail with OO 3.2.
Comment 1 jsc 2010-04-08 11:19:52 UTC
jsc -> cd: seems to be a framework problem
Comment 2 carsten.driesner 2010-04-08 11:44:52 UTC
cd->mav: Please take over. You have much more knowledge about the load/store
process in framework.

cd: Set myself on CC.
Comment 3 gregmcc 2010-11-14 22:30:57 UTC
I have had the same problem moving from stable 3.2 to 3.3.0m14 - seems not to 
work. I have been loading Calc documents from URL for years now - and suddenly 
it gets stuck with the same error message 'BASIC run-time error '1' - Type: Message: URL seems to be an 
unsupported one'.

sPathFile = "file:///H:/DirectoryX/File1.ods"

oDesktop  = createUnoService("")
oFile = oDesktop.LoadComponentFromUrl(sPathFile , "_Blank" , 0 , mNoArgs())

It is nothing I have changed - so could really do with some progress on the 
item before Rev3.3 is issued as STABLE ( that would be a disaster ).


Greg McC
Comment 4 gregmcc 2010-11-14 23:38:59 UTC
Really Sorry Guys - It was simply the fact that the file didn't exist in the 

( The error messages throw you so badly ) - I was looking for something much 
much deeper.


Greg McC
Comment 5 Marcus 2017-05-20 11:28:10 UTC
Reset assigne to the default "".