[jdom-interest] JDOM/Xerces: Thread Safe
New, Cecil (GEAE)
cecil.new at ae.ge.com
Fri Oct 31 08:03:51 PST 2003
We have a number of apps that use some common JDOM/Xerces code. We have
seen periodic failures and our testing points to some sort of
Weblogic 5.1 on Sun OS
Using DOM Parser
Some findings might help:
(note:parser instance is different in each thread)
(1) set validation to false ... seems to work fine with threads. However,
we don't consider this a viable solution or workaround :-)
(2) if each thread parses the same xml ... all threads fail invariably ..
gives a "duplicate element " kind of exception
If i print the Document from memory, sometimes it prints all the files
properly, sometimes more than 1 fail.
(3) if each thread parses a differnt xml
Seems to pass ... if the xml is small ... fails erratically sometimes with
Thanks for your help!
More information about the jdom-interest