[Jslib] SQL XPCOM Methods

Pete Collins pete at mozdevgroup.com
Thu Apr 7 08:50:42 EDT 2005


 

>
> 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);



-- 
Pete Collins - Founder, Mozdev Group Inc.
www.mozdevgroup.com
Mozilla Software Development Solutions 




More information about the Jslib mailing list