Vijaya,

Ive tried the app in prod.sandbox and i am still experiencing issues.
I am not at liberty
to show our entire app yet. What i have done is stripped out
everything except for the sequence
of events during the application start up that seem to trigger the
exception.

if you add this app:
http://sifu0.goldenware.com/~boris317/orkut/v2.php
Right now i am testing in firefox 3 for windows. I believe i have
experienced the same issue
in IE as well.


Some of the javascript is a bit chaotic as i am in the process of
rewriting the entire
app using the mootools js framework.

Ok so to make your life a bit easier i will walk threw what the app is
doing on start up. I hope
this is helpful and not confusing.

JS FILE:
http://sifu0.goldenware.com/~boris317/orkut/js/application_class.js

At the bottom of that file i register a startup function called start
()

in Start():
line 182 : here the ``App`` class is instantiated with the tabs it
will have
and some other elements it will need.

in App.initialize():
line 94(new AppUsers): When this class is instantiated it goes out and
gets the app owner
and viewer. checkout line 16.

>From there we go to a new js file where i have
the Gadget obj that i have created to wrap some opensocial
functionality. Its a
bit rough around the edges as i have not rewritten it yet

JS FILE:
http://sifu0.goldenware.com/~boris317/orkut/js/gadget_class.v2.js

Gadget.prototype.get_person_data():
I have tried to create this function so i could just pass in the
strings
viewer, owner, owner_friends, or any list of user ids.
During the application startup i pass in ['owner', 'viewer']

line 220: Here i am saying anytime a request for the viewer is made
also try and get
the application data ``active``. if active is true the app has been
setup otherwise
if it does not exist, this is going to put the app in a state to
collect some info.
You wont be asked for any info because i have striped out everything
that doesn't
pertain to this bug.

I believe that it is this request that is causing the exception to be
thrown.

Below is info copied from the firebug debug output
[Exception... "'Request key(app_data) and response id(1) do not match'
when calling method: [nsIDOMEventListener::handleEvent]" nsresult:
"0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)"
location: "JS frame :: chrome://firebug/content/spy.js ::
onHTTPSpyReadyStateChange :: line 491" data: no]
sendRequest()(undefined)opensoci...-0.8.2.js (line 16)
getPrefetchData_()(Object requestObjects_=Object, function())
opensoci...-0.8.2.js (line 12)
send()(function())views:se...x&debug=0 (line 1129)
get_person_data()(owner,viewer 0=owner 1=viewer $family=Object,
function(), false)ifr?url=...w-params= (line 848)
loadUsers()()ifr?url=...w-params= (line 1046)
initialize()(Object)ifr?url=...w-params= (line 1043)
initialize()()ifr?url=...w-params= (line 280)
initialize()(Object tabGroups=Object loadingDiv=loading_div)ifr?
url=...w-params= (line 1125)
initialize()()ifr?url=...w-params= (line 280)
start()ifr?url=...w-params= (line 1228)
runOnLoadHandlers()()views:se...x&debug=0 (line 133)
report()ifr?url=...w-params= (line 1253)
sendRequest()(undefined)opensoci...-0.8.2.js (line 16)
getPrefetchData_()(Object requestObjects_=Object, function())
opensoci...-0.8.2.js (line 12)
send()(function())views:se...x&debug=0 (line 1129)
get_person_data()(owner,viewer 0=owner 1=viewer $family=Object,
function(), false)ifr?url=...w-params= (line 848)
loadUsers()()ifr?url=...w-params= (line 1046)
initialize()(Object)ifr?url=...w-params= (line 1043)
initialize()()ifr?url=...w-params= (line 280)
initialize()(Object tabGroups=Object loadingDiv=loading_div)ifr?
url=...w-params= (line 1125)
initialize()()ifr?url=...w-params= (line 280)
start()ifr?url=...w-params= (line 1228)
runOnLoadHandlers()()views:se...x&debug=0 (line 133)
report()ifr?url=...w-params= (line 1253)
[Break on this error] os_m.prototype.loadPrefetchData_=functio...parse
(c.join(""))}catch(i){return os_}};

The exception trickles up threw chrome://firebug/content/spy.js So we
are seeing that in the trace.

I greatly appreciate the help. Thanks,
-Shawn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to