Posted By:
tech_tech
Posted On:
Tuesday, April 6, 2004 02:39 PM
Hi All, Recently I came across a weird issue where in getChildnodes call in xerces library was not thread safe. I have a small Servlet based application where in i had a xml document in every users session ( this is created by cloning a empty xml document ). So sometimes I see the call getchildNodes() was throwing ClonebinTree error. Does anyone know if its ok to use a XML document in session or is it not advisable. Does anyone know if getchildnodes or any other calls being not thread safe ??? I have done all checks in my servlet and at no point we have any xml as globally shared - e.g. static calls etc. But the GetChildNodes call in xerces seems to be statis and has a static member variable of document type. any he
More>>
Hi All,
Recently I came across a weird issue where in getChildnodes call in xerces library was not thread safe.
I have a small Servlet based application where in i had a xml document in every users session ( this is created by cloning a empty xml document ). So sometimes I see the call getchildNodes() was throwing ClonebinTree error.
Does anyone know if its ok to use a XML document in session or is it not advisable.
Does anyone know if getchildnodes or any other calls being not thread safe ???
I have done all checks in my servlet and at no point we have any xml as globally shared - e.g. static calls etc. But the GetChildNodes call in xerces seems to be statis and has a static member variable of document type.
any help is appreciated.
Thanks
<<Less