diff --git a/core/src/main/kotlin/net/corda/core/context/InvocationContext.kt b/core/src/main/kotlin/net/corda/core/context/InvocationContext.kt index 64cdee0792..b9f66ca423 100644 --- a/core/src/main/kotlin/net/corda/core/context/InvocationContext.kt +++ b/core/src/main/kotlin/net/corda/core/context/InvocationContext.kt @@ -103,7 +103,8 @@ sealed class InvocationOrigin { /** * Origin was an RPC call. */ - data class RPC(private val actor: Actor) : InvocationOrigin() { + // Field `actor` needs to stay public for AMQP / JSON serialization to work. + data class RPC(val actor: Actor) : InvocationOrigin() { override fun principal() = Principal { actor.id.value } }