File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Connection reset by peer:JVM_recv in socket input stream read Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Connection reset by peer:JVM_recv in socket input stream read" Watch "Connection reset by peer:JVM_recv in socket input stream read" New topic
Author

Connection reset by peer:JVM_recv in socket input stream read

Amit Roy
Ranch Hand

Joined: Oct 10, 2000
Posts: 132
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

my login is always showing "please try again"
ie Login Unsucessful even if the username and password r write.
Amit

[This message has been edited by Amit Roy (edited January 21, 2001).]


<I>Chance Favours the Prepared minds"</I>
Sagar Sharma
Ranch Hand

Joined: Aug 31, 2000
Posts: 92
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

Joined: Oct 10, 2000
Posts: 132
Thanks Sagar actually the problem i think was with the servletrunner which i was using my servlet is running fine with Java Web Server
Amit
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Connection reset by peer:JVM_recv in socket input stream read