我正在eclipse IDE和weblogic中开发一个简单的Java应用程序。 我正在使用elasticsearch-0.90.5.jar和lucene-core-4.4.0.jar。
当我尝试使用elasticSearch创建连接时,我在此行中得到一个异常:
TransportClient tClient = new TransportClient(设置);
我得到的痕迹是:
org.elasticsearch.common.inject.CreationException: Guice creation errors:
1) Could not find a suitable constructor in org.elasticsearch.Version. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
at org.elasticsearch.Version.class(Unknown Source)
while locating org.elasticsearch.Version
for parameter 3 at org.elasticsearch.transport.netty.NettyTransport.(Unknown Source)
at org.elasticsearch.transport.netty.NettyTransportModule.configure(NettyTransportModule.java:39)
2) Could not find a suitable constructor in org.elasticsearch.Version. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argument constructor that is not private.
at org.elasticsearch.Version.class(Unknown Source)
while locating org.elasticsearch.Version
for parameter 4 at org.elasticsearch.client.transport.TransportClientNodesService.(Unknown Source)
at org.elasticsearch.client.transport.ClientTransportModule.configure(ClientTransportModule.java:39)
2 errors
at org.elasticsearch.common.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:344)
at org.elasticsearch.common.inject.InjectorBuilder.initializeStatically(InjectorBuilder.java:151)
at org.elasticsearch.common.inject.InjectorBuilder.build(InjectorBuilder.java:102)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:93)
at org.elasticsearch.common.inject.Guice.createInjector(Guice.java:70)
我不知道发生了什么,因为类org.elasticsearch.Version是elasticsearch-0.90.5.jar中的一个。
有关它的任何线索???
由于
的奥斯卡