Hi,
it started to work
i removed all the blank spaces and it started working

can anyone explain me like what was the cause of error and why removin
blank spaces helped?


On Aug 4, 11:20 am, Rahul <[email protected]> wrote:
> Hi I am gettin this error
>
> [ERROR] Uncaught exception escaped
> com.google.gwt.core.client.JavaScriptException: (TypeError): 'length'
> is null or not an object
>  number: -2146823281
>  description: 'length' is null or not an object
>
> This is my code
> public void onResponseReceived(Request request,
>                                                 Response response) {
> Document xmlDoc =   XMLParser.parse(response.getText());
>                                         Element root =  
> xmlDoc.getDocumentElement();
>                                         NodeList URLs = root.getChildNodes();
>                                         int j = URLs.getLength();
>                                         int i=0;
>                                         for (i=0; i<j;i++)
>                                         {
>                                                         
> System.out.println(URLs.item(i).getAttributes());
>                                         }                                     
>   }
>
>                                 }
>
>                                 });
>                 }catch(RequestException e)
>                 {
>
>                 }
>
> Reading from forums i have included
> <inherits name='com.google.gwt.xml.XML'/>
>         <inherits name='com.google.gwt.http.HTTP'/>
> in my gwt.xml
>
> any idea why is the error comin?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to