The IpnHandler.java example does not work with gson-2.x.x installed. It works fine with gson-1.7.1 and older versions. However, when the latest gson-2.3.1 is installed, a call to:
com.amazonservices.mws.offamazonpaymentsipn.NotificationsException: Error with message - content is not in json format
at com.amazonservices.mws.offamazonpaymentsipn.parsers.Message.
at com.amazonservices.mws.offamazonpaymentsipn.parsers.SnsNotificationParser.parseNotification
at com.amazonservices.mws.offamazonpaymentsipn.NotificationParser.parseRawMessage
at com.amazonservices.mws.offamazonpaymentsipn.NotificationParser.parseRawMessage
The IpnHandler.java example does not work with gson-2.x.x installed. It works fine with gson-1.7.1 and older versions. However, when the latest gson-2.3.1 is installed, a call to:
INotificationParser::parseRawMessage (HttpServletRequest req)
causes the following exception:
com.amazonservices.mws.offamazonpaymentsipn.NotificationsException: Error with message - content is not in json format at com.amazonservices.mws.offamazonpaymentsipn.parsers.Message.
at com.amazonservices.mws.offamazonpaymentsipn.parsers.SnsNotificationParser.parseNotification
at com.amazonservices.mws.offamazonpaymentsipn.NotificationParser.parseRawMessage
at com.amazonservices.mws.offamazonpaymentsipn.NotificationParser.parseRawMessage