欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

kafka问题之Listener method could not be invoked with the incoming message

程序员文章站 2022-06-16 20:40:47
文章目录1.问题描述1.问题描述2020-11-11 16:18:20.180 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 0, CreateTime = 1605082700035, ser...

1.问题描述


2020-11-11 16:18:20.180 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 0, CreateTime = 1605082700035, serialized key size = -1, serialized value size = 1176, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6744","markId":101,"description":"","operatorName":"baishitong","validityStarttime":1605082616000,"markPosition":0,"price":0.02,"freeEpisodeNew":"1,2,3","chargeStrategy":0,"id":1771,"publishStatus":2,"validityEndtime":1789017643000,"updateTime":1604471492000,"validityStatus":1,"episodeMarkDisplayType":1,"createTime":1599715299000,"freeEpisode":0,"episodeMarkId":101},"action":"create","key":"1771","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":0,"orderType":0,"bizType":1,"code":"DANPIANHF","partnerCode":"*","orderNum":1000,"operType":0,"type":"PPV","useType":0,"operatorName":"baishitong","orgId":1,"validityStarttime":1605082598000,"unsubscribe":0,"freeTime":300,"id":1807,"productType":1,"publishStatus":2,"publishTime":1599715323000,"showName":"DANPIANHF","lastModify":1604471488000,"chargeplanCode":"6744","validityEndtime":1820553585000,"validityStatus":1,"displayType":1,"createTime":1599715219000,"orderCycle":"1","name":"单片测试HF"},"action":"create","key":"1807","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2020-11-11 16:18:20.320 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 1, CreateTime = 1605082700317, serialized key size = -1, serialized value size = 1174, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6745","markId":101,"description":"","operatorName":"baishitong","validityStarttime":1605082617000,"markPosition":0,"price":1.0,"freeEpisodeNew":"1,2,3","chargeStrategy":0,"id":1772,"publishStatus":2,"validityEndtime":1604311253000,"updateTime":1604471666000,"validityStatus":1,"episodeMarkDisplayType":1,"createTime":1599715460000,"freeEpisode":0,"episodeMarkId":101},"action":"create","key":"1772","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":1,"orderType":1,"bizType":1,"code":"BAOYUEHF","partnerCode":"*","orderNum":1000,"operType":0,"type":"SVOD","useType":0,"operatorName":"baishitong","orgId":1,"validityStarttime":1605082599000,"unsubscribe":1,"freeTime":300,"id":1808,"productType":1,"publishStatus":2,"publishTime":1599715472000,"showName":"BAOYUEHF","lastModify":1604471659000,"chargeplanCode":"6745","validityEndtime":1729574573000,"validityStatus":1,"displayType":1,"createTime":1599715425000,"orderCycle":"2","name":"包月测试HF"},"action":"create","key":"1808","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2020-11-11 16:18:20.568 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 2, CreateTime = 1605082700450, serialized key size = -1, serialized value size = 1176, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6746","markId":101,"description":"","operatorName":"baishitong","validityStarttime":1605082618000,"markPosition":0,"price":0.01,"freeEpisodeNew":"1,2,3","chargeStrategy":0,"id":1773,"publishStatus":2,"validityEndtime":1820553926000,"updateTime":1604471292000,"validityStatus":1,"episodeMarkDisplayType":1,"createTime":1599715543000,"freeEpisode":0,"episodeMarkId":0},"action":"create","key":"1773","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":1,"orderType":1,"bizType":1,"code":"BAONIANHF","partnerCode":"*","orderNum":1000,"operType":0,"type":"SVOD","useType":0,"operatorName":"baishitong","orgId":1,"validityStarttime":1605082600000,"unsubscribe":1,"freeTime":300,"id":1809,"productType":1,"publishStatus":2,"publishTime":1599715562000,"showName":"BAONIANHF","lastModify":1604471284000,"chargeplanCode":"6746","validityEndtime":1604034901000,"validityStatus":1,"displayType":1,"createTime":1599715508000,"orderCycle":"12","name":"包年测试HF"},"action":"create","key":"1809","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2020-11-11 16:18:20.651 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 3, CreateTime = 1605082700648, serialized key size = -1, serialized value size = 1188, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6747","markId":101,"description":"","operatorName":"baishitong","validityStarttime":1605082619000,"markPosition":0,"price":0.01,"freeEpisodeNew":"1,2,3","chargeStrategy":0,"id":1774,"publishStatus":2,"validityEndtime":1789018040000,"updateTime":1604471183000,"validityStatus":1,"episodeMarkDisplayType":1,"createTime":1599715656000,"freeEpisode":0,"episodeMarkId":101},"action":"create","key":"1774","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":1,"orderType":2,"bizType":1,"code":"SHIDUANBAOHF","partnerCode":"*","orderNum":1000,"operType":0,"type":"SVOD","useType":0,"operatorName":"baishitong","orgId":1,"validityStarttime":1605082601000,"unsubscribe":1,"freeTime":300,"id":1810,"productType":1,"publishStatus":2,"publishTime":1599715678000,"showName":"SHIDUANBAOHF","lastModify":1604471177000,"chargeplanCode":"6747","validityEndtime":1757482010000,"validityStatus":1,"displayType":1,"createTime":1599715632000,"orderCycle":"180","name":"时段包测试HF"},"action":"create","key":"1810","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2020-11-11 16:18:20.761 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 4, CreateTime = 1605082700757, serialized key size = -1, serialized value size = 1196, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6764","markId":469,"description":"","operatorName":"baishitong","validityStarttime":1605082619000,"markPosition":0,"price":6.0,"freeEpisodeNew":"1","chargeStrategy":0,"id":1781,"publishStatus":2,"validityEndtime":1604651817000,"updateTime":1604486076000,"validityStatus":1,"episodeMarkDisplayType":2,"createTime":1603442259000,"freeEpisode":0,"episodeMarkId":469},"action":"create","key":"1781","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":0,"orderType":0,"bizType":1,"code":"test_qxy","partnerCode":"*","description":"测试产品","orderNum":1000,"operType":0,"type":"PPV","useType":0,"operatorName":"baishitong","orgId":1,"validityStarttime":1605082602000,"unsubscribe":0,"freeTime":300,"id":1817,"productType":1,"publishStatus":2,"publishTime":1603442281000,"showName":"xinyong","lastModify":1604486071000,"chargeplanCode":"6764","validityEndtime":1604133368000,"validityStatus":1,"displayType":1,"createTime":1603442198000,"orderCycle":"24","name":"新勇产品"},"action":"create","key":"1817","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2020-11-11 16:18:20.931 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 5, CreateTime = 1605082700928, serialized key size = -1, serialized value size = 1193, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6415","markId":181,"description":"","operatorName":"xiexiangyi","validityStarttime":1605082615000,"markPosition":1,"price":5.0,"freeEpisodeNew":"","chargeStrategy":0,"id":1482,"publishStatus":2,"validityEndtime":2038474505000,"updateTime":1604477678000,"validityStatus":1,"episodeMarkDisplayType":0,"createTime":1565088914000,"freeEpisode":0,"episodeMarkId":0},"action":"create","key":"1482","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":0,"orderType":0,"bizType":1,"code":"OTT_PER_48","partnerCode":"*","orderNum":1000,"operType":0,"type":"PPV","useType":0,"operatorName":"xiexiangyi","orgId":1,"validityStarttime":1605082602000,"unsubscribe":0,"freeTime":300,"id":1485,"productType":1,"publishStatus":2,"publishTime":1565163945000,"showName":"湖北移动","lastModify":1604477638000,"chargeplanCode":"6415","validityEndtime":2038474492000,"validityStatus":1,"displayType":1,"createTime":1565088897000,"orderCycle":"72","name":"和TV(百视通)-掠食城市[国]"},"action":"create","key":"1485","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2020-11-11 16:18:21.052 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 6, CreateTime = 1605082701047, serialized key size = -1, serialized value size = 1163, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6765","markId":-1,"description":"","operatorName":"baishitong","validityStarttime":1605082620000,"markPosition":0,"price":1.0,"freeEpisodeNew":"","chargeStrategy":0,"id":1782,"publishStatus":2,"validityEndtime":1604136975000,"updateTime":1604544107000,"validityStatus":1,"episodeMarkDisplayType":0,"createTime":1603877782000,"freeEpisode":0,"episodeMarkId":466},"action":"create","key":"1782","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":0,"orderType":0,"bizType":1,"code":"test_qxy2","partnerCode":"*","orderNum":1000,"operType":0,"type":"PPV","useType":0,"operatorName":"baishitong","orgId":1,"validityStarttime":1605082603000,"unsubscribe":0,"freeTime":300,"id":1818,"productType":1,"publishStatus":2,"publishTime":1603877807000,"showName":"新勇21","lastModify":1604477906000,"chargeplanCode":"6765","validityEndtime":1604136935000,"validityStatus":1,"displayType":1,"createTime":1603877754000,"orderCycle":"24","name":"xinyong2"},"action":"create","key":"1818","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2020-11-11 16:18:21.198 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 7, CreateTime = 1605082701171, serialized key size = -1, serialized value size = 1178, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6748","markId":101,"description":"","operatorName":"baishitong","validityStarttime":1605082624000,"markPosition":0,"price":0.01,"freeEpisodeNew":"0","chargeStrategy":0,"id":1775,"publishStatus":2,"validityEndtime":1758605502000,"updateTime":1604644778000,"validityStatus":1,"episodeMarkDisplayType":2,"createTime":1600839127000,"freeEpisode":0,"episodeMarkId":101},"action":"create","key":"1775","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":0,"orderType":0,"bizType":1,"code":"PGXJJJB","partnerCode":"*","orderNum":1000,"operType":0,"type":"PPV","useType":0,"operatorName":"baishitong","orgId":1,"validityStarttime":1605082606000,"unsubscribe":0,"freeTime":300,"id":1811,"productType":1,"publishStatus":2,"publishTime":1600839306000,"showName":"PGX剧集角标","lastModify":1604644773000,"chargeplanCode":"6748","validityEndtime":1758605326000,"validityStatus":1,"displayType":1,"createTime":1600838970000,"orderCycle":"24","name":"PGX剧集角标"},"action":"create","key":"1811","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2020-11-11 16:18:21.323 ERROR 23834 --- [ntainer#1-0-C-1] o.s.kafka.listener.LoggingErrorHandler   : Error while processing: ConsumerRecord(topic = sync_product, partition = 0, leaderEpoch = 0, offset = 8, CreateTime = 1605082701319, serialized key size = -1, serialized value size = 1180, headers = RecordHeaders(headers = [], isReadOnly = false), key = null, value = {"tvProductChargeplanMessage":{"data":{"code":"6768","markId":101,"description":"","operatorName":"baishitong","validityStarttime":1605082625000,"markPosition":0,"price":1.0,"freeEpisodeNew":"1","chargeStrategy":0,"id":1784,"publishStatus":2,"validityEndtime":1606719865000,"updateTime":1604648489000,"validityStatus":1,"episodeMarkDisplayType":2,"createTime":1604646281000,"freeEpisode":0,"episodeMarkId":101},"action":"create","key":"1784","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProductChargeplan"},"tvProductMessage":{"data":{"keepsubscribe":0,"orderType":0,"bizType":1,"code":"test1106","partnerCode":"*","orderNum":1000,"operType":0,"type":"PPV","useType":0,"operatorName":"baishitong","orgId":1,"validityStarttime":1605082607000,"unsubscribe":0,"freeTime":300,"id":1820,"productType":1,"publishStatus":2,"publishTime":1604646285000,"showName":"测试产品1106","lastModify":1604648484000,"chargeplanCode":"6768","validityEndtime":1606719607000,"validityStatus":1,"displayType":1,"createTime":1604646016000,"orderCycle":"24","name":"测试产品1106"},"action":"create","key":"1820","element":"com.bestv.sync.data.tvcms.domain.entity.cts.CtsTvProduct"}})

org.springframework.kafka.listener.ListenerExecutionFailedException: Listener method could not be invoked with the incoming message
Endpoint handler details:
Method [public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment)]
Bean [com.bestv.sync.data.charge.manage.listener.SyncProductListener@69ab376a]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]; nested exception is org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] , failedMessage=GenericMessage [payload=org.springframework.kafka.support.KafkaNull@23c1553c, headers={id=cbb3bc20-27cc-4f61-d2b3-c12685e44657, timestamp=1605082502314}]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.decorateException(KafkaMessageListenerContainer.java:1774) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeErrorHandler(KafkaMessageListenerContainer.java:1766) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1679) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeWithRecords(KafkaMessageListenerContainer.java:1605) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeRecordListener(KafkaMessageListenerContainer.java:1510) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeListener(KafkaMessageListenerContainer.java:1257) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.pollAndInvoke(KafkaMessageListenerContainer.java:1007) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.run(KafkaMessageListenerContainer.java:927) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run$$$capture(FutureTask.java:266) [na:1.8.0_211]
	at java.util.concurrent.FutureTask.run(FutureTask.java) [na:1.8.0_211]
	at java.lang.Thread.run(Thread.java:748) [na:1.8.0_211]
