You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'virtualServerDaoImpl' defined in file [/usr/local/apache-tomcat-7.0.62/webapps/ROOT/WEB-INF/classes/com/dianping/phoenix/lb/dao/impl/VirtualServerDaoImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.dianping.phoenix.lb.dao.ModelStore]: : Error creating bean with name 'mongoModelStoreImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoTemplateConfig' defined in class path resource [spring/applicationContext-mongo.xml]: Cannot resolve reference to bean 'dbConfig' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbConfig': Cannot resolve reference to bean 'mongo' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongo': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'com.mongodb.ServerAddress[]' for property 'replicaSetSeeds'; nested exception is java.lang.IllegalArgumentException: Could not resolve at least one server of the replica set configuration! Validate your config!; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoModelStoreImpl': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongoTemplateConfig' defined in class path resource [spring/applicationContext-mongo.xml]: Cannot resolve reference to bean 'dbConfig' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbConfig': Cannot resolve reference to bean 'mongo' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mongo': Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type 'java.lang.String' to required type 'com.mongodb.ServerAddress[]' for property 'replicaSetSeeds'; nested exception is java.lang.IllegalArgumentException: Could not resolve at least one server of the replica set configuration! Validate your config!
The text was updated successfully, but these errors were encountered:
mongodb.url里只填mongodb的IP:Port才能够正常启动。
对于配置有数据库账号和密码的mongodb,使用mongodb://user:pass@mongodb:27017 这样的地址配置时,camel启动会抛异常。
建议优化配置方式。
The text was updated successfully, but these errors were encountered: