[Jslib] SQL XPCOM Methods

Gordan Bobic gordan at bobich.net
Thu Apr 7 13:56:04 EDT 2005


Pete Collins wrote:
> 
> 
>>
>> However, now I get the following:
>>
>> js> var obj = jslibGetService("@mozilla.org/sql/service;1", 
>> "mozISqlService");
>>
>> -----======[ jsLib ERROR ]=====-----
>> FileName:          chrome/jslib/jslib.js
>> Result:            -2153185302
>> Message:           Component returned failure code: 0x80570016 
>> (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]
>> LineNumber:        100
>> -------------------------------------
>>
>> What gives?
>>
>>
> Don't know ...
> 
> The above error NS_ERROR_XPC_GS_RETURNED_FAILURE means "get service 
> failed" which isn't very helpful
> 
> Try it from a xul page. Some components wont instantiate in xpcshell but 
> I doubt it's the case here ...
> 
> You can also try a direct instantiation but I doubt that will work 
> either ...
> 
> var sqlService = 
> Components.classes["@mozilla.org/sql/service;1"].getService(Components.interfaces.mozISqlService); 

js> var sqlService = 
Components.classes["@mozilla.org/sql/service;1"].getService(Components.interfaces.mozISqlService);
uncaught exception: [Exception... "Component returned failure code: 
0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE) [nsIJSCID.getService]" 
nsresult: "0x80570016 (NS_ERROR_XPC_GS_RETURNED_FAILURE)"  location: "JS 
frame :: typein :: <TOP_LEVEL> :: line 3"  data: no]

:-(

Any suggestions WRT how I might be able to track this down further?

TIA.

Gordan


More information about the Jslib mailing list