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());
}
}