You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even though my UserCreatedPayload class implements Serializable, I am receiving the error mentioned in the title. I would appreciate your guidance on the cause of this error.
I receive the error after the line outbox.schedule(getClass()).sendCreatedUser(payload); is processed.
Even though my UserCreatedPayload class implements Serializable, I am receiving the error mentioned in the title. I would appreciate your guidance on the cause of this error.
I receive the error after the line outbox.schedule(getClass()).sendCreatedUser(payload); is processed.
Example codes
`package com.example.userservice.service;
import com.example.userservice.config.kafka.producer.KafkaProducer;
import com.example.userservice.config.kafka.properties.UserCreatedTopicProperties;
import com.example.userservice.dto.UserCreateRequest;
import com.example.userservice.dto.UserCreatedPayload;
import com.example.userservice.entity.User;
import com.example.userservice.repository.UserRepository;
import com.gruelbox.transactionoutbox.TransactionOutbox;
import lombok.RequiredArgsConstructor;
import org.springframework.messaging.support.GenericMessage;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import static org.springframework.kafka.support.KafkaHeaders.*;
@service
@requiredargsconstructor
public class UserService {
}
`
The text was updated successfully, but these errors were encountered: