From e5e4596461a2026d481acfef4a3c21bbced5d03c Mon Sep 17 00:00:00 2001 From: Michele Sollecito Date: Wed, 15 Aug 2018 17:02:25 +0100 Subject: [PATCH] [CORDA-1681]: It is not possible to run stateMachinesSnapshot from the shell (fixed). (#3791) --- .../main/kotlin/net/corda/core/context/InvocationContext.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 } }