Nelson B wrote:
Jean-Marc Desperrier wrote:
Error: uncaught exception: [Exception... "Component returned failure code: 0x80570018

Jean-Marc, Do you know what that error code means, and/or what produced it?
[...]
If you know where it is defined, please post a reference. Thanks.

Nelson, maybe I was wrong to transfer to crypto, because I don't believe it has to see with NSS. Maybe I it would better have left it in security or transferred to XPCOM. Just saw signature + ssl, but if the actual cryptography layer is OK, it's still component security.


I made things harder by cutting too much from the original message, where it was easy to spot the NS_ERROR_XPC_BAD_IID identifier, but you probably saw it on the security group ?

http://lxr.mozilla.org/mozilla/source/js/src/xpconnect/idl/nsIXPConnect.idl#98
#define NS_ERROR_XPC_BAD_IID                 GENERATE_XPC_FAILURE(24)

#define GENERATE_XPC_FAILURE(x) \
             (NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_XPCONNECT,x))

#define NS_ERROR_MODULE_XPCONNECT  18

#define NS_ERROR_GENERATE_FAILURE(module,code) \
 ((nsresult) (((PRUint32)(NS_ERROR_SEVERITY_ERROR)<<31) |
 ((PRUint32)(module+NS_ERROR_MODULE_BASE_OFFSET)<<16) |
 ((PRUint32)(code))) )

#define NS_ERROR_MODULE_BASE_OFFSET 0x45

0x45 + 18 = 0x57, and 24 => 0x18

The thing is that this error is in all case returned after the security manager has done the checking, so this is something else. It seems in the https version the js jut can't see his XPCOM component. It sounds possible it's just a inadvertent installation error.

If the installation of the component is really correct, I think Vincent should run his component in a debug build, set breakpoints everywhere this error is returned, and check what is different when he reaches this points in the HTTP and in the HTTPS version.

The error can come from :
/js/src/xpconnect/src/xpccomponents.cpp, line 1654
/js/src/xpconnect/src/xpcjsid.cpp, line 795
/js/src/xpconnect/src/xpcjsid.cpp, line 883
_______________________________________________
mozilla-crypto mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-crypto

Reply via email to