apache / incubator-hugegraph-toolchain

HugeGraph toolchain - include a series useful graph modules
https://hugegraph.apache.org/
Apache License 2.0
88 stars 91 forks source link

[Bug] Create HugeClient but return null #492

Closed feitao1993 closed 1 year ago

feitao1993 commented 1 year ago

Problem Type (问题类型)

None

Before submit

Environment (环境信息)

Your Question (问题描述)

在使用HugeClient.builder(url, graph).build创建hugeClient时,总是得到null

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

No response

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

No response

liuxiaocs7 commented 1 year ago

hugegraph-client is in incubator-hugegraph-toolchain repository, could we search for issues in this repository first, or move issues to this repository later~

imbajin commented 1 year ago

same issue already exist in toolchain, maybe check it first?

and I'll transfer the issue later, also could paste some exception log / screenshot, more info, more feedback

feitao1993 commented 1 year ago

我没有找到类似的解决方案,能够给出一个具体的解决方法吗

imbajin commented 1 year ago

我没有找到类似的解决方案,能够给出一个具体的解决方法吗

refer:

and could try common 1.0.1

@z7658329 @zyxxoo spring 3 should be fine with client?

feitao1993 commented 1 year ago

参考回答进行了修改,还是出现一样的错误,具体表现如下:

pom文件的依赖如下:

------------------ 原始邮件 ------------------ 发件人: "apache/incubator-hugegraph" @.>; 发送时间: 2023年7月18日(星期二) 中午11:39 @.>; @.**@.>; 主题: Re: [apache/incubator-hugegraph] 无法创建HugeClient (Issue apache/incubator-hugegraph-toolchain#492)

same issue already exist in toolchain, maybe check it first?

and I'll transfer the issue later, also could paste some exception log / screenshot, more info, more feedback

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

z7658329 commented 1 year ago

参考回答进行了修改,还是出现一样的错误,具体表现如下: pom文件的依赖如下: ------------------ 原始邮件 ------------------ 发件人: "apache/incubator-hugegraph" @.>; 发送时间: 2023年7月18日(星期二) 中午11:39 @.>; @.**@.>; 主题: Re: [apache/incubator-hugegraph] 无法创建HugeClient (Issue apache/incubator-hugegraph-toolchain#492) same issue already exist in toolchain, maybe check it first? and I'll transfer the issue later, also could paste some exception log / screenshot, more info, more feedback — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

i cant see your pom file from here, can you paste your pom.xml and exception stack ? like this issue: 445

z7658329 commented 1 year ago

我没有找到类似的解决方案,能够给出一个具体的解决方法吗

refer:

and could try common 1.0.1

@z7658329 @zyxxoo spring 3 should be fine with client?

yes, @feitao1993 if your java application use springboot3 (jdk17) or jdk8/jdk11 springboot2.X , you can refer to the following steps:

1.check your springboot version, and override jersey version & jakarta version in your pom.xml : < properties>

3.0.3 3.0.0 2.0.0 image
feitao1993 commented 1 year ago

hugegraph-client没有1.0.1版本,另外报错详细信息如下:

------------------ 原始邮件 ------------------ 发件人: "apache/incubator-hugegraph" @.>; 发送时间: 2023年7月18日(星期二) 下午2:34 @.>; @.**@.>; 主题: Re: [apache/incubator-hugegraph] 无法创建HugeClient (Issue apache/incubator-hugegraph-toolchain#492)

我没有找到类似的解决方案,能够给出一个具体的解决方法吗

refer:

[Bug] jdk8/jdk11 springboot2.X 引用hugegraph-client1.0.0 运行报错java.lang.ClassNotFoundException: jakarta.ws.rs.ProcessingException incubator-hugegraph-toolchain#445

and could try common 1.0.1

@z7658329 @zyxxoo spring 3 should be fine with client?

yes, @feitao1993 if your java application use springboot3 (jdk17) or jdk8/jdk11 springboot2.X , you can refer to the following steps(it may works just follow step 1, but it also fails cause the springboot version, then follow step 2): 1.upgrade your hugegraph-client version to 1.0.1 2.check your springboot version, and override jersey version in your pom.xml (i will provide a complete config later) :

< properties> <jersery.version>3.0.3</jersey.version> </ properties>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

feitao1993 commented 1 year ago

最新的错误:

------------------ 原始邮件 ------------------ 发件人: "apache/incubator-hugegraph" @.>; 发送时间: 2023年7月18日(星期二) 下午2:34 @.>; @.**@.>; 主题: Re: [apache/incubator-hugegraph] 无法创建HugeClient (Issue apache/incubator-hugegraph-toolchain#492)

我没有找到类似的解决方案,能够给出一个具体的解决方法吗

refer:

[Bug] jdk8/jdk11 springboot2.X 引用hugegraph-client1.0.0 运行报错java.lang.ClassNotFoundException: jakarta.ws.rs.ProcessingException incubator-hugegraph-toolchain#445

and could try common 1.0.1

@z7658329 @zyxxoo spring 3 should be fine with client?

yes, @feitao1993 if your java application use springboot3 (jdk17) or jdk8/jdk11 springboot2.X , you can refer to the following steps(it may works just follow step 1, but it also fails cause the springboot version, then follow step 2): 1.upgrade your hugegraph-client version to 1.0.1 2.check your springboot version, and override jersey version in your pom.xml (i will provide a complete config later) :

< properties> <jersery.version>3.0.3</jersey.version> </ properties>

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

z7658329 commented 1 year ago

is this mail? image

i cant see pom.xml and exception stack, can you just directly paste your pom.xml and exception stack in issue, refer : 445

feitao1993 commented 1 year ago

我是多模块项目,一个是主pom,一个是模块的pom

------------------ 原始邮件 ------------------ 发件人: "apache/incubator-hugegraph" @.>; 发送时间: 2023年7月18日(星期二) 下午3:48 @.>; @.**@.>; 主题: Re: [apache/incubator-hugegraph] 无法创建HugeClient (Issue apache/incubator-hugegraph-toolchain#492)

is this mail?

i cant see pom.xml and exception stack, can you just directly paste your pom.xml and exception stack in issue, refer : 445

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

z7658329 commented 1 year ago

经线下确认排查 是由于项目依赖fastjson所致,fastjson问题可以参考历史issue:#5