SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Robinson Francis wrote:But if there is any other exception type then it would be propagated to this method terminateDeal(.....)
which calls them and it is later caught by Exception e block (I guess).
My question now is how can I detrmine the type of error thrown if it is caught by Exception e catch block.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
I have split a few more lines for the same reason.Rob Spoor wrote: . . . lines that are too long in your code, as it will mess up the forum layout. I've split two lines to lessen this problem. . . .
Robinson Francis wrote:How do I determine where this exception is being thrown by the code? Is there any suggestion on finding out the exact location?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Robinson Francis wrote:Thank you for your opinion, the problem here is that this code is part of a EAI application. If the nullpointer exceptions occur once for a transaction, the transaction gets stuck that's where we get the stack trace. But the exception doesn't appear if we retrigger the transaction. So it seems intermittent.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Don't get me started about those stupid light bulbs. |