String Index out bound exception : 34

Discussion in 'Java' started by Sanjeev, Jun 30, 2008.

  1. Sanjeev

    Sanjeev Guest

    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
    Sanjeev, Jun 30, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sunil panda

    Lower bound & Upper bound

    sunil panda, Dec 25, 2003, in forum: Java
    Replies:
    9
    Views:
    7,219
    thushara wijeratna
    Oct 7, 2008
  2. Rhiner Dan
    Replies:
    1
    Views:
    738
    Mike Wahler
    Mar 27, 2005
  3. Mario Krsnic
    Replies:
    0
    Views:
    369
    Mario Krsnic
    Jun 23, 2006
  4. venkatesh

    question about array out of bound index

    venkatesh, Apr 27, 2006, in forum: C Programming
    Replies:
    13
    Views:
    439
    Rod Pemberton
    May 4, 2006
  5. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    271
    Tomasz Chmielewski
    Mar 4, 2008
Loading...

Share This Page