From 09e11f84359b9346029bcc802f45aefeb40226f8 Mon Sep 17 00:00:00 2001 From: Andras Slemmer Date: Tue, 13 Dec 2016 11:51:14 +0000 Subject: [PATCH] rpc-kryo: Kryo register hidden jar url inputstream class --- .../kotlin/net/corda/node/services/messaging/RPCStructures.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/node/src/main/kotlin/net/corda/node/services/messaging/RPCStructures.kt b/node/src/main/kotlin/net/corda/node/services/messaging/RPCStructures.kt index df303f03f2..d8d3804138 100644 --- a/node/src/main/kotlin/net/corda/node/services/messaging/RPCStructures.kt +++ b/node/src/main/kotlin/net/corda/node/services/messaging/RPCStructures.kt @@ -41,9 +41,7 @@ import org.slf4j.LoggerFactory import rx.Notification import rx.Observable import java.io.BufferedInputStream -import java.io.InputStream import java.time.Instant -import java.time.LocalDateTime import java.util.* /** Global RPC logger */ @@ -146,6 +144,7 @@ private class RPCKryo(observableSerializer: Serializer>? = null) ImmutableMultimapSerializer.registerSerializers(this) register(BufferedInputStream::class.java, InputStreamSerializer) + register(Class.forName("sun.net.www.protocol.jar.JarURLConnection\$JarURLInputStream"), InputStreamSerializer) noReferencesWithin()