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
{{ message }}
This repository was archived by the owner on Mar 31, 2023. It is now read-only.
Facing the following issue while doing POST request to product-service with same code using java 17.
java.lang.NullPointerException: Cannot invoke "com.programming.techie.productservice.repository.ProductRepository.save(Object)" because "this.productRepository" is null
at com.programming.techie.productservice.controller.ProductController.createProduct(ProductController.java:34) ~[main/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]
Facing the following issue while doing POST request to product-service with same code using java 17.
java.lang.NullPointerException: Cannot invoke "com.programming.techie.productservice.repository.ProductRepository.save(Object)" because "this.productRepository" is null
at com.programming.techie.productservice.controller.ProductController.createProduct(ProductController.java:34) ~[main/:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[na:na]