問題
CommerceNotificationHelper
サービスを使用して通知を送信しようとすると、以下のようになります:_commerceNotificationHelper.sendNotifications(commerceOrder.getGroupId(),
commerceOrder.getUserId(),
RequestReceivedNotificationTypeImpl.KEY,
commerceOrder);- 次の例外がスローされる:
java.lang.NullPointerException: null
at com.liferay.commerce.internal.order.term.contributor.ObjectRecipientCommerceDefinitionTermContributor.getFilledTerm(ObjectRecipientCommerceDefinitionTermContributor.java:99) ~[?:?]
at com.liferay.commerce.notification.internal.util.CommerceNotificationHelperImpl._formatString(CommerceNotificationHelperImpl.java:173) ~[?:?]
at com.liferay.commerce.notification.internal.util.CommerceNotificationHelperImpl._sendNotification(CommerceNotificationHelperImpl.java:225) ~[?:?]
at com.liferay.commerce.notification.internal.util.CommerceNotificationHelperImpl.sendNotifications(CommerceNotificationHelperImpl.java:85) ~[?:?] - そして、コマース通知は作成されない。
Environment
- Liferay DXP 7.4
解決策
- この問題は COMMERCE-10036によって対処されている。
- この問題を解決するには、 Liferay DXP 7.4 Update 46+ にアップデートしてください。
追加情報
会員限定記事
Liferay エンタープライズ サブスクリプションをお持ちのお客様は1500件を超えるベストプラクティス、トラブルシューティング、その他のソリューション記事を閲覧できます。ログインすると、記事全体をお読みいただけます。
ログイン