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

serlvet exception  RSS feed

 
jyotsana dang
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what are the main causes behind a javax.servlet.serlvetException? And what are the remedies for the same?
 
S Chandra Mohan
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
Are u asking about the errors being thrown in general by a servlet or exactly the servlet exceptions.
 
jyotsana dang
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was asking specifically about the servlet exceptions that are thrown in..
like in a jsp page..at times we get a javax.servlet.serlvetException:null..
what are the possible causes and remedies for the same.
tkx and wishing u also a thrilling day ahead!
jyotsana
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are as many possible causes for a servlet exception as there are causes for any type of exception. In particular, ServletException is used as a "wrapper" exception. If any of the code your servlet or JSP uses throws an exception (of any sort), that exception is "wrapped" in a ServletException for processing by the container.
I suggest you print out the stacktrace associated with your servlet exception, and see what it tells you.
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess any exception being thrown out of a Servlet can be looked upon as a Servlet exception in the conceptual sense. Even in the class hierarchy, it is a child of Exception. The thing that is not clear to me is, how is this going to matter (being a ServletException, explicitly) to the client invoking the servlet, if he is going to print the stack trace anyway. Why not simply an excepion? Does the ServletException object have any special methods to package more information about the Servlet that threw it?
 
jyotsana dang
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when i try submitting a jsp page to it gives me a javax.servlet.servletException..
what should we do to remedy the same?
 
Krishna Mohan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jyotsana..is it possible to give some more details.
Like the stack trace or may be your code snippets ..
~Krishna
[ December 26, 2003: Message edited by: Krishna Mohan ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!