Hi I'm working on a multi threaded project that create about 200
simltaneous threads.
For each thread i have a mina connection to a server.
And sometimes when retrieving the response, the object response is null
Object response = null;
session.write(frame);
if (frame.isWaitForResponse()) {
ReadFuture read = session.read();
try {
read.await(collectorResponseTimeOut);
} catch (InterruptedException e) {
e.printStackTrace();
}
response = read.getMessage();
it stoped to be null when i added
response.getClass();
at the end, just after response = read.getMessage();
Then no more null objects.
Does anyone knows why ?
Thanks