[Json-rpc-java] IE 6.0 hangs...

Michael Connor mlconnor at yahoo.com
Wed Jan 24 22:27:40 SGT 2007


Thanks Steve, I may try that too.  I mentioned to Arthur that I saw another post (http://www.siteexperts.com/forums/viewConverse.asp?d_id=18800) that mentioned that IE sometimes hangs when trying to do an eval on a JSON string in order to create the JavaScript object.  They were able to work around it by actually parsing the string using standard JSON methods.

The jsonrpc.js script has a method called _handleResponse and on line 413 you see the following code...

    var obj;
    try {
    eval("obj = " + data);
    } catch(e) {
    throw new JSONRpcClient.Exception(550, "error parsing result");
    }

The object being created is constructed using the eval statement that was discovered to be problematic with IE 6.  I think I'll try to rewrite that to use a parser instead and see if I have any luck.  Let me know if you have any luck on your end.

Thx!!! Michael Connor

----- Original Message ----
From: "Hunt, Stephen" <stephen.hunt at northgate-is.com>
To: Arthur Blake <arthur.blake at gmail.com>; Michael Connor <mlconnor at yahoo.com>
Cc: json-rpc-java at oss.metaparadigm.com
Sent: Wednesday, January 24, 2007 3:39:46 AM
Subject: RE: [Json-rpc-java] IE 6.0 hangs...

RE: [Json-rpc-java] IE 6.0 hangs...


 
 



We have experienced a 'hang' situation.

It seems to be related to HTTP11 and IE6 bugs.



We're trying out a fix at the moment which involves removing the 'keep-alive' response header from the json-rpc servlet and adding the 'closed' header.


Rgds

Steve



-----Original Message-----

From: json-rpc-java-bounces at oss.metaparadigm.com [mailto:json-rpc-java-bounces at oss.metaparadigm.com] On Behalf Of Arthur Blake


Sent: 23 January 2007 23:02

To: Michael Connor

Cc: json-rpc-java at oss.metaparadigm.com

Subject: Re: [Json-rpc-java] IE 6.0 hangs...

Importance: Low



out of curiosity, have you tried IE 7?  I find IE 6 hangs quite often

(although not because of json-rpc-java-- mainly because of some long

standing browser bugs...)



On 1/23/07, Michael Connor <mlconnor at yahoo.com> wrote:

>

> Anyone experience IE 6.0 hanging after a JSON RPC call?

>

>         var questionPropertyFile = jsonrpc.propertyFile.getPropertyFile('fic/questions/questions',

> language, country);

>         questionBundle = questionPropertyFile.map;

>

> I wrote a little Java code to take a resource bundle and returns a HashMap

> that gets JSONified.  The result is a nice sized object that gets shipped

> back.  Mozilla handles it just fine but IE crashes about every second or

> third try.

>

> Any ideas? Suggestions?

>

> Am I doing something retarded???

>

>

> _______________________________________________

> Json-rpc-java mailing list

> Json-rpc-java at oss.metaparadigm.com

> http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java

>

_______________________________________________

Json-rpc-java mailing list

Json-rpc-java at oss.metaparadigm.com

http://oss.metaparadigm.com/mailman/listinfo/json-rpc-java



------------------------------------------------------------------------------------ 

The Northgate IS Content Screening and Inspection system has scanned this 

message for malicious and inappropriate content and none was found. Please take care 

when opening attachments even when these are expected and from known and trusted 

sources. 

------------------------------------------------------------------------------------






 This 
email is sent on behalf of Northgate Information Solutions PLC 
("Northgate") and is strictly confidential and intended solely for the 
addressee(s).  It may contain personal and confidential information and as 
such may be protected by the Data Protection Act 1998. 
 
If 
you are not the intended recipient of this email you must: (i) not disclose, 
copy or distribute its contents to any other person nor use its contents in any 
way or you may be acting unlawfully;  (ii) contact Northgate immediately on 
+44 (0)1442 232424 quoting the name of the sender and the addressee then delete 
it from your system.
 
Any 
views or opinions expressed within this email are those of the author, and do 
not necessarily represent those of Northgate.
 
Northgate 
has scanned this email for viruses but does not accept any responsibility once 
this email has been transmitted.  You should scan attachments (if any) for 
viruses.
 
Northgate 
Information Solutions UK Limited
 
Registered 
in


 England
 
Registered 
No.: 276332
Registered 
office: Peoplebuilding 2, Peoplebuilding Estate,
 Maylands Avenue , 
 Hemel Hempstead , Hertfordshire HP2 
4NW 










More information about the Json-rpc-java mailing list