Legacy Knowledge Base
Published Jun. 30, 2025

"Unable to get recent groups" error is thrown in the logs for Guest users with specific permission

Written By

Laura Li

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Liferay DXP 7.4 U92 starts up with the following error:
    ERROR [http-nio-8080-exec-2][RecentGroupManager:94] Unable to get recent groups
    java.lang.NullPointerException: null
    	at com.liferay.portal.security.permission.BasePermissionChecker.init(BasePermissionChecker.java:104) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.AdvancedPermissionChecker.init(AdvancedPermissionChecker.java:252) ~[portal-impl.jar:?]
    	at com.liferay.portal.security.permission.PermissionCheckerFactoryImpl.create(PermissionCheckerFactoryImpl.java:48) ~[portal-impl.jar:?]
    	at com.liferay.portal.kernel.security.permission.PermissionCheckerFactoryUtil.create(PermissionCheckerFactoryUtil.java:18) ~[portal-kernel.jar:?]
    	at com.liferay.site.util.RecentGroupManager.getRecentGroups(RecentGroupManager.java:113) ~[bundleFile:?]
    	at com.liferay.site.util.RecentGroupManager.getRecentGroups(RecentGroupManager.java:91) ~[bundleFile:?]
    	at com.liferay.product.navigation.site.administration.internal.display.context.SiteAdministrationPanelCategoryDisplayContext.isShowSiteSelector(SiteAdministrationPanelCategoryDisplayContext.java:453) ~[bundleFile:?]

 

Environment

  • Liferay DXP 7.4 Update 86+

 

Resolution

  • The error was caused by the Guest user granted the “View Site and Asset Library Administration” permission. After removing the permission from Guest user, the error won't occur.
    GuestPermission.png

Additional Information

  • LPS-195844 prevents the error happening even if the permission is accidentally granted to the Guest user.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base