skip to Main Content

Mongodb – Failed to execute CommandLineRunner

I have a spring boot application that has been up running for months now. Everything was fine until I added this line in the UserRepository that extends MongoRepository: List<User> findAllByUserName(List<String> usernames); Now I get the following error: java.lang.IllegalStateException: Failed to…

VIEW QUESTION

java.lang.NullPointerException: Cannot invoke "com.proj.my.repository.OrderRepository.save(Object)" because "this.orderRepository" is null – Mysql

I want to test my orderService, each order has x cartItems, each cartItem is a product. I managed to do some code, and thought I got it right, but encountered a problem : java.lang.NullPointerException: Cannot invoke "com.proj.my.repository.OrderRepository.save(Object)" because "this.orderRepository" is…

VIEW QUESTION

Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:6379 – Docker

I just migrated from Spring boot 2 to Spring boot 3. When I run the project I get the error | Caused by: io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: localhost/127.0.0.1:6379 | Caused by: java.net.ConnectException: Connection refused | at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[na:na] | at…

VIEW QUESTION
Back To Top
Search