Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id DBA10180630 for ; Tue, 2 Jan 2018 20:50:13 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id CBAF4160C09; Tue, 2 Jan 2018 19:50:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 1D2CC160C26 for ; Tue, 2 Jan 2018 20:50:12 +0100 (CET) Received: (qmail 79702 invoked by uid 500); 2 Jan 2018 19:50:12 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 79693 invoked by uid 99); 2 Jan 2018 19:50:12 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Jan 2018 19:50:12 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 989EE1805BF for ; Tue, 2 Jan 2018 19:50:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -107.211 X-Spam-Level: X-Spam-Status: No, score=-107.211 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id YPd2kk0Ck0SC for ; Tue, 2 Jan 2018 19:50:10 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id EB1E25FBF2 for ; Tue, 2 Jan 2018 19:50:08 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id C4192E25E8 for ; Tue, 2 Jan 2018 19:50:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 908BC2477C for ; Tue, 2 Jan 2018 19:50:02 +0000 (UTC) Date: Tue, 2 Jan 2018 19:50:02 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-4168) Can't get json object stored as PDX using the new protocol MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 02 Jan 2018 19:50:14 -0000 [ https://issues.apache.org/jira/browse/GEODE-4168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16308608#comment-16308608 ] ASF subversion and git services commented on GEODE-4168: -------------------------------------------------------- Commit d0a6394d318aa486f50264e90a834dc8ccf76303 in geode's branch refs/heads/develop from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=d0a6394 ] GEODE-4168 Can't get json object stored as PDX using the new protocol GEODE-4116 Can't get PDX objects using the new protocol Added a distributed test to ensure end-to-end handling of JSON documents is functioning correctly. For GEODE-4168 I changed the class-check from equals() to isAssignableFrom(). For GEODE-4116 I modified the Get and GetAll operation handlers to inhibit deserialization of PdxInstances when reading values from the cache. The test for 4116 ensures that the value is in serialized form by putting it into a distributed Region in another JVM. There are unrelated javadoc changes in this commit for DM.java and a couple of classes in the protobuf Driver module. I also added constraints to the Regions in the Driver's unit test to get rid of compilation warnings. This closes #1209 > Can't get json object stored as PDX using the new protocol > ---------------------------------------------------------- > > Key: GEODE-4168 > URL: https://issues.apache.org/jira/browse/GEODE-4168 > Project: Geode > Issue Type: Bug > Components: client/server > Reporter: Dan Smith > > When trying to do a get for an json object using the new client protocol, users now receive this exception > {noformat} > [error 2017/12/25 12:05:12.985 PST server1 tid=0x83] Received Get request with unsupported encoding: {} > org.apache.geode.internal.protocol.serialization.exception.EncodingException: No protobuf encoding for type org.apache.geode.pdx.internal.PdxInstanceImpl > at org.apache.geode.internal.protocol.protobuf.v1.ProtobufSerializationService.encode(ProtobufSerializationService.java:86) > at org.apache.geode.internal.protocol.protobuf.v1.operations.GetRequestOperationHandler.process(GetRequestOperationHandler.java:63) > at org.apache.geode.internal.protocol.protobuf.v1.operations.GetRequestOperationHandler.process(GetRequestOperationHandler.java:38) > at org.apache.geode.internal.protocol.protobuf.v1.ProtobufOpsProcessor.processOperation(ProtobufOpsProcessor.java:82) > at org.apache.geode.internal.protocol.protobuf.v1.ProtobufOpsProcessor.process(ProtobufOpsProcessor.java:62) > at org.apache.geode.internal.protocol.protobuf.v1.ProtobufStreamProcessor.processOneMessage(ProtobufStreamProcessor.java:79) > at org.apache.geode.internal.protocol.protobuf.v1.ProtobufStreamProcessor.receiveMessage(ProtobufStreamProcessor.java:55) > at org.apache.geode.internal.protocol.protobuf.v1.ProtobufCachePipeline.processMessage(ProtobufCachePipeline.java:53) > at org.apache.geode.internal.cache.tier.sockets.GenericProtocolServerConnection.doOneMessage(GenericProtocolServerConnection.java:70) > at org.apache.geode.internal.cache.tier.sockets.ServerConnection.run(ServerConnection.java:1179) > {noformat} > This looks like a bug introduced by e24e038e69244cc655779634945896411e678080. ProtobufEncodingTypes.valueOf is trying to do a Class.equals between PdxInstance and PdxIntanceImpl. > This is somewhat related to GEODE-4116 in that it's another failure to get a pdx serialized value, but the underlying cause is different in this case. -- This message was sent by Atlassian JIRA (v6.4.14#64029)