Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

http 500 error sometimes  RSS feed

 
Avinash venna
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have deployed a WAR file in my tomcat webapps and when i access a jsp page i am getting http 500 error and if i try to refresh it again i am getting the page.. if i refresh again i am getting error.. this inconsistency is being followed. please someone suggest what is the root cause for this..


Regards,
Avinash Venna.
 
Eduardo YaƱez Parareda
Ranch Hand
Posts: 93
IntelliJ IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A 500 HTTP error is an error in your code, in the JSP code or in the servlet that serves the page.

You have to read the stack trace exception shown below the 500 error. If sometimes it happens and sometimes not, it's some bug in your code, sometimes it happens... sometimes not , it's likely a param that first time doesn't have a value the next yes.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your browser has the "show friendly HTTP error messages" option set, it may not be showing all the information that was in the reply.

For MSIE, that option is reached from Internet Optione -> advanced - scroll down.

Bill
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!