Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0ABBF200CED for ; Fri, 18 Aug 2017 09:26:44 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 0940316C695; Fri, 18 Aug 2017 07:26:44 +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 4CF1616C691 for ; Fri, 18 Aug 2017 09:26:43 +0200 (CEST) Received: (qmail 87642 invoked by uid 500); 18 Aug 2017 07:26:37 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 87628 invoked by uid 99); 18 Aug 2017 07:26:37 -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; Fri, 18 Aug 2017 07:26:37 +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 BD2731807D3 for ; Fri, 18 Aug 2017 07:26:36 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.125 X-Spam-Level: *** X-Spam-Status: No, score=3.125 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FORGED_YAHOO_RCVD=1.022, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_NEUTRAL=0.652] 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 of1wQfwvnyWr for ; Fri, 18 Aug 2017 07:26:35 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 370A15F245 for ; Fri, 18 Aug 2017 07:26:35 +0000 (UTC) Received: from static.162.255.23.37.macminivault.com (unknown [162.255.23.37]) by mwork.nabble.com (Postfix) with ESMTP id C6A765D33F975 for ; Fri, 18 Aug 2017 00:26:27 -0700 (MST) Date: Fri, 18 Aug 2017 00:26:27 -0700 (MST) From: franck102 To: user@ignite.apache.org Message-ID: <1503041187808-16276.post@n6.nabble.com> Subject: JDBC store Date deserialization problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Fri, 18 Aug 2017 07:26:44 -0000 Hi all, I am using a JDBC store with storeKeepBinary enabled, and getting a single value that has a SQL date column. The JdbcTypeField for that column has javaFieldType == java.util.Date. The JdbcTypesDefaultTransformer however return java.sql.Date as a value for the field: As a result the BinaryObjectBuilder writes that field using the optimized marshaller (type id -2); and on the client side deserialization fails because the readers expects typeId=11 for that field (java.util.Date). I can't use java.sql.Date in my Pojo (it is used in other non-SQL stores)... shouldn't the transformer be improved to create a java.util.Date value? Thanks, Franck -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/JDBC-store-Date-deserialization-problem-tp16276.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.