having trouble with SAX Parser and multiple threads 2003-02-12 - By MOLNAR,ANGELA (HP-SanDiego,ex1)
Hi,
I'm spawning a bunch of threads from my main application, and each thread creates its own instance of a SAXParserFactory, a SAXParser, and an XMLReader. Each thread then gets handed different xml files to parse. My problem is I'm getting NullPointerException errors during the parsing phase (in the SAXParser.parse call). The errors seem random - they appear in one or two threads some of the time with different files, and it's not giving me a stack trace (I don't get the errors when I run it in my development environment). All of the files that I'm testing with are valid files.
Are there some static elements in the SAXParser, SAXParserFactory, or XMLReader? Is there something in the Xerces implementation that wouldn't allow me to have multiple independent SAXParser, SAXParserFactory, or XMLReader objects in different threads parsing different files?
Thanks, Angela
--------------------------------------------------------------------- To unsubscribe, e-mail: xerces-j-user-unsubscribe@(protected) For additional commands, e-mail: xerces-j-user-help@(protected)
|
|