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
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.