Menu

#4 Issue with Autopilot and multithreading

2.0
pending
nobody
None
2017-10-14
2014-12-08
Rainette
No

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

Discussion

  • jimmy zhang

    jimmy zhang - 2014-12-13

    I think this is a bug that has been fixed in v2.11, can you verify?

     
  • Rainette

    Rainette - 2014-12-15

    The bug has not been fixed, my tests was made with v2.11 :-(

     
    • NARASIMHA

      NARASIMHA - 2017-10-14

      Hi Rainette, Did you rewrite the AutoPilot class without static members?

       

      Last edit: NARASIMHA 2017-10-15
      • Rainette

        Rainette - 2017-10-18

        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 :-(

         
  • jimmy zhang

    jimmy zhang - 2016-06-13

    Yes, this is indeed a bug like you described and it is fixed in 2.12 and 2.13

     
  • jimmy zhang

    jimmy zhang - 2016-06-14
    • status: open --> pending
     
  • Ramesh

    Ramesh - 2016-12-09

    No this bug is not fixed in 2.13 also.still it is creating problem with mulitthread environment with version 2.13

     
  • jimmy zhang

    jimmy zhang - 2017-09-13

    It will be fixed in the next release!!

     
    • NARASIMHA

      NARASIMHA - 2017-10-14

      May I know when is going to have next release?

       

      Last edit: NARASIMHA 2017-10-15
  • NARASIMHA

    NARASIMHA - 2017-10-14

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.