oyvindkinsey/easyXDM — Issue #142: 'success' is null or not an object
Author: paulyoung
Created: 2011-11-28 16:52:09+00:00
State: open

I'm receiving this error in IE7 when nesting requests like so:

rpcOne.isLoggedOut(
function(response) {
if (! response) {

rpcTwo.getSize(
function(response) {

rpcTwo.bindLogoutClick(
function(response) {},
function(errorObj) {
throw new Error(errorObj);
}
);
setupOverlay(response);
},
function(errorObj) {
throw new Error(errorObj);
}
);

}
},
function(errorObj) {
throw new Error(errorObj);
}
);

If I wrap rpcTwo.bindLogoutClick with setTimeout set to 3000 I can prevent the error.

Log info:

b.local - 11:47:28.259:---- new logger at http://b.local/FED/sites/fan_club/plugins/dock/v2/dock.php?t=integrated&s=default&l=0&xdm_c=default3835&xdm_p=0&xdm_e=http%3A%2F%2Fa.local%2F&xdm_pa=1
b.local - 11:47:28.259:{Private}: firing dom_onReady
b.local - 11:47:28.306:easyXDM.Rpc: constructor
b.local - 11:47:28.322:{Private}: preparing transport stack
b.local - 11:47:28.322:{Private}: using parameters from query
b.local - 11:47:28.322:easyXDM.stack.HashTransport: constructor
b.local - 11:47:28.322:easyXDM.stack.ReliableBehavior: constructor
b.local - 11:47:28.322:easyXDM.stack.QueueBehavior: constructor
b.local - 11:47:28.322:easyXDM.stack.VerifyBehavior: constructor
b.local - 11:47:28.337:easyXDM.stack.QueueBehavior: constructor
b.local - 11:47:28.337:easyXDM.stack.RpcBehavior: init
b.local - 11:47:28.337:easyXDM.stack.RpcBehavior: creating stubs
b.local - 11:47:28.337:easyXDM.stack.RpcBehavior: creating method hideOnClick
b.local - 11:47:28.337:easyXDM.stack.RpcBehavior: creating method showOnClick
b.local - 11:47:28.337:easyXDM.stack.RpcBehavior: creating method toggleOverlay
b.local - 11:47:28.353:easyXDM.stack.HashTransport: starting polling
b.local - 11:47:28.550:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:28.554:easyXDM.stack.HashTransport: received message '#0_0,1_0_e21fe686957bb' from http://a.local
b.local - 11:47:28.556:easyXDM.stack.ReliableBehavior: incoming: 0,1_0_e21fe686957bb
b.local - 11:47:28.557:easyXDM.stack.ReliableBehavior: message delivered
b.local - 11:47:28.559:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb
b.local - 11:47:28.562:easyXDM.stack.HashTransport: sending message '1 1,0_' to http://a.local
b.local - 11:47:28.592:easyXDM.stack.QueueBehavior: received the last fragment
b.local - 11:47:28.594:easyXDM.stack.VerifyBehavior: returning secret
b.local - 11:47:28.596:easyXDM.stack.VerifyBehavior: requesting verification
b.local - 11:47:28.599:easyXDM.stack.QueueBehavior: enqueuing
b.local - 11:47:28.601:easyXDM.stack.QueueBehavior: dispatching from queue
b.local - 11:47:28.605:easyXDM.stack.HashTransport: sending message '2 1,1_0_7b8d032dd57c24' to http://a.local
b.local - 11:47:28.636:easyXDM.stack.QueueBehavior: enqueuing
b.local - 11:47:28.802:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:28.802:easyXDM.stack.HashTransport: received message '#2_1,2_0_7b8d032dd57c24' from http://a.local
b.local - 11:47:28.802:easyXDM.stack.ReliableBehavior: incoming: 1,2_0_7b8d032dd57c24
b.local - 11:47:28.802:easyXDM.stack.ReliableBehavior: message delivered
b.local - 11:47:28.802:easyXDM.stack.QueueBehavior: dispatching from queue
b.local - 11:47:28.802:easyXDM.stack.HashTransport: sending message '3 1,2_0_e21fe686957bb' to http://a.local
b.local - 11:47:28.849:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_7b8d032dd57c24
b.local - 11:47:28.849:easyXDM.stack.HashTransport: sending message '4 2,2_0_e21fe686957bb' to http://a.local
b.local - 11:47:28.864:easyXDM.stack.QueueBehavior: received the last fragment
b.local - 11:47:28.880:easyXDM.stack.VerifyBehavior: verified, calling callback
b.local - 11:47:28.880:easyXDM.stack.QueueBehavior: removing myself from the stack
b.local - 11:47:28.967:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:28.969:easyXDM.stack.HashTransport: received message '#4_2,3_0_e21fe686957bb_%7B%22method%22%3A%22getSize%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A1%2C%22jsonrpc%22%3A%222.0%22%7D' from http://a.local
b.local - 11:47:28.973:easyXDM.stack.ReliableBehavior: incoming: 2,3_0_e21fe686957bb_%7B%22method%22%3A%22getSize%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A1%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:28.976:easyXDM.stack.ReliableBehavior: message delivered
b.local - 11:47:28.978:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb_%7B%22method%22%3A%22getSize%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A1%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:28.981:easyXDM.stack.HashTransport: sending message '5 3,2_' to http://a.local
b.local - 11:47:29.019:easyXDM.stack.QueueBehavior: received the last fragment
b.local - 11:47:29.026:easyXDM.stack.RpcBehavior: received request to execute method getSize using callback id 1
b.local - 11:47:29.029:easyXDM.stack.RpcBehavior: requested to execute procedure getSize
b.local - 11:47:29.034:easyXDM.stack.QueueBehavior: enqueuing
b.local - 11:47:29.037:easyXDM.stack.QueueBehavior: dispatching from queue
b.local - 11:47:29.042:easyXDM.stack.HashTransport: sending message '6 3,3_0_7b8d032dd57c24_%7B%22id%22%3A1%2C%22result%22%3A%7B%22dockInnerWidth%22%3A960%2C%22height%22%3A%2262px%22%2C%22hideTabHeight%22%3A16%2C%22overlayTriggerOffsetLeft%22%3A245%2C%22overlayTriggerWidth%22%3A187%2C%22showTabHeight%22%3A20%2C%22width%22%3A%22100%25%22%7D%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:29.209:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:29.209:easyXDM.stack.HashTransport: received message '#6_3,4_0_e21fe686957bb_%7B%22method%22%3A%22isLoggedOut%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A2%2C%22jsonrpc%22%3A%222.0%22%7D' from http://a.local
b.local - 11:47:29.209:easyXDM.stack.ReliableBehavior: incoming: 3,4_0_e21fe686957bb_%7B%22method%22%3A%22isLoggedOut%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A2%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:29.209:easyXDM.stack.ReliableBehavior: message delivered
b.local - 11:47:29.209:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb_%7B%22method%22%3A%22isLoggedOut%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A2%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:29.209:easyXDM.stack.HashTransport: sending message '7 4,3_' to http://a.local
b.local - 11:47:29.256:easyXDM.stack.QueueBehavior: received the last fragment
b.local - 11:47:29.256:easyXDM.stack.RpcBehavior: received request to execute method isLoggedOut using callback id 2
b.local - 11:47:29.256:easyXDM.stack.RpcBehavior: requested to execute procedure isLoggedOut
b.local - 11:47:29.272:easyXDM.stack.QueueBehavior: enqueuing
b.local - 11:47:29.272:easyXDM.stack.QueueBehavior: dispatching from queue
b.local - 11:47:29.272:easyXDM.stack.HashTransport: sending message '8 4,4_0_7b8d032dd57c24_%7B%22id%22%3A2%2C%22result%22%3Afalse%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:29.483:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:29.486:easyXDM.stack.HashTransport: received message '#8_4,5_0_e21fe686957bb_%7B%22method%22%3A%22bindHideClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A3%2C%22jsonrpc%22%3A%222.0%22%7D' from http://a.local
b.local - 11:47:29.491:easyXDM.stack.ReliableBehavior: incoming: 4,5_0_e21fe686957bb_%7B%22method%22%3A%22bindHideClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A3%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:29.493:easyXDM.stack.ReliableBehavior: message delivered
b.local - 11:47:29.496:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb_%7B%22method%22%3A%22bindHideClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A3%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:29.499:easyXDM.stack.HashTransport: sending message '9 5,4_' to http://a.local
b.local - 11:47:29.551:easyXDM.stack.QueueBehavior: received the last fragment
b.local - 11:47:29.551:easyXDM.stack.RpcBehavior: received request to execute method bindHideClick using callback id 3
b.local - 11:47:29.551:easyXDM.stack.RpcBehavior: requested to execute procedure bindHideClick
b.local - 11:47:29.567:easyXDM.stack.QueueBehavior: enqueuing
b.local - 11:47:29.567:easyXDM.stack.QueueBehavior: dispatching from queue
b.local - 11:47:29.567:easyXDM.stack.HashTransport: sending message '10 5,5_0_7b8d032dd57c24_%7B%22id%22%3A3%2C%22result%22%3Afalse%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:29.780:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:29.783:easyXDM.stack.HashTransport: received message '#11_1,6_0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D' from http://a.local
b.local - 11:47:29.785:easyXDM.stack.ReliableBehavior: incoming: 1,6_0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:29.789:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:29.791:easyXDM.stack.HashTransport: sending message '11 6,5_0_7b8d032dd57c24_%7B%22id%22%3A3%2C%22result%22%3Afalse%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:29.829:easyXDM.stack.QueueBehavior: received the last fragment
b.local - 11:47:29.833:easyXDM.stack.RpcBehavior: received request to execute method bindShowClick using callback id 4
b.local - 11:47:29.835:easyXDM.stack.RpcBehavior: requested to execute procedure bindShowClick
b.local - 11:47:29.841:easyXDM.stack.QueueBehavior: enqueuing
b.local - 11:47:29.983:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:29.983:easyXDM.stack.HashTransport: received message '#12_2,6_0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D' from http://a.local
b.local - 11:47:29.983:easyXDM.stack.ReliableBehavior: incoming: 2,6_0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:29.998:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:29.998:easyXDM.stack.HashTransport: sending message '12 6,5_0_7b8d032dd57c24_%7B%22id%22%3A3%2C%22result%22%3Afalse%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:30.602:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:30.602:easyXDM.stack.HashTransport: received message '#14_1,6_0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D' from http://a.local
b.local - 11:47:30.602:easyXDM.stack.ReliableBehavior: incoming: 1,6_0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:30.617:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:30.617:easyXDM.stack.HashTransport: sending message '13 6,5_0_7b8d032dd57c24_%7B%22id%22%3A3%2C%22result%22%3Afalse%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:30.825:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:30.831:easyXDM.stack.HashTransport: received message '#15_2,6_0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D' from http://a.local
b.local - 11:47:30.835:easyXDM.stack.ReliableBehavior: incoming: 2,6_0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:30.838:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb_%7B%22method%22%3A%22bindShowClick%22%2C%22params%22%3A%5B%5D%2C%22id%22%3A4%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:30.841:easyXDM.stack.HashTransport: sending message '14 6,5_0_7b8d032dd57c24_%7B%22id%22%3A3%2C%22result%22%3Afalse%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:31.009:easyXDM.stack.HashTransport: poll: new message
b.local - 11:47:31.009:easyXDM.stack.HashTransport: received message '#17_5,7_0_e21fe686957bb_%7B%22method%22%3A%22updateHiddenState%22%2C%22params%22%3A%5Bfalse%5D%2C%22id%22%3A5%2C%22jsonrpc%22%3A%222.0%22%7D' from http://a.local
b.local - 11:47:31.009:easyXDM.stack.ReliableBehavior: incoming: 5,7_0_e21fe686957bb_%7B%22method%22%3A%22updateHiddenState%22%2C%22params%22%3A%5Bfalse%5D%2C%22id%22%3A5%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:31.009:easyXDM.stack.ReliableBehavior: message delivered
b.local - 11:47:31.009:easyXDM.stack.QueueBehavior: dispatching from queue
b.local - 11:47:31.025:easyXDM.stack.HashTransport: sending message '15 6,6_0_7b8d032dd57c24_%7B%22id%22%3A4%2C%22result%22%3Afalse%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:31.040:easyXDM.stack.ReliableBehavior: sending ack, and passing on 0_e21fe686957bb_%7B%22method%22%3A%22updateHiddenState%22%2C%22params%22%3A%5Bfalse%5D%2C%22id%22%3A5%2C%22jsonrpc%22%3A%222.0%22%7D
b.local - 11:47:31.056:easyXDM.stack.HashTransport: sending message '16 7,6_0_7b8d032dd57c24_%7B%22id%22%3A4%2C%22result%22%3Afalse%2C%22jsonrpc%22%3A%222.0%22%7D' to http://a.local
b.local - 11:47:31.087:easyXDM.stack.QueueBehavior: received the last fragment
b.local - 11:47:31.087:easyXDM.stack.RpcBehavior: received request to execute method updateHiddenState using callback id 5
b.local - 11:47:31.103:easyXDM.stack.RpcBehavior: requested to execute procedure updateHiddenState
b.local - 11:47:31.103:easyXDM.stack.QueueBehavior: enqueuing