corda / net.corda.core.contracts / TransactionVerificationException / ConflictingAttachmentsRejection

ConflictingAttachmentsRejection

class ConflictingAttachmentsRejection : TransactionVerificationException

Indicates this transaction violates the "no overlap" rule: two attachments are trying to provide the same file path. Whereas Java classpaths would normally allow that with the first class taking precedence, this is not allowed in transactions for security reasons. This usually indicates that two separate apps share a dependency, in which case you could try 'shading the fat jars' to rename classes of dependencies. Or you could manually attach dependency JARs when building the transaction.

Constructors

<init>

Indicates this transaction violates the "no overlap" rule: two attachments are trying to provide the same file path. Whereas Java classpaths would normally allow that with the first class taking precedence, this is not allowed in transactions for security reasons. This usually indicates that two separate apps share a dependency, in which case you could try 'shading the fat jars' to rename classes of dependencies. Or you could manually attach dependency JARs when building the transaction.

ConflictingAttachmentsRejection(txId: SecureHash, contractClass: String)

Properties

contractClass

The fully qualified class name of the failing contract.

val contractClass: String