my dog learned polymorphism
The moose likes Servlets and the fly likes HTTP response code 500 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTP response code 500" Watch "HTTP response code 500" New topic

HTTP response code 500

Siddharth Ramavat
Ranch Hand

Joined: Feb 03, 2005
Posts: 41
When i was trying to call servlet from my java application in swing it shows me IOException and HTTP response code 500...

Can anybody tell me what is that and why it has occured...?

Thank You
Siddharth Ramavat
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

500 means 'Something went wrong in you servlet', it is usually accomonied by another exception, the one which actually caused the error.
K Riaz
Ranch Hand

Joined: Jan 08, 2005
Posts: 375
Its an error on the server side, try posting your servlet code using the CODE tag.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
in other words, your application didn't call the servlet correctly causing it to explode in your face and/or the servlet has a bug (you could say that not handling erroneous requests gracefully could be a bug if the servlet was exposed to the outside world).

I agree. Here's the link:
subject: HTTP response code 500
It's not a secret anymore!