Hello Siva, Thank you for creating amazing content for testing, was looking for the same. Could you please create some content on "How to Manage Distributed Transactions in Microservices using Saga" , I have gone through many courses but have not understood the actual concept and implementation? If you have any suggestions for existing tutorials, please let me know.
I'm trying to use the rabbitmq test contianer . RabbitMQContainer container = new RabbitMQContainer(DockerImageName.parse("rabbitmq:rabbitmq:3.11.28-alpine")) Getting the below error java.lang.IllegalStateException: Could not find a valid Docker environment. Running in IntelliJ and i have the docker running in WSL and i'm docker wsl connection is successful in intellij . Not sure what is missed .can you please guide
If my payload contains a LocalDateTime then the producer send message fails with Failed to convert to JSON; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" Adding serializer and deserializer configs to test application prop also does not work, can you show an example with that as well ?
@@sivalabs Thanks for the reply. I have not added it explicitly as I am using spring boot starter so all the jackson dependencies are bundled along with the jsr310 (can see it in the list of dependency jars), so not sure why it is not detected.
I have updated the sample code to include a LocalDateTime field and it is working fine. See github.com/sivaprasadreddy/testcontainers-samples/blob/main/spring-boot-kafka-demo/src/main/java/com/sivalabs/demo/ProductPriceChangedEvent.java
Nice explanation with demo.
Hello Siva,
Thank you for creating amazing content for testing, was looking for the same.
Could you please create some content on "How to Manage Distributed Transactions in Microservices using Saga" , I have gone through many courses but have not understood the actual concept and implementation?
If you have any suggestions for existing tutorials, please let me know.
sir, can you please explain how to test spring jms using embedded activemq?
I'm trying to use the rabbitmq test contianer .
RabbitMQContainer container =
new RabbitMQContainer(DockerImageName.parse("rabbitmq:rabbitmq:3.11.28-alpine"))
Getting the below error
java.lang.IllegalStateException: Could not find a valid Docker environment.
Running in IntelliJ and i have the docker running in WSL and i'm docker wsl connection is successful in intellij .
Not sure what is missed .can you please guide
Good content. Thank you.
Hi Siva, Thank you for this video. Learnt new concepts today. Could you also make a tutorial on generic containers and effective use of it?
Hi Siva,
Thanks for the video . please make more videos on interview preparation
You haven't make video on docker and how to use with java stack
Please upload Spring WebFlux video with Spring Security
If my payload contains a LocalDateTime then the producer send message fails with Failed to convert to JSON; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type `java.time.LocalDateTime` not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310"
Adding serializer and deserializer configs to test application prop also does not work, can you show an example with that as well ?
Did you try adding the "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" jar dependency as mentioned in the error message?
@@sivalabs Thanks for the reply. I have not added it explicitly as I am using spring boot starter so all the jackson dependencies are bundled along with the jsr310 (can see it in the list of dependency jars), so not sure why it is not detected.
Is there any reproducer repo on GitHub? I will take a look at it.
I have updated the sample code to include a LocalDateTime field and it is working fine. See github.com/sivaprasadreddy/testcontainers-samples/blob/main/spring-boot-kafka-demo/src/main/java/com/sivalabs/demo/ProductPriceChangedEvent.java
@@sivalabs Thanks I found the issue, I was having an incorrect override of the ObjectMapper bean, removing it fixed the issue.