Skip to content

执行demo报错 : The name of property key can't be null #5

@Axlabo

Description

@Axlabo

本地启动了hugegraph使用下面链接的demo执行 , 新建schema时报错 :
https://hugegraph.github.io/hugegraph-doc//quickstart/hugegraph-client.html

schema.propertyKey("name").asText().ifNotExist().create();
Caused by: com.baidu.hugegraph.exception.ServerException: The name of property key can't be null

逐一排查项目依赖 , 发现去掉对fastjson的依赖 , 或强制指定fastjson的依赖为1.1.x , 可以解决此问题 ;

我使用的hugegraph版本:
client : 1.5.8
server : 0.7.4

复现此问题的方法 :
在上面demo项目里面加上对 fastjson 1.2.x 的依赖 : com.alibaba:fastjson:1.2.44

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesIncompatible dependencies of package

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions