• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception Handling in Tomcat

 
James Winfrey
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys

We are using tomcat container.

We have a dao that throws custom application exception.

We call servlet1 after throwing exception.

Then servlet1 also throws an exception.

In the catch block in the servlet1 we can't get the new exception description.

How can we get that exception details.

Thanks
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4593
302
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Winfrey wrote:We call servlet1 after throwing exception.
.....
In the catch block in the servlet1 we can't get the new exception description.

Could you elaborate that?
 
Tom Reilly
Rancher
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your custom application exception implement Serializable?
 
preetha parasuraman
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you provide more information on the servlet1 class.
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4593
302
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"preetha vp" please check your private messages regarding an important administrative matter.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic