Record a log and report InvocationTargetException: null exception

Record a log and report InvocationTargetException: null exception

Code Nong Wuyu: Troubleshooting BUG is like a detective handling a case, looking for defects in clues, and ultimately there is only one truth. . . Garbage needs! ! ! Rubbish test! ! ! Anyway, it has nothing to do with our development. Throw it away! ! !

Without further ado, let’s get down to business!

Ape Love Tips:

When
you
check
out the suspected ape
, then look down . _ _








  1. There may be a problem with the JDK version when opening the war package, try to open the package again~
  2. A NullPointerException was caught inside the method! Don't be so surprised why the log does not output NullPointerException! Look back at try{}catch{Is there a throw in it?} Boy!

Bloody case:

HashMap transferred to HashTable and reported a null pointer. The reason: HashTable is not allowed to have a value of null!

Guess you like

Origin blog.csdn.net/qq_37980551/article/details/103184257