Closed
Bug 108323
Opened 24 years ago
Closed 24 years ago
errors to console about ldap service and ioservice
Categories
(MailNews Core :: LDAP Integration, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: sspitzer, Assigned: bugzilla)
Details
Attachments
(1 file)
|
907 bytes,
patch
|
vparthas
:
review+
sspitzer
:
superreview+
|
Details | Diff | Splinter Review |
errors to console about ldap service and ioservice
fallout from your landing, I think.
************************************************************
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'Illegal value' when calling method: [nsIFactory::createInstance]
" nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: chrom
e://messenger/content/messengercompose/MsgComposeCommands.js :: InitializeGlobal
Variables :: line 96" data: no]
************************************************************
ERROR: Cannot get the LDAP service
[Exception... "Component returned failure code: 0x80570016 (NS_ERROR_XPC_GS_RETU
RNED_FAILURE) [nsIJSCID.getService]" nsresult: "0x80570016 (NS_ERROR_XPC_GS_RET
URNED_FAILURE)" location: "JS frame :: chrome://messenger/content/messengercomp
ose/MsgComposeCommands.js :: InitializeGlobalVariables :: line 96" data: no]
WARNING: waaah!, file c:\builds\bugs\mozilla\content\xul\document\src\nsXULProto
typeDocument.cpp, line 659
JavaScript strict warning:
chrome://editor/content/ComposerCommands.js line 699: redeclaration of var vwin
WEBSHELL+ = 6
JavaScript strict warning:
chrome://messenger/content/messengercompose/MsgComposeCommands.js line 646: refe
rence to undefined property gIOService.offline
JavaScript strict warning:
chrome://messenger/content/messengercompose/MsgComposeCommands.js line 646: refe
rence to undefined property gIOService.offline
JavaScript strict warning:
chrome://messenger/content/messengercompose/MsgComposeCommands.js line 646: refe
rence to undefined property gIOService.offline
JavaScript strict warning:
chrome://messenger/content/messengercompose/MsgComposeCommands.js line 646: refe
rence to undefined property gIOService.offline
JavaScript strict warning:
chrome://messenger/content/messengercompose/MsgComposeCommands.js line 646: refe
rence to undefined property gIOService.offline
| Assignee | ||
Comment 1•24 years ago
|
||
I Have a fix for the LDAP problem however, I cannot reproduce the offline warning!
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•24 years ago
|
||
| Assignee | ||
Comment 3•24 years ago
|
||
I have no clue why I cannot initialize the ldap service in one line like other
services. This is magic!
Comment on attachment 56570 [details] [diff] [review]
Proposed fix, v1
r=varada
I wonder why this works though.
Attachment #56570 -
Flags: review+
| Assignee | ||
Comment 5•24 years ago
|
||
The code use to be in two lines before i broke it!
| Reporter | ||
Comment 6•24 years ago
|
||
Comment on attachment 56570 [details] [diff] [review]
Proposed fix, v1
sr=sspitzer
Attachment #56570 -
Flags: superreview+
Updated•24 years ago
|
QA Contact: sheelar → nbaca
Updated•24 years ago
|
Component: Composition → LDAP Mail/News Integration
QA Contact: nbaca → yulian
| Assignee | ||
Comment 7•24 years ago
|
||
Fixed and checked in (the LDAP part). Please reopen if you are able to reproduce
the offline warnings
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 8•24 years ago
|
||
I bet the QI is failing. Though in that case you would still be seeing an error
message on the console. Hmmm.
Humor me and try something like:
try {
gLDAPPrefsService =
Components.classes["@mozilla.org/ldapprefs-service;1"].getService();
} catch (ex) {dump ("ERROR: cannot get the LDAP service\n" + e + "\n");}
try {
gLDAPPrefsService = gLDAPPrefsService.QueryInterface(
Components.interfaces.nsILDAPPrefsService);
} catch (ex) {dump ("ERROR: Cannot QI the LDAP service\n" + e + "\n");}
This should tell you which step is going wrong. If both these steps succeed,
something real screwy must be going on. CC'ing some people who might know what's
happening here.
Ugh, I was going to comment about your use of 4-space indent where it was
2-space. And while the largest portion of the file looks to be using 2-space
indent, I'm seeing 1-space and 4-space indents, and the mode line says it should
be 4-space (incorrect mode line?). Someone feel like cleaning that up?
Also, you've put a space after the opening parenthesis on the QI line, which is
out-of-style for this file.
Comment 9•24 years ago
|
||
> } catch (ex) {dump ("ERROR: cannot get the LDAP service\n" + e + "\n");}
< } catch (ex) {dump ("ERROR: cannot get the LDAP service\n" + ex + "\n");}
Comment 10•24 years ago
|
||
Erh, yes. In both cases, actually. Thanks for catching that, jband.
Comment 11•23 years ago
|
||
Using commercial
2003-01-02-05-trunk Xp
2003-01-02-08-trunk Mac OS 10.1.2, linux 2.2
verified no error mesgs in this bug appeared in javascript console
when connected to a ldap server and doing some address autocompletion
based off the ldap server.
marking as verified.
Status: RESOLVED → VERIFIED
Updated•21 years ago
|
Product: MailNews → Core
Updated•17 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•