Closed
Bug 270563
Opened 20 years ago
Closed 12 years ago
Exception [nsISupportsArray.QueryElementAt]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" thrown from function setTitleFromFolder(msgfolder=XPComponent:{140}, subject=null:null) in <chrome://messenger/content/commandglue.js> line 113.
Categories
(Thunderbird :: Account Manager, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: timeless, Unassigned)
References
(Blocks 1 open bug)
Details
Exception ``[Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsISupportsArray.QueryElementAt]" nsresult: "0x80004005
(NS_ERROR_FAILURE)" location: "JS frame ::
chrome://messenger/content/commandglue.js :: setTitleFromFolder :: line 113"
data: no]'' thrown from function setTitleFromFolder(msgfolder=XPComponent:{140},
subject=null:null) in <chrome://messenger/content/commandglue.js> line 113.
Stopped for thrown exception.
#0: function setTitleFromFolder(msgfolder=XPComponent:{140}, subject=null:null)
in <chrome://messenger/content/commandglue.js> line 113
111: var identities = accountManager.GetIdentitiesForServer(server);
112:
113: identity = identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity);
114: // <folder> for <email>
115: middle = gMessengerBundle.getString("titleMailPreHost");
0001: identities.Count
$[0] = [function] [class: Function] Count
0001: identities.Count()
$[1] = [integer] 0
#0: function setTitleFromFolder(msgfolder=XPComponent:{140}, subject=null:null)
in <chrome://messenger/content/commandglue.js> line 113
#1: function
ChangeFolderByURI(uri=string:"mailbox://nobody@News%20%26%20Blogs/Allrecipes%20Entertaining%20Recipes%20Daily%20Feed",
viewType=integer:0, viewFlags=integer:0, sortType=integer:18,
sortOrder=integer:1) in <chrome://messenger/content/commandglue.js> line 152
#2: function FolderPaneSelectionChange() in
<chrome://messenger/content/commandglue.js> line 883
#3: function onselect(event=Event:{0}) in
<chrome://messenger/content/messenger.xul> line 1
#4: select x-jsd:native-code
#5: function onxblmousedown(event=MouseEvent:{0}) in
<chrome://global/content/bindings/tree.xml> line 616
The code shouldn't try to get an identity when there are none.
Comment 1•19 years ago
|
||
(In reply to comment #0) > Exception ``[Exception... "Component returned failure code: 0x80004005 > (NS_ERROR_FAILURE) [nsISupportsArray.QueryElementAt]" nsresult: "0x80004005 > (NS_ERROR_FAILURE)" location: "JS frame :: > chrome://messenger/content/commandglue.js :: setTitleFromFolder :: line 113" > data: no]'' thrown from function setTitleFromFolder(msgfolder=XPComponent:{140}, > subject=null:null) in <chrome://messenger/content/commandglue.js> line 113. > Stopped for thrown exception. > #0: function setTitleFromFolder(msgfolder=XPComponent:{140}, subject=null:null) > in <chrome://messenger/content/commandglue.js> line 113 > 111: var identities = accountManager.GetIdentitiesForServer(server); > 112: > 113: identity = identities.QueryElementAt(0, Components.interfaces.nsIMsgIdentity); > 114: // <folder> for <email> > 115: middle = gMessengerBundle.getString("titleMailPreHost"); > 0001: identities.Count > $[0] = [function] [class: Function] Count > 0001: identities.Count() > $[1] = [integer] 0 > #0: function setTitleFromFolder(msgfolder=XPComponent:{140}, subject=null:null) > in <chrome://messenger/content/commandglue.js> line 113 > #1: function > ChangeFolderByURI(uri=string:"mailbox://nobody@News%20%26%20Blogs/Allrecipes%20Entertaining%20Recipes%20Daily%20Feed", > viewType=integer:0, viewFlags=integer:0, sortType=integer:18, > sortOrder=integer:1) in <chrome://messenger/content/commandglue.js> line 152 > #2: function FolderPaneSelectionChange() in > <chrome://messenger/content/commandglue.js> line 883 > #3: function onselect(event=Event:{0}) in > <chrome://messenger/content/messenger.xul> line 1 > #4: select x-jsd:native-code > #5: function onxblmousedown(event=MouseEvent:{0}) in > <chrome://global/content/bindings/tree.xml> line 616 > The code shouldn't try to get an identity when there are none.
Summary: :: line 113" data: no]'' thrown from function setTitleFromFolder(msgfolder=XPComponent:{140}, subject=null:null) in <chrome://messenger/content/commandglue.js> line 113. Exception ``[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAIL… → Exception [nsISupportsArray.QueryElementAt]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" thrown from function setTitleFromFolder(msgfolder=XPComponent:{140}, subject=null:null) in <chrome://messenger/content/commandglue.js> line 113.
Comment 2•18 years ago
|
||
Seeing the same error. Macbook Pro Mac OSX 10.4.9 w TB 2.0.0. Error: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISupportsArray.QueryElementAt]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: file:///Applications/Thunderbird.app/Contents/MacOS/components/nsSpotlightIntegration.js :: anonymous :: line 469" data: no] Source File: file:///Applications/Thunderbird.app/Contents/MacOS/components/nsSpotlightIntegration.js Line: 469
Updated•18 years ago
|
QA Contact: account-manager
Comment 3•17 years ago
|
||
There is another one when running an auto complete on To/Cc/Bc field. Just enter "test, test2" and hit tab/enter. Both recipients should be placed on separate fields but gets cleared due to the exception currently. The following exception is from a latest 1.8 branch build but also occurs on trunk: Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISupportsArray.QueryElementAt]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://messenger/content/messengercompose/addressingWidgetOverlay.js :: anonymous :: line 1187" data: no] Timeless, do any of this bugs fit into this one or should we file separate bugs therefor?
Hardware: Macintosh → All
Version: unspecified → Trunk
yours might, his doesn't. use a js debugger (i.e., venkman). if your problem doesn't relate to identities, it's a different bug.
Updated•16 years ago
|
Assignee: mscott → nobody
The current code for setTitleFromFolder in commandglue.js does not reference any identities: http://mxr.mozilla.org/comm-central/source/suite/mailnews/commandglue.js#80 so I think this report is outdated.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
(In reply to Henrik Skupin (:whimboo) from comment #3) > There is another one when running an auto complete on To/Cc/Bc field. Just > enter "test, test2" and hit tab/enter. Both recipients should be placed on > separate fields but gets cleared due to the exception currently. > > The following exception is from a latest 1.8 branch build but also occurs on > trunk: > > Error: uncaught exception: [Exception... "Component returned failure code: > 0x80004005 (NS_ERROR_FAILURE) [nsISupportsArray.QueryElementAt]" nsresult: > "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: > chrome://messenger/content/messengercompose/addressingWidgetOverlay.js :: > anonymous :: line 1187" data: no] > > > Timeless, do any of this bugs fit into this one or should we file separate > bugs therefor? Henrik, there are a couple of QueryElementAt in mail/components/compose/content/addressingWidgetOverlay.js so if you can still reproduce this in current TB, please file a bug for it and we can investigate. The steps you provided do not work anymore (i.e. those "test, test2" recipients are separated into 2 lines as you expected).
You need to log in
before you can comment on or make changes to this bug.
Description
•