Added try/catch around creating remote objects
This commit is contained in:
parent
1de96ae769
commit
e8b47df493
|
@ -1089,8 +1089,12 @@ class ConnectionImpl extends ChannelInboundHandlerAdapter implements ICryptoConn
|
||||||
callback = rmiRegistrationCallbacks.remove(remoteRegistration.rmiID);
|
callback = rmiRegistrationCallbacks.remove(remoteRegistration.rmiID);
|
||||||
}
|
}
|
||||||
|
|
||||||
//noinspection unchecked
|
try {
|
||||||
callback.created(remoteObject);
|
//noinspection unchecked
|
||||||
|
callback.created(remoteObject);
|
||||||
|
} catch (Exception e) {
|
||||||
|
logger.error("Error getting remote object " + remoteObject.getClass() + ", ID: " + rmiID, e);
|
||||||
|
}
|
||||||
|
|
||||||
// tell the client that we are finished with all RMI callbacks
|
// tell the client that we are finished with all RMI callbacks
|
||||||
rmiCallbacksNotifyIfEmpty();
|
rmiCallbacksNotifyIfEmpty();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user