Apache Polygene与MongoDB EntityStore的连接

Apache Polygene与MongoDB EntityStore的连接,mongodb,apache-zest,Mongodb,Apache Zest,我正在使用ApachePolygene(Qi4j)2.1,并尝试使用具有多个节点和复制集的MongoDB实体存储 我的mongodb.booking.store.properties文件中的当前配置是: hostname=localhost port=27017 nodes=192.168.1.100:27017, 192.168.1.101:27017, 192.168.1.102:27017 database=example collection=example 我返回以下错误: org.

我正在使用ApachePolygene(Qi4j)2.1,并尝试使用具有多个节点和复制集的MongoDB实体存储

我的
mongodb.booking.store.properties文件中的当前配置是:

hostname=localhost
port=27017
nodes=192.168.1.100:27017, 192.168.1.101:27017, 192.168.1.102:27017
database=example
collection=example
我返回以下错误:

org.qi4j.api.value.NoSuchValueException: Could not find any visible ValueComposite of type [com.mongodb.ServerAddress] in module [config]
但是,当我从上面的文件中删除
节点
属性时,一切正常,与mongo的连接成功


如何使用多个节点和复制集

这是一个不幸的MongoDB扩展版本,从属性文件初始化此配置没有好的答案

Polygene 3.0于2017年7月发布,解决了这一特殊问题。看