Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring无法从Kafka主题解压缩GZIP数据_Spring_Apache Kafka_Compression_Cloud_Kafka Consumer Api - Fatal编程技术网

Spring无法从Kafka主题解压缩GZIP数据

Spring无法从Kafka主题解压缩GZIP数据,spring,apache-kafka,compression,cloud,kafka-consumer-api,Spring,Apache Kafka,Compression,Cloud,Kafka Consumer Api,我有一个使用SpringCloudStreamKafka连接到AWS MSK的SpringBoot消费者应用程序。 HVR充当生产者,以GZIP压缩格式向主题生成数据 现在在我的侦听器代码中,spring并没有自动解压缩Kafka数据。从我读到的内容来看,消费者不需要明确提及任何解压缩代码 在听主题时,我得到以下例外: Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR,

我有一个使用SpringCloudStreamKafka连接到AWS MSK的SpringBoot消费者应用程序。 HVR充当生产者,以GZIP压缩格式向主题生成数据

现在在我的侦听器代码中,spring并没有自动解压缩Kafka数据。从我读到的内容来看,消费者不需要明确提及任何解压缩代码

在听主题时,我得到以下例外:

Caused by: com.fasterxml.jackson.core.JsonParseException: Illegal character ((CTRL-CHAR, code 31)): only regular white space (\r, \n, \t) is allowed between tokens
 at [Source: (byte[])
知道出了什么问题吗