This content has been marked as final. Show 3 replies
Run it in a debugger.
lkr wrote:You could use AspectJ to add logging, but a simple thread dump can give you information on blocked threads.
I had a terrible experience recently. There was a Java class which creates some reports and uses some libraries also. This program was developed very primitively and exceptions not handled properly. Last time I observed that program is running and but no output and but no error prompted. (because exception was catched but not handled no even a system out).
So I would like to know any method or technique to trace the situation of class execution and find what operations are blocked
Or add logging manually. Myself I prefer log4j versus what is in the java API.