facebook

out of synch error

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #245292 Reply

    I have a j2ee app and all I’m doing is calling a function in a servlet. In this function I’m adding things to a vector. When I run the servlet as java app it works fine. But when Its deployed I get an out of synch error. It happens everytime I try and add a particular element (just a string) to a vector. I know the element exists and the servlet works fine but when I go through the jsp and call the servlet it causes and out of synch error and everything just suspends. Odd thing is both the tempDesc and tempSetString come from identical string vectors…created the same way and everything. anyone know why this is?

    for(int j=0;j<dataBaseStringss.size(); j++)
    {
    tempdataBaseStrings = (String)dataBaseStringss.elementAt(j);

    if(j==0)
    {
    throws the error when I add this –> holdMembers.add(tempDesc);
    holdMembers.add(tempSetString);
    }

    if(tempSetString.equals(tempdataBaseStrings.substring(0,tempdataBaseStrings.indexOf(“,”))))
    {
    holdMembers.add((tempdataBaseStrings.substring(tempdataBaseStrings.lastIndexOf(“,”)+1, tempdataBaseStrings.length())).trim());
    }

    }

    #245295 Reply

    Got if working by moving the add statements and changing a few things, still don’t know what causes the error though. Would be nice to have an idea of what exactly I’m doing wrong.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: out of synch error

You must be logged in to post in the forum log in