i am using following import org.json.JSONArray
String name = "manjeet";
if (jsonArray.getJSONObject(i).get("name").equals(name))
{
jsonArray.remove(i);
}
if I am calling this code from main in a class it is working fine but when I am calling it from UI it is behaving differently.
it is able to get inside if but while executing .remove(i) it is giving
com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException
SEVERE: The exception contained within MappableContainerException could not
be mapped to a response, re-throwing to the HTTP container
java.lang.NoSuchMethodError: org.json.JSONArray.remove(I)Ljava/lang/Object;