Issue with json schema registry

i work with spring cloud stream kafka , i have an issue with with json schema registry
I use the version 7.1.4 of confluent dependency , i use topic name strategy so when i save the schema by this pattern topicname-value when i check the schema by the api of confluent i founded I start troubleshooting the problem at first i used auto.register.schemas = true to delegate to spring boot for constructing the schema in this case everything works fine i can produce the message to the topic and consume it but when i restart my application i had this problem

org.springframework.messaging.MessageHandlingException: error occurred in message handler [$ProducerConfigurationMessageHandler@65ffd83e]; nested exception is org.apache.kafka.common.errors.SerializationException: Error retrieving JSON schema: {“$schema”:“

Ps: the schema used is too long

What might the problem be?