I can not directly modify the Java code by any means.
However, I have a steady exception, and I want to apply a try
- catch
to it.
Is this possible with the jvm option?
The short answer is: No. It isn't possible.
If you want to catch an exception you need to modify the code to do it.
If that option is not available, contact the people who supplied / sold you the product and discuss possible workarounds with them:
If that doesn't work, and you are truly desperate, it might be possible to reverse engineer the code and modify it to handle the exception. However, this approach has various risks. But bear in mind that you are modifying the code.
I can think of a few reasons why such an option does not exist / has not been implemented.
Such a modification (injection of a catch
for an unwanted exception) changes the behavior the application. That is unsafe / dangerous, and making it less dangerous is likely to be difficult.
The technically correct solution is most likely change the program, or the way that you are using it.
There would be potential business risks to Oracle if they implemented such a feature.