Uploaded image for project: 'InsightEdge Platform'
  1. GS-13282

Expose sun.rmi.server.LoaderHandler exceptions in SystemBoot

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: None
    • Labels:
    • Platform:
      All
    • Sprint:

      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
                  }
              }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Yuvald Yuval Dori (Inactive)
              Participants of an issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: