You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Stephen Watt (JIRA)" <ji...@apache.org> on 2010/10/01 19:12:33 UTC

[jira] Created: (HIVE-1686) XMLEncoder failing to serialize classes containing Enums for non-SUN JREs

XMLEncoder failing to serialize classes containing Enums for non-SUN JREs
-------------------------------------------------------------------------

                 Key: HIVE-1686
                 URL: https://issues.apache.org/jira/browse/HIVE-1686
             Project: Hadoop 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
             Fix For: 0.5.1


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.


[jira] Commented: (HIVE-1686) XMLEncoder failing to serialize classes containing Enums for non-SUN JREs

Posted by "Stephen Watt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916966#action_12916966 ] 

Stephen Watt commented on HIVE-1686:
------------------------------------

This issue will also be fixed in the JRE with the next release of IBM Java 1.6 (SR9) around the Dec 2010 timeframe.

> XMLEncoder failing to serialize classes containing Enums for non-SUN JREs
> -------------------------------------------------------------------------
>
>                 Key: HIVE-1686
>                 URL: https://issues.apache.org/jira/browse/HIVE-1686
>             Project: Hadoop 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
>             Fix For: 0.5.1
>
>         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.


[jira] Updated: (HIVE-1686) XMLEncoder failing to serialize classes containing Enums for non-SUN JREs

Posted by "Stephen Watt (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HIVE-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stephen Watt updated HIVE-1686:
-------------------------------

    Attachment: HIVE-1686.patch

> XMLEncoder failing to serialize classes containing Enums for non-SUN JREs
> -------------------------------------------------------------------------
>
>                 Key: HIVE-1686
>                 URL: https://issues.apache.org/jira/browse/HIVE-1686
>             Project: Hadoop 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
>             Fix For: 0.5.1
>
>         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.


[jira] Updated: (HIVE-1686) XMLEncoder failing to serialize classes containing Enums for non-SUN JREs

Posted by "Carl Steinbach (JIRA)" <ji...@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.


[jira] Commented: (HIVE-1686) XMLEncoder failing to serialize classes containing Enums for non-SUN JREs

Posted by "Stephen Watt (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HIVE-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12916964#action_12916964 ] 

Stephen Watt commented on HIVE-1686:
------------------------------------

To resolve this issue, I have provided a patch that has added a variety of enumPersistenceDelegates for the classes throwing this Exception to the XMLEncoder in org.apache.hadoop.hive.ql.exec.Utilities.serializeMapRedWork()


> XMLEncoder failing to serialize classes containing Enums for non-SUN JREs
> -------------------------------------------------------------------------
>
>                 Key: HIVE-1686
>                 URL: https://issues.apache.org/jira/browse/HIVE-1686
>             Project: Hadoop 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
>             Fix For: 0.5.1
>
>         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.