Tommu10ve commented on issue #2775:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2775#issuecomment-2906388218

   > 你的报错 “Serializer for type 
org.apache.hugegraph.backend.id.IdGenerator$StringId not found” 是由于 HugeGraph 
1.5.0 目前只兼容 Gremlin Server 3.5.1,不支持 3.7.3 版本导致的。你现在用的 gremlin-driver 3.7.3 和 
hugegraph-client 1.5.0 
版本不兼容,会导致序列化失败(找不到对应类型的序列化器)[参考](https://github.com/apache/incubator-hugegraph/issues/2772)。
   > 
   > 解决方法:
   > 
   > 1. **将 gremlin-driver 版本降级到 3.5.1**,确保和 HugeGraph 1.5.0 兼容。
   >    <dependency>
   >        <groupId>org.apache.tinkerpop</groupId>
   >        <artifactId>gremlin-driver</artifactId>
   >        <version>3.5.1</version>
   >    </dependency>
   > 2. **确保 gremlin-server.yaml 配置了 HugeGraph 的序列化器**,如:
   >    serializers:
   >      - { className: 
org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1,
   >          config: {
   >            serializeResultToString: false,
   >            ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
   >          }
   >        }
   >      - { className: 
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0,
   >          config: {
   >            serializeResultToString: false,
   >            ioRegistries: [org.apache.hugegraph.io.HugeGraphIoRegistry]
   >          }
   >        }
   >        
   >          
   >        
   >    
   >          
   >        
   >    
   >        
   >      
   >    详细配置可参考官方文档 
[配置指南](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/config/config-guide.md)。
   > 
   > 目前 HugeGraph 官方尚未支持 3.7.x 版本的 Gremlin Server/Driver,建议不要升级到 
3.7.x,否则会遇到类似的兼容性问题。
   > 
   > 如无法降级,请关注 HugeGraph 后续的版本发布,等待官方对新版本的支持。
   > 
   > _To continue talking to [Dosu](https://go.dosu.dev/dosubot), mention 
[@dosu-bot](https://github.com/dosu-bot)._
   > 
   > Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/3448fcfe-aa84-4e26-983e-145b4d22f6d7?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/3448fcfe-aa84-4e26-983e-145b4d22f6d7?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/3448fcfe-aa84-4e26-983e-145b4d22f6d7?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/3448fcfe-aa84-4e26-983e-145b4d22f6d7?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/3448fcfe-aa84-4e26-983e-145b4d22f6d7?feedback_type=hallucination)
 | [Bug 
Report](https://app.dosu.dev/response-feedback/3448fcfe-aa84-4e26-983e-145b4d22f6d7?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/3448fcfe-aa84-4e26-983e-145b4d22f6d7?feedback_type=other)
   
   毫无作用


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to