Hi all,
I'm afraid I'm rather new to Spring and MongoDB, but I've been working from the mongodb.examples.hello project, and when I change the dependency in the pom to 1.1.1.RELEASE I get and exception as follows:
Code:
java.lang.NoSuchMethodError: org.springframework.data.authentication.UserCredentials.hasUsername()Z
at org.springframework.data.mongodb.core.MongoDbUtils.doGetDB(MongoDbUtils.java:105)
at org.springframework.data.mongodb.core.MongoDbUtils.getDB(MongoDbUtils.java:75)
at org.springframework.data.mongodb.core.SimpleMongoDbFactory.getDb(SimpleMongoDbFactory.java:118
I have added credentials to the tag in the -context.xml, which if I don't do I get a "NO_CREDENTIALS" message:
Code:
Caused by: java.lang.NoSuchFieldError: NO_CREDENTIALS
at org.springframework.data.mongodb.core.SimpleMongoDbFactory.<init>(SimpleMongoDbFactory.java:53)
What I can't fathom is: is this an issue with the 1.1.1.RELEASE build, or am I missing some config, or other information that could resolve this issue?
Any advice or help of any kind would be greatly appreciated, and if I can provide any more information to make that easier, I'll do my best.
Cheers all,
Rob