We have two separate micro services. One of them publishes a command which is being handled by a command handler present in the other micro service. In case the command handler faces any errors (NullPointerException, SQLException etc), the stack trace shows the following :
An error was thrown by the remote message handling component: java.lang.NullPointerException: null
It gives the stack trace for the micro service which publishes the command using the command Gateway. I cannot share the code or the entire stack here as it is in my companys system. Is there a way in which we can get the entire stack trace for the command handler?