Hi,
I am getting a strange javascript exception while parsing the XML
string and converting to JSON string. Can I know the reasons for the
exception? Catch is same input is working in another environment. Is
it something related to environment?
input XML is
------------------
Content-Type: application/xaml+xml
Headers: {Date=[Thu, 10 Jun 2010 13:35:33 GMT]}
Payload: <?xml version="1.0" encoding="UTF-8" standalone="yes"?
><UIServiceResponse><pageConfig><filterExpression><matchesAll>false</
matchesAll><operations><leftOperand>TARGET-NAME</
leftOperand><operationType>2</operationType><operator>FILTER-WILDCARD-
EQ</operator><rightOperand>*</rightOperand></operations></
filterExpression><limit>0</limit><offSet>0</offSet><sortAesc>false</
sortAesc><sortField>TARGET-NAME</sortField><totalRecords>0</
totalRecords></pageConfig><result xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xsi:type="xs:string">winpe2.2</result></UIServiceResponse>
UIServiceResponse, PageConfig and Result(List) are the objects on the
XML
exception is
-----------------
Error: Data Error: Unable to parse the message received from the
server: com.google.gwt.core.client.JavaScriptException: (TypeError):
'b' is null or not an object number: -2146823281 description: 'b' is
null or not an object
piece of code where exception is thrown is with in method
onResponseReceived of extended class. We have extended RequestCallback
class.
--------------------------------------------------------------
JSONValue jsonValue = JSONParser.parse(response.getText());
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.