gpt4 book ai didi

java - Spring Boot : Failed to instantiate [com. hazelcast.jet.JetInstance]

转载 作者:行者123 更新时间:2023-12-02 10:58:59 24 4
gpt4 key购买 nike

我在 Spring Boot v.2.0.3.RELEASE 上运行 hazelcast-jet-spring 工件(不是 hazelcast-jet)v.0.6.1 并收到此错误:

Caused by: java.lang.IllegalArgumentException: DataSerializableFactory[-45] is already registered! com.hazelcast.internal.journal.EventJournalDataSerializerHook$1@4a3e1b5d -> com.hazelcast.journal.EventJournalDataSerializerHook$1@587df3e4
at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.register(DataSerializableSerializer.java:90)
at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.<init>(DataSerializableSerializer.java:69)
at com.hazelcast.internal.serialization.impl.SerializationServiceV1.<init>(SerializationServiceV1.java:103)
at com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder.createSerializationService(DefaultSerializationServiceBuilder.java:275)
at com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder.build(DefaultSerializationServiceBuilder.java:228)
at com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder.build(DefaultSerializationServiceBuilder.java:52)
at com.hazelcast.instance.DefaultNodeExtension.createSerializationService(DefaultNodeExtension.java:200)
at com.hazelcast.instance.Node.<init>(Node.java:209)
at com.hazelcast.instance.HazelcastInstanceImpl.createNode(HazelcastInstanceImpl.java:164)
at com.hazelcast.instance.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:132)
at com.hazelcast.instance.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:196)
at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:175)
at com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:125)
at com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:57)
at com.hazelcast.jet.Jet.newJetInstance(Jet.java:57)

com.hazelcast.internal.journal.EventJournalDataSerializerHook com.hazelcast.journal.EventJournalDataSerializerHook

看起来两个同名但位于不同包中的类处于冲突状态。您能告诉我如何避免这种情况吗?

谢谢!

最佳答案

我必须使用对 Hazelcast 3.10 的显式依赖。

解决了!

关于java - Spring Boot : Failed to instantiate [com. hazelcast.jet.JetInstance],我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51499425/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com