ProgressTracker和合同错误未显示在控制台中

时间:2018-01-08 21:12:32

标签: windows corda

在Windows上,当运行节点并与节点进行交互时,我不会从控制台获得任何反馈,除了" Unstarted"和"完成"。如果它不起作用,它只会说" Unstarted"。如果它有效,它说两者。

此外,当我发起不履行合同的交易时,错误消息不会显示。

ProgressTracker也没有显示任何内容。我检查了日志文件,这里有一些可能与ProgessTracker有关的行:

[WARN ] 2018-01-08T20:39:43,952Z [Node thread] flow.[e43ed38a-c959-4a6e-a2d2-a428b15e0d19].maybeWireUpProgressTracking - ProgressTracker has not been started
[WARN ] 2018-01-08T20:39:46,915Z [Node thread] flow.[e43ed38a-c959-4a6e-a2d2-a428b15e0d19].uncaughtException - Caught exception from flow
java.lang.IllegalStateException: Cannot rewind a progress tracker once it has ended
at net.corda.core.utilities.ProgressTracker.setCurrentStep(ProgressTracker.kt:104) ~[corda-core-2.0.0.jar:?]
    at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:120) ~[corda-node-2.0.0.jar:?]
    at net.corda.node.services.statemachine.FlowStateMachineImpl.run(FlowStateMachineImpl.kt:41) ~[corda-node-2.0.0.jar:?]
    at co.paralleluniverse.fibers.Fiber.run1(Fiber.java:1092) [quasar-core-0.7.9-jdk8.jar:0.7.9]
    at co.paralleluniverse.fibers.Fiber.exec(Fiber.java:788) [quasar-core-0.7.9-jdk8.jar:0.7.9]
    at co.paralleluniverse.fibers.RunnableFiberTask.doExec(RunnableFiberTask.java:100) [quasar-core-0.7.9-jdk8.jar:0.7.9]
    at co.paralleluniverse.fibers.RunnableFiberTask.run(RunnableFiberTask.java:91) [quasar-core-0.7.9-jdk8.jar:0.7.9]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_144]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_144]
    at net.corda.node.utilities.AffinityExecutor$ServiceAffinityExecutor$1$thread$1.run(AffinityExecutor.kt:69) [corda-node-2.0.0.jar:?]

这一切都适用于具有相同代码的Mac设备。

Hello World Part 2 doesn't show error messages

This is how the progress tracker works in linux, but in Windows it just says Unstarted and then Done

1 个答案:

答案 0 :(得分:0)

鉴于我们前面没有代码,我们无法知道进度跟踪器为何要倒带。

在流类中实例化进度跟踪器状态时,可能会从其定义中以错误的顺序调用和设置进度跟踪器状态。如果您遇到这个问题,我会考虑一下。我倾向于认为这就是问题所在。

话虽这么说,这个问题看起来好像是一段时间以前的,对于您来说,仅当在Windows上运行时才出现此问题,如果该代码在其他平台上运行,可能似乎是一个非常模糊的错误。

您可能会在最新版本的corda上尝试代码获得成功? (它们现在为4.5,在Windows上应该没有任何问题。

这是指向文档页面的链接,用于下载和运行最新的corda jar文件:https://docs.corda.net/docs/corda-os/4.4/node-upgrade-notes.html#step-4-replace-cordajar-with-the-new-version

祝你好运!