Caused by: org.springframework.messaging.handler.annotation.support.MethodArgumentNotValidException: Could not resolve method parameter at index 1 in public com.bestv.sync.data.charge.manage.constants.enums.ENUM_CONSUME_RESULT com.bestv.sync.data.charge.manage.listener.SyncProductListener.consume(org.apache.kafka.clients.consumer.ConsumerRecord,org.springframework.kafka.support.Acknowledgment): 1 error(s): [Error in object 'ack': codes []; arguments []; default message [Payload value must not be empty]] 
	at org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver.resolveArgument(PayloadMethodArgumentResolver.java:122) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.annotation.KafkaListenerAnnotationBeanPostProcessor$KafkaNullAwarePayloadArgumentResolver.resolveArgument(KafkaListenerAnnotationBeanPostProcessor.java:906) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.messaging.handler.invocation.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:117) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:148) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.messaging.handler.invocation.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:116) ~[spring-messaging-5.2.4.RELEASE.jar:5.2.4.RELEASE]
	at org.springframework.kafka.listener.adapter.HandlerAdapter.invoke(HandlerAdapter.java:48) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.MessagingMessageListenerAdapter.invokeHandler(MessagingMessageListenerAdapter.java:326) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:86) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.adapter.RecordMessagingMessageListenerAdapter.onMessage(RecordMessagingMessageListenerAdapter.java:51) ~[spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeOnMessage(KafkaMessageListenerContainer.java:1728) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.invokeOnMessage(KafkaMessageListenerContainer.java:1711) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.doInvokeRecordListener(KafkaMessageListenerContainer.java:1666) [spring-kafka-2.3.6.RELEASE.jar:2.3.6.RELEASE]
	... 9 common frames omitted

2.解决方案

    public void consume(ConsumerRecord record, Acknowledgment acknowledgment) 

使用上面的Acknowledgment需要配置下面的参数
kafka问题之Listener method could not be invoked with the incoming message

本文地址:https://blog.csdn.net/u014636209/article/details/109625543

相关标签: kafka