gpt4 book ai didi

kotlin - 启动Corda Jar时出现问题:newAtomicIntegerFieldUpdater

转载 作者:行者123 更新时间:2023-12-02 13:36:36 25 4
gpt4 key购买 nike

我尝试启动(如this question中的)corda独立 jar ,并遇到问题:

internal.DriverDSLImpl.genericDriver-驱动程序由于异常而关闭
java.lang.NoSuchMethodError:io.netty.util.internal.PlatformDependent.newAtomicIntegerFieldUpdater(Ljava / lang / Class; Ljava / lang / String;)Ljava / util / concurrent / atomic / AtomicIntegerFieldUpdater;
在io.netty.buffer.AbstractReferenceCountedByteBuf。(AbstractReferenceCountedByteBuf.java:32)〜[corda / :?]
在io.netty.buffer.Unpooled.wrappedBuffer(Unpooled.java:199)〜[corda / :?]
在org.apache.activemq.artemis.core.io.buffer.TimedBuffer。(TimedBuffer.java:111)〜[corda / :?]
在org.apache.activemq.artemis.core.io.AbstractSequentialFileFactory。(AbstractSequentialFileFactory.java:78)〜[corda / :?]
在org.apache.activemq.artemis.core.io.nio.NIOSequentialFileFactory。(NIOSequentialFileFactory.java:75)〜[corda / :?]
在org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.init(JournalStorageManager.java:132)〜[corda / :?]
在org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager。(AbstractJournalStorageManager.java:217)〜[corda / :?]
在org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager。(JournalStorageManager.java:103)〜[corda / :?]
在org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createStorageManager(ActiveMQServerImpl.java:2008)〜[corda / :?]
在org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart1(ActiveMQServerImpl.java:2145)〜[corda / :?]
在org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)〜[corda / :?]
在org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:516)〜[corda / :?]
在org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:464)〜[corda / :?]
在net.corda.node.services.messaging.ArtemisMessagingServer.configureAndStartServer(ArtemisMessagingServer.kt:122)〜[corda / :?]
在net.corda.node.services.messaging.ArtemisMessagingServer.start(ArtemisMessagingServer.kt:92)〜[corda / :?]
在net.corda.node.internal.Node.startMessagingService(Node.kt:294)〜[corda / :?]
在net.corda.node.internal.AbstractNode $ start $ 4.invoke(AbstractNode.kt:256)〜[corda / :?]
在net.corda.node.internal.AbstractNode $ start $ 4.invoke(AbstractNode.kt:105)〜[corda / :?]
在net.corda.node.internal.AbstractNode $ initialiseDatabasePersistence $ 2.invoke(AbstractNode.kt:700)〜[corda / :?]
在net.corda.node.internal.AbstractNode $ initialiseDatabasePersistence $ 2.invoke(AbstractNode.kt:105)〜[corda / :?]
在net.corda.nodeapi.internal.persistence.CordaPersistence.inTopLevelTransaction(CordaPersistence.kt:152)〜[corda / :?]
在net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:138)〜[corda / :?]
在net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:124)〜[corda / :?]
在net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:131)〜[corda / :?]
在net.corda.node.internal.AbstractNode.initialiseDatabasePersistence(AbstractNode.kt:699)〜[corda / :?]
在net.corda.node.internal.Node.initialiseDatabasePersistence(Node.kt:347)〜[corda / :?]
在net.corda.node.internal.AbstractNode.start(AbstractNode.kt:207)〜[corda / :?]
在net.corda.node.internal.Node.start(Node.kt:361)〜[corda / :?]
在net.corda.testing.node.internal.DriverDSLImpl $ Companion $ startInProcessNode $ 1.invoke(DriverDSLImpl.kt:805)〜[corda / :?]
在net.corda.testing.node.internal.DriverDSLImpl $ Companion $ startInProcessNode $ 1.invoke(DriverDSLImpl.kt:767)〜[corda / :?]
在net.corda.core.internal.concurrent.ValueOrException $ DefaultImpls.capture(CordaFutureImpl.kt:107)〜[corda / :?]
在net.corda.core.internal.concurrent.OpenFuture $ DefaultImpls.capture(CordaFutureImpl.kt)〜[corda / :?]
在net.corda.core.internal.concurrent.CordaFutureImpl.capture(CordaFutureImpl.kt:119)〜[corda / :?]
在net.corda.core.internal.concurrent.CordaFutureImplKt $ fork $ inlined $ also $ lambda $ 1.run(CordaFutureImpl.kt:22)〜[corda / :?]


