legacy-knowledge-base
公開されました Jul. 2, 2025

メタデータにアクセスしようとすると、SAML プラグインが NPE を投げる

written-by

Brett Ripley

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

learn-legacy-article-disclaimer-text

この記事はレガシー記事です。 以前のバージョンのLiferay製品にも適用されます。 記事がメンテナンスされなくなったとはいえ、まだ該当する可能性があります。

liferay-fix-pack-plugin-deployment-1-6120.zip」をインストールした状態で、http://localhost:8080/c/portal/saml/metadata にアクセスしようとするとエラーが発生します。 アクセスしようとすると、ページ内で「Internal Server Error」が発生し、ログに以下のような例外が表示されます。

org.opensaml.saml2.metadata.provider.MetadataProviderException:java.lang.NullPointerException

決議

  1. Liferay サーバーをシャットダウンします。
  2. $APP_SERVER_HOMEから作業フォルダと臨時雇用フォルダをクリアする
  3. $APP_SERVER_HOMEのWebappsディレクトリからSAMLプラグインディレクトリを削除する。
  4. ガイドで参照した SAML プロパティに加えて、以下のプロパティを portal-ext.properties に追加してください。
    	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
    	    
  5. プラグイン展開1フィックスパックを入手します。
  6. liferay-fixpack-plugin-deployment-1-6120を /patching-tools/patches フォルダに置きます。 デフォルトでは、 のパッチツール フォルダは $LIFERAY_HOME内に配置されています。
  7. patching-tool install を実行してパッチをインストールし、 patching-tool info を実行して確認します。
  8. SAML ポートレットを再度デプロイする。
  9. サーバーを再起動します。

http://localhost:8080/c/portal/saml/metadataへのアクセスを試みます。

これでXMLの内容が表示されるはずです。

追加情報

LPS-25238を参照してください。

did-this-article-resolve-your-issue

legacy-knowledge-base