You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Corda中Sellerflow未在JVM的flow list中显示问题咨询

Troubleshooting: "Sellerflow" Not Appearing in flow list

First, let's reference your screenshot showing the missing flow in the flow list output:

Screenshot of flow list command with no Sellerflow entry

Let's break down the most likely reasons your Sellerflow isn't showing up, along with actionable fixes for each:

1. Your Flow Is Missing Critical Annotations

Corda relies on specific annotations to identify and expose flows to the node. Double-check your Sellerflow class has both:

  • @StartableByRPC: This marks the flow as callable via the node's RPC interface, which is what the flow list command uses to discover available flows.
  • @InitiatingFlow (if it's the flow that starts the transaction) or @InitiatedBy(YourResponderFlow.class) (if it's a responder flow for counterparty interactions)

Here's an example of a properly annotated initiating flow:

@InitiatingFlow
@StartableByRPC
public class Sellerflow extends FlowLogic<Void> {
    // Your flow implementation here
}

2. Classpath or Deployment Issues

Corda nodes only load flows from valid CordApp JARs in their cordapps directory. Verify:

  • You've successfully built your project and the compiled JAR is in your node's cordapps folder.
  • Your flow's package is included in the node's scan path (check cordapp.conf for the cordapp.scanPackages setting—if it's defined, make sure your flow's package is listed).
  • There are no compilation errors in your Sellerflow class (check your build logs for any issues that might have prevented the class from being compiled correctly).

3. Case Sensitivity or Typo

Flow names are case-sensitive in Corda. Make sure:

  • Your class is actually named Sellerflow (not SellerFlow, sellerflow, or any other variation).
  • You're searching for the exact name when checking flow list—even a single capitalization difference will make it look like the flow is missing.

4. Node Wasn't Restarted After Adding the Flow

Corda scans for flows only when the node starts up. If you added Sellerflow after launching the node, you'll need to:

  1. Stop the node completely
  2. Rebuild and redeploy your CordApp JAR to the cordapps directory
  3. Restart the node, then run flow list again

5. Classloading Conflicts with the Demo Project

If you're using the same flow names as the reference trader demo, there might be classloading conflicts between your CordApp and the demo's JAR. Try renaming your flow to something unique (like MyCustomSellerflow), rebuild, redeploy, and check if it appears in flow list.


内容的提问来源于stack exchange,提问作者Felix Wu

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.28 03:56:49