-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception when trying to use in a non-spring boot project #91
Comments
@tschn , thanks for reporting the issue! could you pls share your pom.xml for further investigation? thanks in advance. |
|
Am I missing something, how can I use this in a non-spring boot project? |
@tschn , sorry for late response. after investigation, the dependency seems ok. is there any autowire on your repository? could you pls share more code snippet on spring data documentdb configuration and repository class? |
Hi @tschn , is the problem still valid? We've just released 0.1.5 version which contains some new features and bug fixing. could you give it a try? |
Adding 0.1.5 to the project yields an undeployable build for me. The error message below mentions Again, this is happening with no Java changes at all, just adding the dependency to the POM.
|
@edwingustafson thanks for reporting the issue. Could you pls share your pom config or spring version, spring-data-solr version? thanks in advance. from the error, it seems there's conflict on spring version used by spring-data-azure-document. while I tried spring-data-azure-document data with spring 1.4.3.release and 1.5.6.release, no error met. |
@yungez updating |
this worked after updating spring-data-solr version and creating separate packages for spring-data-solr and spring-data-azure-documentdb classes |
Seems the DocumentDbRepositoryFactoryBean needs a default constructor, I am trying to use in a good old spring project (4.3.10.RELEASE) I get:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbRepositoryFactoryBean]: No default constructor found; nested exception is java.lang.NoSuchMethodException: com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbRepositoryFactoryBean.()
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:85)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:1147)
... 65 more
Caused by: java.lang.NoSuchMethodException: com.microsoft.azure.spring.data.documentdb.repository.support.DocumentDbRepositoryFactoryBean.()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.getDeclaredConstructor(Class.java:2178)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:80)
... 66 more
The text was updated successfully, but these errors were encountered: