I'm using the latest snapshot builds:
After updating to the latest snapshot releases, I'm now unable to create any MongoDB instances - failing with the following exception:Code:<properties> <spring.version>3.1.0.RELEASE</spring.version> <spring.data.jpa.version>1.1.0.RC1</spring.data.jpa.version> <spring.data.mongo.version>1.1.0.BUILD-SNAPSHOT</spring.data.mongo.version> <query.dsl.version>2.3.0</query.dsl.version> </properties>
This appears to be some sort of version issue with the JARs, as SimpleMongoDbFactory.java:53 has no reference to NO_CREDENTIALS:Code:Caused by: java.lang.NoSuchFieldError: NO_CREDENTIALS at org.springframework.data.mongodb.core.SimpleMongoDbFactory.<init>(SimpleMongoDbFactory.java:53) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147) ... 90 more
Looking at the pom, the snapshot has been resolved to:Code:public SimpleMongoDbFactory(Mongo mongo, String databaseName) { Assert.notNull(mongo, "Mongo must not be null"); Assert.hasText(databaseName, "Database name must not be empty"); Assert.isTrue(databaseName.matches("[\\w-]+"), "Database name must only contain letters, numbers, underscores and dashes!"); this.mongo = mongo; this.databaseName = databaseName; }
spring-data-mongodb : 1.1.0.BUILD-20120402.133938-18
Unforutnately, this is a blocker for us - so any assistance is greatly appreciated.


Reply With Quote
.
