|
Re: NullPointer Exception at ServiceTunnelResponse [message #1848624 is a reply to message #1848577] |
Fri, 10 December 2021 03:18  |
Eclipse User |
|
|
|
The nature of this kind of problem is difficult to assess from the outside. My approach would be to analyse the state using break points.
First, identify which element on this specific line is null. Is it "serviceResponse", "serverRunContext" or "serverRunContext.getClientNotificationCollector()".
Then ask yourself, how can this be null? Where does this object come from, and who else could update its value? For example, "serverRunContext" is created by createServiceTunnelRunContext(). By looking at the default implementation you can see that the result can never be null. If it is stil null at runtime, there is probably another implementation of this method. Due to the dynamic nature of dependency injection (@Bean etc.), the code at runtime can be different.
It usually helps if you have a previous version of the application that does not have the problem. By setting up the break points at the right locations you should be able to compare the execution of both versions and find out where they differ.
Regards,
Beat
|
|
|
Powered by
FUDForum. Page generated in 0.03416 seconds