aspose file tools*
The moose likes Android and the fly likes getting Nulpointer in xml file parsing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "getting Nulpointer in xml file parsing" Watch "getting Nulpointer in xml file parsing" New topic
Author

getting Nulpointer in xml file parsing

sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
this is my main activity



i am getting nullpointer exception at below line.



below is the xml my file



i am getting whole xml file in below line

Steve Luke
Bartender

Joined: Jan 28, 2003
Posts: 3934
    
  17

sam liyanage wrote:i am getting nullpointer exception at below line.

Past the actual stack trace. A null pointer exception always happens for the same reason: a variable you are dereferencing on a line doesn't point to an Object. You are not dereferencing any variables on that line, so that line can not be the line actually causing the exception.
sam liyanage
Ranch Hand

Joined: Nov 25, 2008
Posts: 1031
Thanks Steve.Problem solve now.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting Nulpointer in xml file parsing
 
Similar Threads
how to pass a String which contain xml data
what is this UnknownHostException(mssql server 2008r2)
Parsing String which comes as xml
How to connect to the internet behind proxy ?
i am getting HttpHostConnectException