Hello,
I post this message in the forum and i made my own tests.
My original message :
I want to use VTD in a multhreading context. I parse an XML document and then i instanciate >some AutoPilot to perform XPath. That works fine except in some obscure cases.
For exemple, i apply this process on several files, the first step is to check that the root >element is correct. Sometimes that fails, and never on the same file.
I checked my code a long time but i didn't find error.
I looked VTD source code and i saw two static members in AutoPilot(line 52/75) and >AutoPilotHuge(line 50/66). I don't understand this static members. Furthermore, one is set in >constructors, the other one in namespaces declaration, and both without any synchronization >mechanism.
I omitted to say that i always use namespace in my xpath evaluations.
Then i rewrite code to remove the static attributes and that solves my problem.
I think this is a mistake.
Thanks
I think this is a bug that has been fixed in v2.11, can you verify?
The bug has not been fixed, my tests was made with v2.11 :-(
Hi Rainette, Did you rewrite the AutoPilot class without static members?
Last edit: NARASIMHA 2017-10-15
Hi Narasimha, yes i did this bad thing to copy/paste the code and removed the static attribute. I used Maven and i didn't want to rewrite and repackage the libraray so i put my fixed class in the a package named exactly as it is in the library. So the classloader use it insteaf of the original one. That's did the job...
PS : sorry for my english :-(
Yes, this is indeed a bug like you described and it is fixed in 2.12 and 2.13
No this bug is not fixed in 2.13 also.still it is creating problem with mulitthread environment with version 2.13
It will be fixed in the next release!!
May I know when is going to have next release?
Last edit: NARASIMHA 2017-10-15
I'm also facing the same issue when I'm doing the load test with mutiple threads. The same request is failing if I increase the threads and ppoin of error is at Autopilot class. I haven't fixed yet.