Finance cordapps: node is up and running with multiple versions of contracts jar

Description

We get console errors but are able to run node when both old and new versions of corda-finance-contracts.jar are present in cordapps folder.

Steps:

1) Build local network via corda-tools-network-bootstrapper-4.3-RC01.jar

2) Run the node with both (OS-4.3-RC01 and a previous 4.1) versions of сontracts in cordapp folder:

  • corda-finance-contracts-4.3-RC01.jar

  • corda-finance-contracts-4.1.jar

  • corda-finance-workflows-4.3-RC01.jar

We get contract errors in console but the node is up and running:

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [ERROR] 19:11:46+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.asset.Cash. Please remove the previous version when upgrading to a new version. [ERROR] 19:11:46+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.CommercialPaper. Please remove the previous version when upgrading to a new version. [ERROR] 19:11:46+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.asset.Obligation. Please remove the previous version when upgrading to a new version. [ERROR] 19:11:46+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.asset.OnLedgerAsset. Please remove the previous version when upgrading to a new version. [ERROR] 19:11:46+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.JavaCommercialPaper. Please remove the previous version when upgrading to a new version.

3) Run flows on the running node. Flows run smoothly.

Expected result: we would expect the node not to start.

 

We also checked the following scenarios where a node could not be started having either 2 versions of *workflow.jar or 2 versions of both - *workflow.jar and *contracts.jar :

1) Run the node with both versions of flow and only one new version of contract:

  • corda-finance-workflows-4.3-RC01.jar

  • corda-finance-workflows-4.1.jar

  • corda-finance-contracts-4.3-RC01.jar

Actual result:

Node does not start with error:

 

1 2 3 4 5 6 [ERROR] 19:09:56+0400 [main] internal.NodeStartupLogging. - Exception during node startup: Unable to determine which flow to use when responding to: net.corda.finance.flows.CashExitFlow. [net.corda.finance.flows.CashExitResponderFlow, net.corda.finance.flows.CashExitResponderFlow] are all registered with equal weight. [errorCode=mnl04m, moreInformationAt=https://errors.corda.net/OS/4.3-RC01/mnl04m]

2) Run the node with both (OS-4.3-RC01 and a previous 4.1) versions of flow and contracts in cordapp folder:

  • corda-finance-workflows-4.3-RC01.jar

  • corda-finance-workflows-4.1.jar

  • corda-finance-contracts-4.3-RC01.jar

  • Corda-finance-contracts-4.1.jar

Actual result:

Node does not start with contract errors:

 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [ERROR] 18:59:27+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.JavaCommercialPaper. Please remove the previous version when upgrading to a new version. [ERROR] 18:59:27+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.asset.Cash. Please remove the previous version when upgrading to a new version. [ERROR] 18:59:27+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.asset.OnLedgerAsset. Please remove the previous version when upgrading to a new version. [ERROR] 18:59:27+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.CommercialPaper. Please remove the previous version when upgrading to a new version. [ERROR] 18:59:27+0400 [main] cordapp.CordappResolver. - ATTENTION: More than one CorDapp installed on the node for contract net.corda.finance.contracts.asset.Obligation. Please remove the previous version when upgrading to a new version.

 

Status

Assignee

Stefan Iliev

Reporter

Ekaterina Volobueva

Priority

Medium

Fix versions

Ported to...

None

Feature Team

Operational Experience

Severity

Medium

Sprint

Affects versions

Corda 4.3 RC01
Configure