ClassCastException during initiate Contract Upgrade

Description

The issue is from a client who are trying to do a contract upgrade.

some states are not upgraded successfully and throw out exception message of :

[WARN ] 2018-10-16T09:16:44,205 [Node thread-1] [939480af-d3cf-48c0-9167-e770a4f0e979] - Terminated by unexpected exception
java.lang.ClassCastException: net.corda.core.transactions.ContractUpgradeWireTransaction cannot be cast to net.corda.core.transactions.WireTransaction
at net.corda.core.transactions.SignedTransaction.getTx(SignedTransaction.kt:62) ~[corda-core-3.2.1847-corda.jar:?]
this might be a potential issue if upgrade is performed consecutively

client is running on a patch OS 3.2.1847

(i could not raise a ticket in Corda portal, so currently raising in Corda-ENT. Please help to move it..)

More details please refer to support ticket https://r3-cev.atlassian.net/browse/SUP-358

Activity

Show:
Andrius Dagys
October 16, 2018, 3:00 PM

This looks like a bug in the ContractUpgradeHandler, where it expects the state to be upgraded to be issued by a WireTransaction, while it could also be a ContractUpgrade or a NotaryChange transaction.

Katelyn Baker
October 30, 2018, 10:14 AM

Backported to V3 branch here https://github.com/corda/corda/pull/4131

Assignee

Andrius Dagys

Reporter

Weicong.Su@r3.com

Labels

Sprint

None

Epic Link

None

Priority

High

Severity

Medium

CVSS Score

None

CVSS Vector

None

Due Date

None

Engineering Teams

None

Fix versions

Affects versions

Ported to...

None

Story Points / Dev Days

None
Configure