Return-Path: Delivered-To: apmail-hive-dev-archive@www.apache.org Received: (qmail 96918 invoked from network); 29 Oct 2010 22:53:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Oct 2010 22:53:46 -0000 Received: (qmail 95054 invoked by uid 500); 29 Oct 2010 22:53:45 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 95023 invoked by uid 500); 29 Oct 2010 22:53:45 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 95015 invoked by uid 500); 29 Oct 2010 22:53:45 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 95012 invoked by uid 99); 29 Oct 2010 22:53:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 22:53:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Oct 2010 22:53:43 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9TMrM44001619 for ; Fri, 29 Oct 2010 22:53:22 GMT Message-ID: <33138179.151711288392802271.JavaMail.jira@thor> Date: Fri, 29 Oct 2010 18:53:22 -0400 (EDT) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Subject: [jira] Updated: (HIVE-1686) XMLEncoder failing to serialize classes containing Enums for non-SUN JREs In-Reply-To: <16084983.500231285953153474.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carl Steinbach updated HIVE-1686: --------------------------------- Fix Version/s: (was: 0.5.1) > XMLEncoder failing to serialize classes containing Enums for non-SUN JREs > ------------------------------------------------------------------------- > > Key: HIVE-1686 > URL: https://issues.apache.org/jira/browse/HIVE-1686 > Project: Hive > Issue Type: Bug > Components: Serializers/Deserializers > Affects Versions: 0.5.0 > Environment: SLES 10 SP2, IBM Java 1.6 SR8 > Reporter: Stephen Watt > Priority: Minor > Attachments: HIVE-1686.patch > > > If one is using Hive 0.5 with IBM Java 1.6 certain Hive Queries will fail in the Hive CLI, such as "SELECT Count(1) from TABLE" with the error "failed to write expression: GenericUDAFEvaluator$Mode=Class.new()". This is due to the fact that XMLEncoder in the JRE's beans.jar is not able to serialize Classes with Enums without an explicitly having an EnumPersistenceDelegate assigned to each class that needs to be serialized. This was an issue in SUN JDK 1.5 but not 1.6 and is still an issue in IBM Java 1.6. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.