[EMAIL PROTECTED] wrote on 03/07/2006 12:42:55 PM: > If no nodes are being altered by any thread, and > deferred-node-expansion is turned off, is the xerces DOM concurrently > accessible from multiple threads?
No. For example, you will run into trouble with NodeLists. Internally they cache the length and previously accessed position to improve the performance of calls to getLength() and item(i). Invoking these methods from multiple threads (even on different NodeLists) without synchronizing your application code will lead to the exceptions [1] observed by Prashant. You can't count on the other read operations being thread-safe either. > Jeff Thanks. [1] Caused by: java.lang.NullPointerException at org.apache.xerces.dom.ParentNode.nodeListGetLength(Unknown Source) at org.apache.xerces.dom.ParentNode.getLength(Unknown Source) Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]