hugegraph / hugegraph-client

Please move to Apache Hugegraph-Toolchain, Thanks
https://hugegraph.apache.org/docs/quickstart/hugegraph-client/
Apache License 2.0
32 stars 46 forks source link

The version 0.71.0.0 of 'hugegraph-api in server' is not in [0.38, 0.68) #149

Open ljhhuxiaoba opened 5 months ago

ljhhuxiaoba commented 5 months ago

Bug Type (问题类型)

None

Before submit

Environment (环境信息)

Expected & Actual behavior (期望与实际表现)

报错信息: Exception in thread "main" java.lang.IllegalStateException: The version 0.71.0.0 of 'hugegraph-api in server' is not in [0.38, 0.68)

出错Java代码: String host = "localhost"; int port = 8080; String gremlin = "g.V().drop()"; HugeClient hugeClient = HugeClient.builder("http://"+host+":"+port, "hugegraph") .configTimeout(120) .build(); GremlinManager gremlinManager = hugeClient.gremlin(); ResultSet resultSet = gremlinManager.gremlin(gremlin).execute();

相关依赖:

com.google.guava guava 28.0-jre
<dependency>
  <groupId> org.apache.cassandra</groupId>
  <artifactId>cassandra-all</artifactId>
  <version>0.8.1</version>
  <exclusions>
    <exclusion>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
    </exclusion>
    <exclusion>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
    </exclusion>
  </exclusions>
</dependency>
<dependency>
  <groupId>com.baidu.hugegraph</groupId>
  <artifactId>hugegraph-client</artifactId>
  <version>2.0.1</version>
</dependency>

791f78dc31982cf2731d137e16d20cf

Vertex/Edge example (问题点 / 边数据举例)

No response

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

imbajin commented 5 months ago

Refer this issue: (HugeGraph has moved to apache repo) https://github.com/hugegraph/hugegraph-client/issues/146

And also update README now

image