Steve
rohit chavan wrote:The document is being parsed only once per thread. (which we can call as set() operation)
I am further checking if this has anything to do with the heap-space settings, though I am not getting any out-of-memory error, I wonder if this can be the reason.
Steve
Steve Luke wrote: If you want to use the same document and its data in multiple threads I think you should create a very robust testing scheme where you can detect when incorrect values are retrieved.
William Brogden wrote:I would certainly be using the getLength() method of NodeList - when it indicates an empty list you can investigate. Much preferable to looking at an NPE.
Bill
Steve
Steve Luke wrote:
This inconsistency is what makes me believe he is still not synchronizing all the access correctly, or he would be better off with copies of the document, rather than multiple views of a single instance.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |