This article is a legacy article. It applies to previous versions of the Liferay product. While the article is no longer maintained, the information may still be applicable.
With "liferay-fix-pack-plugin-deployment-1-6120.zip" installed an error occurs while trying to access http://localhost:8080/c/portal/saml/metadata". When attempting access, "Internal Server Error" occurs in the page and the following exception is shown in the logs:
org.opensaml.saml2.metadata.provider.MetadataProviderException:java.lang.NullPointerException
Resolution
- Shutdown the Liferay Server.
- Clear Work and Temp folders from $APP_SERVER_HOME
- Delete the SAML plugin directory from your webapps directory in $APP_SERVER_HOME
- Please add the following property to your portal-ext.properties in addition to the SAML properties referred to in the guide:
hot.deploy.listeners=\ com.liferay.portal.deploy.hot.PluginPackageHotDeployListener,\ \ com.liferay.portal.deploy.hot.ServletContextListenerHotDeployListener,\ \ com.liferay.portal.deploy.hot.SpringHotDeployListener,\ \ com.liferay.portal.deploy.hot.ExtHotDeployListener,\ com.liferay.portal.deploy.hot.HookHotDeployListener,\ com.liferay.portal.deploy.hot.LayoutTemplateHotDeployListener,\ com.liferay.portal.deploy.hot.PortletHotDeployListener,\ com.liferay.portal.deploy.hot.SocialHotDeployListener,\ com.liferay.portal.deploy.hot.ThemeHotDeployListener,\ com.liferay.portal.deploy.hot.ThemeLoaderHotDeployListener,\ \ com.liferay.portal.deploy.hot.MessagingHotDeployListener
- Obtain the Plugin Deployment 1 fixpack.
- Place the liferay-fixpack-plugin-deployment-1-6120 in the
/patching-tool/patches
folder. By default, thepatching-tool
folder is located within$LIFERAY_HOME
. - Run
patching-tool install
to install the patch and executepatching-tool info
to confirm. - Deploy the SAML portlet again
- Restart the server.
Attempt to access http://localhost:8080/c/portal/saml/metadata
The XML content should be shown now.
Additional Information
See LPS-25238
Subscriber Exclusive Content
A Liferay Enterprise Subscription provides access to over 1,500 articles that include best practices, troubleshooting, and other valuable solutions. Sign in for full access.
Sign In