|
Problem |
If you call the same Xerces Document Object Model (DOM)
implementation from multiple threads, you are likely to receive the
following error:
java.lang.NullPointerException
at org.apache.xerces.dom.DeferredElementNSImpl.synchronizeData
(DeferredElementNSImpl.java:144) |
|
Cause |
The Apache Xerces DOM is not thread safe. Do not call
Apache Xerces DOM from multiple threads within the same process. This
restriction is documented in the Apache Xerces DOM Web site.
http://xml.apache.org/xerces2-j/faq-dom.html#faq-1 |
|
Solution |
You must supply the necessary locks within your
programming logic to prevent multiple threads from calling Apache Xerces
DOM concurrently. |
|