Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1125

Google App Engine support: ClassLoader.getSystemClassLoader() throws exception

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 7.0.0.Beta1
    • None
    • core engine
    • None

      Class org.kie.internal.utils.ChainedProperties
      Every call to get the System Class Loader

      confClassLoader = ClassLoader.getSystemClassLoader(); (i.e. lines 133, 169)

      raises an exception.

      Todo: figure out which particular exception.

            [DROOLS-1125] Google App Engine support: ClassLoader.getSystemClassLoader() throws exception

            Mario Fusco <mfusco@redhat.com> changed the Status of bug 1329093 from ASSIGNED to MODIFIED

            RH Bugzilla Integration added a comment - Mario Fusco <mfusco@redhat.com> changed the Status of bug 1329093 from ASSIGNED to MODIFIED

            Geoffrey De Smet <gdesmet@redhat.com> changed the Status of bug 1329093 from NEW to ASSIGNED

            RH Bugzilla Integration added a comment - Geoffrey De Smet <gdesmet@redhat.com> changed the Status of bug 1329093 from NEW to ASSIGNED

            Mario Fusco added a comment -

            Mario Fusco added a comment - Fixed by https://github.com/droolsjbpm/droolsjbpm-knowledge/commit/fdd589fbf

            Looks like it needs to by a try-catch of RuntimeException (or even AccessControlException).
            From a stackoverflow question (also confirmed by user):

            java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)
                at java.security.AccessControlContext.checkPermission(AccessControlContext.java:355)
                at java.security.AccessController.checkPermission(AccessController.java:567)
                at java.lang.SecurityManager.checkPermission(Unknown Source)
                at com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission(CustomSecurityManager.java:45)
                at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
            

            Geoffrey De Smet (Inactive) added a comment - - edited Looks like it needs to by a try-catch of RuntimeException (or even AccessControlException). From a stackoverflow question (also confirmed by user): java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:355) at java.security.AccessController.checkPermission(AccessController.java:567) at java.lang. SecurityManager .checkPermission(Unknown Source) at com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission(CustomSecurityManager.java:45) at java.lang. ClassLoader .getSystemClassLoader(Unknown Source)

              mfusco@redhat.com Mario Fusco
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: