I have a servlet which does some calculation on address.This calculation had a SAX parser inside it.
I want to present this servlet as a service.
I called this servlet using URLConnection.
During my testing i created a runnable class, which actually calls the servlet using the URLConnection from its run method.
I created some 10 threads and called the run method. When i did this i got a lot of inconsistent errors... for some threads i got correct output, for some thread i got stream closed erroe, for some threads i got no output, Some threads hanged and it restarted the web server
I am not able to figure out the problem. kindly give me a solution to this........