I am developing an mobile application using j2me.In that i am using kxml parser.In my application i have to call an url to get the data.When i am calling that url sometimes it showing:
java.lang.IllegalStateException: update of non-existent node Exception.
My sample code is:
InputStreamReader isr=null;
InputStream rssStream=null;
InputStream is = null;
HttpConnection conn=null;
try
{
conn = (HttpConnection)Connector.open(rssUrl);
rssStream = conn.openInputStream();---------->I think exception is shown here.
isr = new InputStreamReader( rssStream );
parser.setInput(isr);
parser.nextTag();
Better you replace the code
with the following code
Then try it.