String Index out bound exception : 34
- From: Sanjeev <sanjeev.atvankar@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 05:50:37 -0700 (PDT)
dear gurus
i m reading XML file in the form of string.
below is the code.
private void parseDocument(String receivedMessage) {
//get a factory
SAXParserFactory spf = SAXParserFactory.newInstance();
try {
//get a new instance of parser
SAXParser sp = spf.newSAXParser();
//parse the file and also register this class for call backs
sp.parse(new InputSource(new
ByteArrayInputStream(receivedMessage.getBytes())), this);
}catch(SAXException se) {
}catch(ParserConfigurationException pce) {
}catch (IOException ie) {
}
}
In this code i m getting error on line started with "sp.parse(..."
could any one help why i m getting this error..
thanking in advance
Regards
Sanjeev
.
- Follow-Ups:
- Prev by Date: Re: J2EE Weblogic Developer required for IBM partner at Kuwait
- Next by Date: Re: J2EE Weblogic Developer required for IBM partner at Kuwait
- Previous by thread: J2EE Weblogic Developer required for IBM partner at Kuwait
- Next by thread: Re: String Index out bound exception : 34
- Index(es):