Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-1323

null pointer exception with inherited rule privilege and EL then clause

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.1, 2.3.0.patch
    • UI
    • None

    Description

      From: grouper-users-request grouper-users-request On Behalf Of Yoann Delattre
      Sent: Thursday, June 02, 2016 5:46 AM
      To: grouper-users
      Subject: Re: [grouper-users] Error when i want to view all inherited privileges in registry

      Hi,
      i did some debug.
      I think, it comes from findPrivilegeInheritRules and findSubjectPrivilegeInheritRules methods in RuleFinder class
      For example, in findPrivilegeInheritRules method at line 91, if we have thenEl instead of thenEnum, ruleDefinition.getThen().thenEnum() return null.
      Switch statement doesn't support a null case, i think that's why i have the error below.

      Hope it can help,
      thanks,
      Yoann.

      Le 03/05/2016 à 09:26, Yoann Delattre a écrit :
      Hi,
      in Grouper 2.3, when i click on Miscellaneous --> Inherited privileges, i get this error :

      the stack trace :
      2016-05-03 09:12:15,624: [http-bio-8080-exec-7] ERROR GrouperUiRestServlet.doGet(324) - - Problem calling reflection from URL: edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Main.globalInheritedPrivileges

      java.lang.NullPointerException: Problem calling method globalInheritedPrivileges on edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Main
      at edu.internet2.middleware.grouper.rules.RuleFinder.findPrivilegeInheritRules(RuleFinder.java:91)
      at edu.internet2.middleware.grouper.grouperUi.serviceLogic.UiV2Main.globalInheritedPrivileges(UiV2Main.java:1347)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at edu.internet2.middleware.grouper.util.GrouperUtil.invokeMethod(GrouperUtil.java:4113)
      at edu.internet2.middleware.grouper.util.GrouperUtil.callMethod(GrouperUtil.java:4064)
      at edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet.doGet(GrouperUiRestServlet.java:291)
      at edu.internet2.middleware.grouper.j2ee.GrouperUiRestServlet.doPost(GrouperUiRestServlet.java:163)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.owasp.csrfguard.CsrfGuardFilter.doFilter(CsrfGuardFilter.java:110)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at edu.internet2.middleware.grouper.ui.GrouperUiFilter.doFilter(GrouperUiFilter.java:1023)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
      thanks for your help

      Yoann Delattre

      Équipe SIAD (Systèmes d'Information et Aide à la Décision)
      DSI de l'académie de Lille (Direction des Systèmes d'Information)
      110 avenue Gaston Berger - 59000 Lille

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Smart Checklist