Re: failure code: 0x80004002 account-mgr

2013-07-10 Thread Stefan Sitter

On 04.07.2013 16:44, seam...@taz.de wrote:

Hi,

We are using seamonkey with lightning and sogo-groupware-addons
(http://www.sogo.nu/english/downloads/frontends.html). These are made
for TB17ESR but with little customization they worked fine here in
Seamonkey 2.14.1

Using SM 2.17.1 or 2.19 the following error appears (with functionality
loss in calendar-actions).

Error: [Exception... Component returned failure code: 0x80004002
(NS_NOINTERFACE) [nsISupports.QueryInterface]  nsresult: 0x80004002
(NS_NOINTERFACE)  location: JS frame ::
file:///C:/Programme/SeaMonkey/extensions/sogo-connec...@inverse.ca/components/CalDAVACLManager.js
:: cDACLM__initAccountMgr :: line 1021  data: no]
Quelldatei:
file:///C:/Programme/SeaMonkey/extensions/sogo-connec...@inverse.ca/components/CalDAVACLManager.js


Line 1016-1021 :

_initAccountMgr: function cDACLM__initAccountMgr() {
 this.accountMgr =
Components.classes[@mozilla.org/messenger/account-manager;1]

.getService(Components.interfaces.nsIMsgAccountManager);
 let defaultAccount = this.accountMgr.defaultAccount;

 let identities =
this.accountMgr.allIdentities.QueryInterface(Components.interfaces.nsICollection);


Any hints how to correct this?
Thanks in advance,
Gerd


On the ESR branch allIdentities is defined as:

http://mxr.mozilla.org/comm-esr17/source/mailnews/base/public/nsIMsgAccountManager.idl#84
readonly attribute nsISupportsArray allIdentities;

On the current comm-beta, -aurora, and -central it is defined as:

http://mxr.mozilla.org/comm-beta/source/mailnews/base/public/nsIMsgAccountManager.idl#83
readonly attribute nsIArray allIdentities;

Seems the type change was done in Bug 820377
https://bugzilla.mozilla.org/show_bug.cgi?id=820377

Maybe the bug comments and the attached patches provide information on 
how to update your code.


Stefan
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


Re: failure code: 0x80004002 account-mgr

2013-07-10 Thread Neil

seam...@taz.de wrote:


   let identities =
this.accountMgr.allIdentities.QueryInterface(Components.interfaces.nsICollection);
 

allIdentites probably changed from an nsISupportsArray into an nsIArray. 
(I've no idea why you are trying to QI it to nsICollection though.)


--
Warning: May contain traces of nuts.
___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey


failure code: 0x80004002 account-mgr

2013-07-10 Thread seamon2
Hi,

We are using seamonkey with lightning and sogo-groupware-addons
(http://www.sogo.nu/english/downloads/frontends.html). These are made
for TB17ESR but with little customization they worked fine here in
Seamonkey 2.14.1

Using SM 2.17.1 or 2.19 the following error appears (with functionality
loss in calendar-actions).

Error: [Exception... Component returned failure code: 0x80004002
(NS_NOINTERFACE) [nsISupports.QueryInterface]  nsresult: 0x80004002
(NS_NOINTERFACE)  location: JS frame ::
file:///C:/Programme/SeaMonkey/extensions/sogo-connec...@inverse.ca/components/CalDAVACLManager.js
:: cDACLM__initAccountMgr :: line 1021  data: no]
Quelldatei:
file:///C:/Programme/SeaMonkey/extensions/sogo-connec...@inverse.ca/components/CalDAVACLManager.js


Line 1016-1021 :

_initAccountMgr: function cDACLM__initAccountMgr() {
this.accountMgr =
Components.classes[@mozilla.org/messenger/account-manager;1]

.getService(Components.interfaces.nsIMsgAccountManager);
let defaultAccount = this.accountMgr.defaultAccount;

let identities =
this.accountMgr.allIdentities.QueryInterface(Components.interfaces.nsICollection);


Any hints how to correct this?
Thanks in advance,
Gerd

___
support-seamonkey mailing list
support-seamonkey@lists.mozilla.org
https://lists.mozilla.org/listinfo/support-seamonkey