When i debug my project i get following error,
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘usedCarController’: Unsatisfied dependency expressed through field ‘fileStorageService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘fileStorageService’: Unsatisfied dependency expressed through field ‘usedCarDao’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.boot.autoconfigure.data.couchbase.SpringBootCouchbaseDataConfiguration’: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.boot.autoconfigure.data.couchbase.SpringBootCouchbaseDataConfiguration$$EnhancerBySpringCGLIB$$bc0bbf1c]: Constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘springBootCouchbaseConfigurer’ defined in class path resource [org/springframework/boot/autoconfigure/data/couchbase/CouchbaseConfigurerAdapterConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.couchbase.config.CouchbaseConfigurer]: Factory method ‘springBootCouchbaseConfigurer’ threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘couchbaseClient’ defined in class path resource [org/springframework/boot/autoconfigure/couchbase/CouchbaseConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.couchbase.client.java.Bucket]: Factory method ‘couchbaseClient’ threw exception; nested exception is java.lang.RuntimeException: java.util.concurrent.TimeoutException
After adding following query,
@Query(“Select usedcarimages from
UsedCar
where #{n1ql filter} AND usedcarimages LIKE %$1% within #{n1ql bucket} ORDER BY DESC”)
List< String> findByUsedcarimages(String fileName);
Is there somthing i am missing ?
Below is my pojo class,
@Id
private String car_id;
@Field
@NotNull
private String car_name;
@Field
@NotNull
private String car_model;
@Field
@NotNull
private String car_built;
@Field
@NotNull
private String car_manufac_year;
@Field
private List < String> usedcarimages;