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
setMongoOperations in MongoRepositoryFactoryBean calls for invalid method setMappingContext [DATAMONGO-716] #1645
Comments
Oliver Drotbohm commented As the |
Triguna Mutuguppe Sripathi commented Wow... I had a spring-data-jpa from the previous project which caused the problem. This issue is resolved as soon as I removed spring-data-jpa. Thanks. PS: This issue was never mentioned in any of the forums or jira, so I had to raise the issue apologies... Thanks for your help Oliver. It was real quick and thoughtful. |
Oliver Drotbohm commented We've moved to the notion of a release train since two major releases. Currently the roadmap is maintained in the Spring Data Commons' wiki. You find a list of compatible versions here (in case you still need to work with both the Mongo and the JPA module). I'll go ahead and add the necessary info to the project's websites |
Triguna Mutuguppe Sripathi commented Oliver Gierke, yes that would be great. We might plan to work both of them together... However just a question, if I exclude sd-commons-core jar file from pom.xml for JPA will my JPA-Hibernate-Jdbc code work? (I doubt) |
Oliver Drotbohm commented You shouldn't need to exclude anything. Simply include the matching versions stated in the document I linked |
Triguna Mutuguppe Sripathi commented What I mean is, spring-data-jpa needs spring-data-commons-core for which the latest version is 1.4.1.RELEASE and spring-data-mongo needs spring-data-commons for which the latest version is 1.5.1.RELEASE. That is the reason I mentioned the spring-data-jpa one to exclude spring-data-commons-core (when we plan to use both jpa and mongo) and will it uses whatever classes available in the classpath? (I mean is the packages in both jar files same?) if we plan to use both jpa-hibernate and jpa-mongo, what would be the ideal scenario in the above case I have mentioned in this comment? |
Oliver Drotbohm commented No, please read the links carefully. If you want to use SD MongoDB in 1.2.1 you're in the Arora release train. According to the web page I linked, the release train includes SD JPA 1.3.2 and SD Commons in 1.5.1. If you use these versions, they will work together smoothly |
Oliver Drotbohm commented Going forward, for general questions, please use the forums |
Triguna Mutuguppe Sripathi commented Thanks for your help on this one |
Triguna Mutuguppe Sripathi opened DATAMONGO-716 and commented
When I run Spring Data MongoDB 1.2.1, I found the code throwing following exception stack:
Detail stack trace is attached.
After analyzing the code:
org.springframework.data.mongodb.repository.support.MongoRepositoryFactoryBean
,setMongoOperations(…)
references tosetMappingContext(…)
which does not exist in the same class or super class which is causing the problem.This has stopped me to work further in the project. Please fix it asap. This is a code review bug
Affects: 1.2.1
Attachments:
The text was updated successfully, but these errors were encountered: