Modify error log format
Delete unnecessary try catch
Add InvocationTargetException test