I have Windows Desktop application based on Java.
I have kept defaultuncaughtexceptionahandler and shutdown hook in my application.
I have some user called exit points like , user clicks on exit, some error conditions etc. All the user exit points have proper logs which will be followed by the log in shutdown hook.
Now for one of my user the application is getting exited from time to time . here user is not calling any user exit points. Shutdown hook logs are printed. There is no exception from defaultuncaughtexception handler.
I am not able to find who calls the system.exit and hence the shutdown hook . Can i somehow find what calls the shutdown hook or system.exit () ? Printing of shutdown hooks makes me think that is a proper jvm shutdown not an abrupt one.
Best Regards, Saurav