Hello:

The FAQ[1], declares xerces DOM implementation is not thread safe. I guess this is because of the Deferred DOM implementation.

I have in fact observed runtime exceptions[2] with xerces 2.7, 2.8 when accessing methods that traverse the DOM concurrently without synchronization.

Is the xerces DOM implementation still not thread safe even after setting the Feature "http://apache.org/xml/features/dom/defer-node-expansion to false ?

I would appreciate if the users on this list shared their experiences of using xerces DOM in a multi-threaded scenario.

Thanks
-Prashant


[1]: http://xerces.apache.org/xerces2-j/faq-dom.html#faq-1

[2] : Caused by: java.lang.IllegalArgumentException: type: -1
at org.apache.xerces.dom.DeferredDocumentImpl.getNodeObject(Unknown Source) at org.apache.xerces.dom.DeferredDocumentImpl.synchronizeChildren(Unknown Source) at org.apache.xerces.dom.DeferredElementImpl.synchronizeChildren(Unknown Source) at org.apache.xerces.dom.ParentNode.getFirstChild(ParentNode.java:226)
       ... 11 more

Caused by: java.lang.NullPointerException
at org.apache.xerces.dom.ParentNode.nodeListGetLength(Unknown Source)
at org.apache.xerces.dom.ParentNode.getLength(Unknown Source)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to