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

コマース ゲスト チェックアウト: 国と地域のドロップダウンに「未定義」と表示される

written-by

Sorin Pop

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

問題

  • ゲストとして注文をチェックアウトすると、チェックアウト ページの国と地域のドロップダウンが間違って入力され、すべての国/地域名が「未定義」と表示されます

Environment

  • コマース 2.1.1
  • DXP 7.1

解決策

  • 問題は、この情報を取得するために使用されるメソッドが サービス アクセス ポリシーに追加されていないことです。
  • 国の問題:
    {"例外":"com.liferay.commerce.service.CommerceCountryService#getShippingCommerceCountriesByChannelId へのアクセスが拒否されました","throwable":"java.lang.SecurityException: com.liferay.commerce.service へのアクセスが拒否されました.CommerceCountryService#getShippingCommerceCountriesByChannelId","エラー":{"メッセージ":"com.liferay.commerce.service.CommerceCountryService#getShippingCommerceCountriesByChannelId へのアクセスが拒否されました","type":"java.lang.SecurityException"}}

    地域問題:
    {"例外":"com.liferay.commerce.service.CommerceRegionService#getCommerceRegions へのアクセスが拒否されました","throwable":"java.lang.SecurityException: com.liferay.commerce.service.CommerceRegionService へのアクセスが拒否されました#getCommerceRegions","エラー":{"メッセージ":"com.liferay.commerce.service.CommerceRegionService#getCommerceRegions へのアクセスが拒否されました","type":"java.lang.SecurityException"}}
  • したがって、これらのメソッド (またはパッケージ全体) をサービス アクセス ポリシーに追加/有効にすると、ドロップダウンが適切に設定されます。

did-this-article-resolve-your-issue

legacy-knowledge-base