java.util.concurrent.Executors $ RunnableAdapter.call(未知来源)〜[?:1.8.0_202]
在java.util.concurrent.FutureTask.run(未知来源)〜[?:1.8.0_202]
在java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(未知源)〜[?:1.8.0_202]
在java.util.concurrent.ScheduledThreadPoolExecutor $ Sche ..(未知来源)〜[?:1.8.0_202]
在java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)〜[?:1.8.0_202]
在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)〜[?:1.8.0_202]
在java.lang.Thread.run(未知来源)〜[?:1.8.0_202]
线程“主”中的异常java.lang.NoClassDefFoundError:无法初始化类io.netty.buffer.UnpooledUnsafeDirectByteBuf
在io.netty.buffer.Unpooled.wrappedBuffer(Unpooled.java:199)
在org.apache.activemq.artemis.core.io.buffer.TimedBuffer(TimedBuffer.java:111)
在org.apache.activemq.artemis.core.io.AbstractSequentialFileFactory。(AbstractSequentialFileFactory.java:78)
在org.apache.activemq.artemis.core.io.nio.NIOSequentialFileFactory。(NIOSequentialFileFactory.java:75)
在org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager.init(JournalStorageManager.java:132)
在org.apache.activemq.artemis.core.persistence.impl.journal.AbstractJournalStorageManager。(AbstractJournalStorageManager.java:217)
在org.apache.activemq.artemis.core.persistence.impl.journal.JournalStorageManager。(JournalStorageManager.java:103)
在org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.createStorageManager(ActiveMQServerImpl.java:2008)
在org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.initialisePart1(ActiveMQServerImpl.java:2145)
在org.apache.activemq.artemis.core.server.impl.LiveOnlyActivation.run(LiveOnlyActivation.java:63)
在org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.internalStart(ActiveMQServerImpl.java:516)
在org.apache.activemq.artemis.core.server.impl.ActiveMQServerImpl.start(ActiveMQServerImpl.java:464)
在net.corda.node.services.messaging.ArtemisMessagingServer.configureAndStartServer(ArtemisMessagingServer.kt:122)
在net.corda.node.services.messaging.ArtemisMessagingServer.start(ArtemisMessagingServer.kt:92)
在net.corda.node.internal.Node.startMessagingService(Node.kt:294)
在net.corda.node.internal.AbstractNode $ start $ 4.invoke(AbstractNode.kt:256)
在net.corda.node.internal.AbstractNode $ start $ 4.invoke(AbstractNode.kt:105)
在net.corda.node.internal.AbstractNode $ initialiseDatabasePersistence $ 2.invoke(AbstractNode.kt:700)
在net.corda.node.internal.AbstractNode $ initialiseDatabasePersistence $ 2.invoke(AbstractNode.kt:105)
在net.corda.nodeapi.internal.persistence.CordaPersistence.inTopLevelTransaction(CordaPersistence.kt:152)
位于net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:138)
在net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:124)
在net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:131)
在net.corda.node.internal.AbstractNode.initialiseDatabasePersistence(AbstractNode.kt:699)
在net.corda.node.internal.Node.initialiseDatabasePersistence(Node.kt:347)
在net.corda.node.internal.AbstractNode.start(AbstractNode.kt:207)
在net.corda.node.internal.Node.start(Node.kt:361)
在net.corda.testing.node.internal.DriverDSLImpl $ Companion $ startInProcessNode $ 1.invoke(DriverDSLImpl.kt:805)
在net.corda.testing.node.internal.DriverDSLImpl $ Companion $ startInProcessNode $ 1.invoke(DriverDSLImpl.kt:767)
在net.corda.core.internal.concurrent.ValueOrException $ DefaultImpls.capture(CordaFutureImpl.kt:107)
在net.corda.core.internal.concurrent.OpenFuture $ DefaultImpls.capture(CordaFutureImpl.kt)
在net.corda.core.internal.concurrent.CordaFutureImpl.capture(CordaFutureImpl.kt:119)
在net.corda.core.internal.concurrent.CordaFutureImplKt $ fork $ inlined $ also $ lambda $ 1.run(CordaFutureImpl.kt:22)
在java.util.concurrent.Executors $ RunnableAdapter.call(未知来源)


java.util.concurrent.FutureTask.run(未知源)
在java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(未知源)
在java.util.concurrent.ScheduledThreadPoolExecutor $ Sche ..(未知来源)
在java.util.concurrent.ThreadPoolExecutor.runWorker(未知来源)
在java.util.concurrent.ThreadPoolExecutor $ Worker.run(未知来源)
在java.lang.Thread.run(未知来源)

最佳答案

使用最新版本的Corda(4.0+),您不再需要将驱动程序作为args。您可以通过以下方式简单地启动节点:

java -jar corda.jar

您甚至可以在build.gradle文件中为整个JVM分配更多的RAM,因此节点启动可能会更快:
extraConfig = ['jvmArgs' : [ "-Xmx2048m", "-Xms512m", "-XX:+UseG1GC" ] ]

关于kotlin - 启动Corda Jar时出现问题:newAtomicIntegerFieldUpdater,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55102189/

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