• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Connection reset by peer:JVM_recv in socket input stream read

 
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).]
 
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic