Sax Parser throwing ArrayIndexOutOfBoundsException ?

V

Vikas

Hi all
I am using a SAX parser and parsing a message using:
parse(new InputSource(new StringReader(SomeString)), new
DocumentHandler(Param2))

Now, I have put the above statement in a try-catch block and am
catching only SAXException and IOException.

During the parse of some message
java.lang.ArrayIndexOutOfBoundsException is being thrown.
************************************************************************
java.lang.ArrayIndexOutOfBoundsException
at org.apache.xerces.impl.XMLEntityManager$EntityScanner.scanData(Unknow
n Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanCDATASectio
n(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
Dispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
known Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at com.unisys.hig.MessageProcessor.run(MessageProcessor.java:452)
******************************************************************************

Any ideas why this might be happening ??
Did some read up and there were some suggestions that the problem
might be with the version of Xerces. Is this possible ?
Any input is welcome.

Thanks and Regards
Vikas
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,737
Latest member
Georgeengab

Latest Threads

Top