We're updating the issue view to help you get more done. 

Expose sun.rmi.server.LoaderHandler exceptions in SystemBoot

Description

Our LifeX Application was deployed to a 4 Host environment.
One of the host is shutdown (PDM-LXMSS-02) and started again after 5 minutes.
GSA tries to start GSC, LUS and GSM as usual but they cannot register to the rest of the cluster, because sun.rmi.server.LoaderHandler seems to be broken.

Found a class in xap-core/xap-common/src/main/java/com/gigaspaces/start/SystemBoot$RmiLoaderHandlerCleaner which forces sun.rmi.server.LoaderHandler to be loaded into the classloader, but it does swallow all Throwables. It would be nice if this happens to at least log out the error and/or end the process.
Happens with 12.1.0 and 12.1.1

public RmiLoaderHandlerCleaner() {
try {
loaderHandlerClass = this.getClass().getClassLoader().loadClass("sun.rmi.server.LoaderHandler");
refQueueField = loaderHandlerClass.getDeclaredField("refQueue");
refQueueField.setAccessible(true);
loaderTableField = loaderHandlerClass.getDeclaredField("loaderTable");
loaderTableField.setAccessible(true);
} catch (Throwable e) {
// do nothing
}
}

Workaround

None

Acceptance Test

None

Status

Assignee

Unassigned

Reporter

Yuval Dori

Labels

Priority

Minor

SalesForce Case ID

None

Fix versions

None

Commitment Version/s

None

Due date

None

Product

None

Edition

None

Platform

All