3 Replies Latest reply on Jun 17, 2016 4:35 PM by john.decker

    Search NullPointerException related to entitlement check

    mr23bean

      We are on Jive SBS 8.0.3.0 and receive this exception in sbs.log for searches:

       

      NullPointerException

        at com.jivesoftware.community.entitlements.container.DelegatingContainerEntitlementCheckProvider.getEntitlementCheckProvider(DelegatingContainerEntitlementCheckProvider.java:53)
        at com.jivesoftware.community.entitlements.container.DelegatingContainerEntitlementCheckProvider.checkEntitlements(DelegatingContainerEntitlementCheckProvider.java:49)
        at com.jivesoftware.community.impl.EntitlementCheckHelper.isEntitled(EntitlementCheckHelper.java:172)

        at com.jivesoftware.community.project.entitlements.ProjectContainerEntitlementCheckProvider.checkEntitlements(ProjectContainerEntitlementCheckProvider.java:62)

        at com.jivesoftware.community.entitlements.container.DelegatingContainerEntitlementCheckProvider.checkEntitlements(DelegatingContainerEntitlementCheckProvider.java:49)
        at com.jivesoftware.community.impl.EntitlementCheckHelper.isEntitled(EntitlementCheckHelper.java:172)

        at com.jivesoftware.community.impl.EntitlementCheckHelper.isEntitled(EntitlementCheckHelper.java:158)
        at com.jivesoftware.community.impl.BaseEntitlementProvider.isEntitled(BaseEntitlementProvider.java:234)
        at com.jivesoftware.community.impl.ForumMessageEntitlementProvider.isEntitled(ForumMessageEntitlementProvider.java:327)

        at com.jivesoftware.community.impl.ForumMessageEntitlementProvider.handlerView(ForumMessageEntitlementProvider.java:173)

        at com.jivesoftware.community.impl.ForumMessageEntitlementProvider.isUserEntitled(ForumMessageEntitlementProvider.java:122)

        at com.jivesoftware.community.impl.ForumMessageEntitlementProvider.isUserEntitled(ForumMessageEntitlementProvider.java:1)

        at com.jivesoftware.community.aaa.authz.CountingEntitlementProvider.isUserEntitled(CountingEntitlementProvider.java:46)

        at com.jivesoftware.community.aaa.authz.EntitlementTypeProviderImpl.isUserEntitled(EntitlementTypeProviderImpl.java:114)

        at com.jivesoftware.community.aaa.authz.EntitlementTypeProviderImpl.doQuickContainerCheck(EntitlementTypeProviderImpl.java:458)

        at com.jivesoftware.community.aaa.authz.EntitlementTypeProviderImpl.filterByContainer(EntitlementTypeProviderImpl.java:313)

        at com.jivesoftware.community.aaa.authz.EntitlementTypeProviderImpl.filterUserEntitled(EntitlementTypeProviderImpl.java:291)

        at com.jivesoftware.community.aaa.authz.EntitlementTypeProviderImpl.filterUserEntitledWithQuickCheckOnly(EntitlementTypeProviderImpl.java:282)

        at com.jivesoftware.community.search.SearchQueryManagerImpl.performQuickPermCheck(SearchQueryManagerImpl.java:231)

        at com.jivesoftware.community.search.SearchQueryManagerImpl.access$0(SearchQueryManagerImpl.java:207)

        at com.jivesoftware.community.search.SearchQueryManagerImpl$1.apply(SearchQueryManagerImpl.java:138)

        at com.jivesoftware.community.search.SearchQueryManagerImpl$1.apply(SearchQueryManagerImpl.java:1)

       

       

      It seemed to sometimes happen and sometimes not but now it appears to be happening more/almost always.  We've tried clearing caches - any other thoughts on what might be going on or things we can try?

        • Re: Search NullPointerException related to entitlement check

          Hi Joe,

          Is this limited to spotlight search and/or Full search? When you search for content, is anything returned? By understanding the front-end impact, we can look at possible causes. Additionally, is that the full stack trace? Do you see any Errors or Caused By statements?

          • Re: Search NullPointerException related to entitlement check
            mr23bean

            I believe we are just using spotlight search (search in the upper right).  Nothing is returned - the UI says 'Error Retrieving Results'.  The contents?filter= call returns a 500 error.  The stacktrace above is the end of the 'Caused by' statements with some stuff cut off - had to type it all in =-(.  Aside from some google/jive calls for iteration below that stack there's also:

             

            at com.jivesoftware.api.core.v3.providers.SearchProvider.searchContent(SearchProvider.java:293)
            at com.jivesoftware.api.core.v3.services.SearchService.searchContents(SearchService.java:277)

             

            if that helps at all.  An earlier 'Caused by' is just org.apache.cxf.interceptor.Fault.

            1 person found this helpful
              • Re: Search NullPointerException related to entitlement check

                Hi Joe,

                If you are consistently unable to search for items, I would recommend rebuilding the content search index. This can take several hours to complete so you might consider starting it in the evening and check back the next morning. If rebuilding the search index does not resolve it, I would recommend creating a case in your Private support group aka MyJive Group, this way Support can pull in the search and take a deeper look at your environment.

                1 person found this helpful