[Solved] Netty how to test Handler which uses Remote Address of a client

Two things that could help: Do not annotate with @ChannelHandler.Sharable if your handler is NOT sharable. This can be misleading. Remove unnecessary state from handlers. In your case you should remove the remoteAddress member variable and ensure that Gson and CarParkPermissionService can be reused and are thread-safe. “Your remote address is embedded” is NOT an … Read more