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

Liferay Push - 通知送信時に "Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $"を受信する

written-by

Alfonso Crisci

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 DXPで json Liferay Push通知を送信する場合 -> 設定 -> Push通知 -> テスト , ポータル管理者は、このような操作に失敗して以下のエラーが表示されることがあります。
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
    ERROR [liferay/push_notification_response-1][PushNotificationsResponseMessageListener:41] {"payload":null,"javaClass":"com.liferay.push.notifications.sender.BaseResponse","id":null,"platform":"firebase","status":"java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $","succeeded":false,"token":null}

環境への配慮

  • ライフレイDXP 7.0

決議

  • 構文に注目するのではなく、他の要素がエラーの原因となっていることを示しています: 例: 不適切な API Key、設定ミス、接続や認証の問題など。
  • https://issues.liferay.com/browse/LPS-102340 が修正されてリリースされる場合、ユーザーは実際の根本的な原因を示す、より細かく調整されたエラーメッセージを見ることができます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base