Connection reset by peer:JVM_recv in socket input stream read

hi friends , I am making a servlet to verify username and password from a oracle database.I have a table in oracle named "login1" with just 2 rows 1 is to store username and the other is to store password i am trying login using a html page with 2 text boxes but when i compare the value obtained from the table using(rs.getString(1) and rs.getString(2)) with the values obtained from the textboxes using request.getParameter it is always returning false i am getting the following exception at runtime after i press the submit button

"java.net.SocketException:Connection reset by peer:JVM_recv in socket input stream read at java.net.SocketInputStream.socketRead(Native Method) " and many more lines below can any one pls suggest a remedy Here is the entire code i have written

Your code looks fine and I assume that your database hase 2 columns and not rows as specified by you. Ensure that you are calling the correct parameter and that is varchar in the RDBMS. Also check for the user-ID and password that u r supplying and if it really exists in the database.

come back again if the problem persists.

cheers

sagar

Amit Roy

Ranch Hand

Posts: 132

posted 17 years ago

Thanks Sagar actually the problem i think was with the servletrunner which i was using my servlet is running fine with JavaWeb Server Amit