From 83ec8289b672c7bdb8b3f8711f5db292e3f41a1d Mon Sep 17 00:00:00 2001 From: Ryan Fowler Date: Wed, 16 Sep 2020 16:41:11 +0100 Subject: [PATCH] ENT-5492 Let the MissingAttachmentException through the RPC (#6719) * CORDA-4036: Put the identity failures on the same log so they aren't missed. * ENT-5492: Let the MissingAttachmentException propagate out --- .../net/corda/client/rpc/internal/ReconnectingCordaRPCOps.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/ReconnectingCordaRPCOps.kt b/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/ReconnectingCordaRPCOps.kt index 6f5715559a..cd530283a6 100644 --- a/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/ReconnectingCordaRPCOps.kt +++ b/client/rpc/src/main/kotlin/net/corda/client/rpc/internal/ReconnectingCordaRPCOps.kt @@ -38,7 +38,6 @@ import net.corda.core.utilities.NetworkHostAndPort import net.corda.core.utilities.contextLogger import net.corda.core.utilities.debug import net.corda.core.utilities.seconds -import net.corda.nodeapi.exceptions.MissingAttachmentException import net.corda.nodeapi.exceptions.RejectedCommandException import org.apache.activemq.artemis.api.core.ActiveMQConnectionTimedOutException import org.apache.activemq.artemis.api.core.ActiveMQSecurityException @@ -354,10 +353,6 @@ class ReconnectingCordaRPCOps private constructor( is PermissionException -> { throw RPCException("User does not have permission to perform operation ${method.name}.", e) } - is MissingAttachmentException -> { - log.warn("Failed to perform operation ${method.name}.", e) - break@loop - } else -> { log.warn("Failed to perform operation ${method.name}.", e) throw e.targetException