FAQ
[ https://issues.apache.org/jira/browse/HIVE-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13763256#comment-13763256 ]

Xuefu Zhang commented on HIVE-5068:
-----------------------------------

[~brocknoland] Are you still working on this, given that HIVE-1511 is resolved?
Some queries fail due to XMLEncoder error on JDK7
-------------------------------------------------

Key: HIVE-5068
URL: https://issues.apache.org/jira/browse/HIVE-5068
Project: Hive
Issue Type: Sub-task
Reporter: Brock Noland

Looks like something snuck in that breaks the JDK 7 build:
{noformat}
Caused by: java.lang.Exception: XMLEncoder: discarding statement ArrayList.add(ASTNode);
... 106 more
Caused by: java.lang.RuntimeException: Cannot serialize object
at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:238)
at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:400)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:118)
at java.beans.Encoder.writeObject(Encoder.java:74)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
at java.beans.Encoder.writeExpression(Encoder.java:330)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
at java.beans.Encoder.writeObject(Encoder.java:74)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
at java.beans.Encoder.writeObject1(Encoder.java:258)
at java.beans.Encoder.cloneStatement(Encoder.java:271)
at java.beans.Encoder.writeStatement(Encoder.java:301)
at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:400)
... 105 more
Caused by: java.lang.RuntimeException: Cannot serialize object
at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
at java.beans.Encoder.getValue(Encoder.java:108)
at java.beans.Encoder.get(Encoder.java:252)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:112)
at java.beans.Encoder.writeObject(Encoder.java:74)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
at java.beans.Encoder.writeExpression(Encoder.java:330)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
at java.beans.Encoder.writeObject(Encoder.java:74)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
at java.beans.Encoder.writeExpression(Encoder.java:330)
at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:232)
... 118 more
Caused by: java.lang.InstantiationException: org.antlr.runtime.CommonToken
at java.lang.Class.newInstance(Class.java:359)
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
at java.beans.Statement.invokeInternal(Statement.java:292)
at java.beans.Statement.access$000(Statement.java:58)
at java.beans.Statement$2.run(Statement.java:185)
at java.security.AccessController.doPrivileged(Native Method)
at java.beans.Statement.invoke(Statement.java:182)
at java.beans.Expression.getValue(Expression.java:153)
at java.beans.Encoder.getValue(Encoder.java:105)
... 130 more
{noformat}
and
{noformat}
java.lang.RuntimeException: Cannot serialize object
at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:426)
at java.beans.XMLEncoder.writeObject(XMLEncoder.java:330)
at org.apache.hadoop.hive.ql.exec.Utilities.serializeObject(Utilities.java:611)
at org.apache.hadoop.hive.ql.plan.MapredWork.toXML(MapredWork.java:88)
at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinTaskDispatcher.processCurrentTask(CommonJoinTaskDispatcher.java:505)
at org.apache.hadoop.hive.ql.optimizer.physical.AbstractJoinTaskDispatcher.dispatch(AbstractJoinTaskDispatcher.java:182)
at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.dispatch(TaskGraphWalker.java:111)
at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.walk(TaskGraphWalker.java:194)
at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.startWalking(TaskGraphWalker.java:139)
at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinResolver.resolve(CommonJoinResolver.java:79)
at org.apache.hadoop.hive.ql.optimizer.physical.PhysicalOptimizer.optimize(PhysicalOptimizer.java:90)
at org.apache.hadoop.hive.ql.parse.MapReduceCompiler.compile(MapReduceCompiler.java:292)
at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8333)
at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:278)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:437)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:341)
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:973)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:885)
at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:348)
at org.apache.hadoop.hive.ql.QTestUtil.executeClient(QTestUtil.java:790)
at org.apache.hadoop.hive.cli.TestCliDriver.runTest(TestCliDriver.java:124)
at org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_auto_join25(TestCliDriver.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
Caused by: java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(MapredWork);
... 40 more
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Search Discussions

  • Brock Noland (JIRA) at Sep 10, 2013 at 5:23 pm
    [ https://issues.apache.org/jira/browse/HIVE-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13763264#comment-13763264 ]

    Brock Noland commented on HIVE-5068:
    ------------------------------------

    Yes. Post HIVE-1511 we still use xml encoder clone the query plan which doesn't work with Java 7.
    Some queries fail due to XMLEncoder error on JDK7
    -------------------------------------------------

    Key: HIVE-5068
    URL: https://issues.apache.org/jira/browse/HIVE-5068
    Project: Hive
    Issue Type: Sub-task
    Reporter: Brock Noland

    Looks like something snuck in that breaks the JDK 7 build:
    {noformat}
    Caused by: java.lang.Exception: XMLEncoder: discarding statement ArrayList.add(ASTNode);
    ... 106 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:238)
    at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:400)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:118)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeObject1(Encoder.java:258)
    at java.beans.Encoder.cloneStatement(Encoder.java:271)
    at java.beans.Encoder.writeStatement(Encoder.java:301)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:400)
    ... 105 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.Encoder.getValue(Encoder.java:108)
    at java.beans.Encoder.get(Encoder.java:252)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:112)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:232)
    ... 118 more
    Caused by: java.lang.InstantiationException: org.antlr.runtime.CommonToken
    at java.lang.Class.newInstance(Class.java:359)
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
    at java.beans.Statement.invokeInternal(Statement.java:292)
    at java.beans.Statement.access$000(Statement.java:58)
    at java.beans.Statement$2.run(Statement.java:185)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.beans.Statement.invoke(Statement.java:182)
    at java.beans.Expression.getValue(Expression.java:153)
    at java.beans.Encoder.getValue(Encoder.java:105)
    ... 130 more
    {noformat}
    and
    {noformat}
    java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:426)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:330)
    at org.apache.hadoop.hive.ql.exec.Utilities.serializeObject(Utilities.java:611)
    at org.apache.hadoop.hive.ql.plan.MapredWork.toXML(MapredWork.java:88)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinTaskDispatcher.processCurrentTask(CommonJoinTaskDispatcher.java:505)
    at org.apache.hadoop.hive.ql.optimizer.physical.AbstractJoinTaskDispatcher.dispatch(AbstractJoinTaskDispatcher.java:182)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.dispatch(TaskGraphWalker.java:111)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.walk(TaskGraphWalker.java:194)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.startWalking(TaskGraphWalker.java:139)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinResolver.resolve(CommonJoinResolver.java:79)
    at org.apache.hadoop.hive.ql.optimizer.physical.PhysicalOptimizer.optimize(PhysicalOptimizer.java:90)
    at org.apache.hadoop.hive.ql.parse.MapReduceCompiler.compile(MapReduceCompiler.java:292)
    at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8333)
    at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:278)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:437)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:341)
    at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:973)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:885)
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:348)
    at org.apache.hadoop.hive.ql.QTestUtil.executeClient(QTestUtil.java:790)
    at org.apache.hadoop.hive.cli.TestCliDriver.runTest(TestCliDriver.java:124)
    at org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_auto_join25(TestCliDriver.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
    Caused by: java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(MapredWork);
    ... 40 more
    {noformat}
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Brock Noland (JIRA) at Sep 10, 2013 at 8:29 pm
    [ https://issues.apache.org/jira/browse/HIVE-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Brock Noland resolved HIVE-5068.
    --------------------------------

         Resolution: Duplicate

    Since this JIRA is hard to follow, I am taking this issue forward in HIVE-5263.
    Some queries fail due to XMLEncoder error on JDK7
    -------------------------------------------------

    Key: HIVE-5068
    URL: https://issues.apache.org/jira/browse/HIVE-5068
    Project: Hive
    Issue Type: Sub-task
    Reporter: Brock Noland

    Looks like something snuck in that breaks the JDK 7 build:
    {noformat}
    Caused by: java.lang.Exception: XMLEncoder: discarding statement ArrayList.add(ASTNode);
    ... 106 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:238)
    at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:400)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:118)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeObject1(Encoder.java:258)
    at java.beans.Encoder.cloneStatement(Encoder.java:271)
    at java.beans.Encoder.writeStatement(Encoder.java:301)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:400)
    ... 105 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.Encoder.getValue(Encoder.java:108)
    at java.beans.Encoder.get(Encoder.java:252)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:112)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:232)
    ... 118 more
    Caused by: java.lang.InstantiationException: org.antlr.runtime.CommonToken
    at java.lang.Class.newInstance(Class.java:359)
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
    at java.beans.Statement.invokeInternal(Statement.java:292)
    at java.beans.Statement.access$000(Statement.java:58)
    at java.beans.Statement$2.run(Statement.java:185)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.beans.Statement.invoke(Statement.java:182)
    at java.beans.Expression.getValue(Expression.java:153)
    at java.beans.Encoder.getValue(Encoder.java:105)
    ... 130 more
    {noformat}
    and
    {noformat}
    java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:426)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:330)
    at org.apache.hadoop.hive.ql.exec.Utilities.serializeObject(Utilities.java:611)
    at org.apache.hadoop.hive.ql.plan.MapredWork.toXML(MapredWork.java:88)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinTaskDispatcher.processCurrentTask(CommonJoinTaskDispatcher.java:505)
    at org.apache.hadoop.hive.ql.optimizer.physical.AbstractJoinTaskDispatcher.dispatch(AbstractJoinTaskDispatcher.java:182)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.dispatch(TaskGraphWalker.java:111)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.walk(TaskGraphWalker.java:194)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.startWalking(TaskGraphWalker.java:139)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinResolver.resolve(CommonJoinResolver.java:79)
    at org.apache.hadoop.hive.ql.optimizer.physical.PhysicalOptimizer.optimize(PhysicalOptimizer.java:90)
    at org.apache.hadoop.hive.ql.parse.MapReduceCompiler.compile(MapReduceCompiler.java:292)
    at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8333)
    at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:278)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:437)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:341)
    at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:973)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:885)
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:348)
    at org.apache.hadoop.hive.ql.QTestUtil.executeClient(QTestUtil.java:790)
    at org.apache.hadoop.hive.cli.TestCliDriver.runTest(TestCliDriver.java:124)
    at org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_auto_join25(TestCliDriver.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
    Caused by: java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(MapredWork);
    ... 40 more
    {noformat}
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Xuefu Zhang (JIRA) at Sep 10, 2013 at 9:56 pm
    [ https://issues.apache.org/jira/browse/HIVE-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13763573#comment-13763573 ]

    Xuefu Zhang commented on HIVE-5068:
    -----------------------------------

    I think I'd like a little clarification here. The issue here is that some tests fail with JDK7. Looking at HIVE-5263, I'm not sure if that will solve this issue.

    Basically, I'm trying to figure out when we could put a closure on the parent JIRA (HIVE-4583), which now has all the dependent and child JIRA resolved except this one, which is marked as dupe of HIVE-5263. I'd like to know if we can surely to say that JDK7 is supported for Hive when HIVE-5263 is closed. Thanks.
    Some queries fail due to XMLEncoder error on JDK7
    -------------------------------------------------

    Key: HIVE-5068
    URL: https://issues.apache.org/jira/browse/HIVE-5068
    Project: Hive
    Issue Type: Sub-task
    Reporter: Brock Noland

    Looks like something snuck in that breaks the JDK 7 build:
    {noformat}
    Caused by: java.lang.Exception: XMLEncoder: discarding statement ArrayList.add(ASTNode);
    ... 106 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:238)
    at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:400)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:118)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeObject1(Encoder.java:258)
    at java.beans.Encoder.cloneStatement(Encoder.java:271)
    at java.beans.Encoder.writeStatement(Encoder.java:301)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:400)
    ... 105 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.Encoder.getValue(Encoder.java:108)
    at java.beans.Encoder.get(Encoder.java:252)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:112)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:232)
    ... 118 more
    Caused by: java.lang.InstantiationException: org.antlr.runtime.CommonToken
    at java.lang.Class.newInstance(Class.java:359)
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
    at java.beans.Statement.invokeInternal(Statement.java:292)
    at java.beans.Statement.access$000(Statement.java:58)
    at java.beans.Statement$2.run(Statement.java:185)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.beans.Statement.invoke(Statement.java:182)
    at java.beans.Expression.getValue(Expression.java:153)
    at java.beans.Encoder.getValue(Encoder.java:105)
    ... 130 more
    {noformat}
    and
    {noformat}
    java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:426)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:330)
    at org.apache.hadoop.hive.ql.exec.Utilities.serializeObject(Utilities.java:611)
    at org.apache.hadoop.hive.ql.plan.MapredWork.toXML(MapredWork.java:88)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinTaskDispatcher.processCurrentTask(CommonJoinTaskDispatcher.java:505)
    at org.apache.hadoop.hive.ql.optimizer.physical.AbstractJoinTaskDispatcher.dispatch(AbstractJoinTaskDispatcher.java:182)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.dispatch(TaskGraphWalker.java:111)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.walk(TaskGraphWalker.java:194)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.startWalking(TaskGraphWalker.java:139)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinResolver.resolve(CommonJoinResolver.java:79)
    at org.apache.hadoop.hive.ql.optimizer.physical.PhysicalOptimizer.optimize(PhysicalOptimizer.java:90)
    at org.apache.hadoop.hive.ql.parse.MapReduceCompiler.compile(MapReduceCompiler.java:292)
    at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8333)
    at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:278)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:437)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:341)
    at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:973)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:885)
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:348)
    at org.apache.hadoop.hive.ql.QTestUtil.executeClient(QTestUtil.java:790)
    at org.apache.hadoop.hive.cli.TestCliDriver.runTest(TestCliDriver.java:124)
    at org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_auto_join25(TestCliDriver.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
    Caused by: java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(MapredWork);
    ... 40 more
    {noformat}
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Brock Noland (JIRA) at Sep 10, 2013 at 10:00 pm
    [ https://issues.apache.org/jira/browse/HIVE-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13763577#comment-13763577 ]

    Brock Noland commented on HIVE-5068:
    ------------------------------------

    Hi,

    The issue at present is that with Java 7 many tests fail such as join29.q (and about 50 more). This is a regression over your previous work. HIVE-5263 fixes these failures for me on Java7.
    Some queries fail due to XMLEncoder error on JDK7
    -------------------------------------------------

    Key: HIVE-5068
    URL: https://issues.apache.org/jira/browse/HIVE-5068
    Project: Hive
    Issue Type: Sub-task
    Reporter: Brock Noland

    Looks like something snuck in that breaks the JDK 7 build:
    {noformat}
    Caused by: java.lang.Exception: XMLEncoder: discarding statement ArrayList.add(ASTNode);
    ... 106 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:238)
    at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:400)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:118)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeObject1(Encoder.java:258)
    at java.beans.Encoder.cloneStatement(Encoder.java:271)
    at java.beans.Encoder.writeStatement(Encoder.java:301)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:400)
    ... 105 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.Encoder.getValue(Encoder.java:108)
    at java.beans.Encoder.get(Encoder.java:252)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:112)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:232)
    ... 118 more
    Caused by: java.lang.InstantiationException: org.antlr.runtime.CommonToken
    at java.lang.Class.newInstance(Class.java:359)
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
    at java.beans.Statement.invokeInternal(Statement.java:292)
    at java.beans.Statement.access$000(Statement.java:58)
    at java.beans.Statement$2.run(Statement.java:185)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.beans.Statement.invoke(Statement.java:182)
    at java.beans.Expression.getValue(Expression.java:153)
    at java.beans.Encoder.getValue(Encoder.java:105)
    ... 130 more
    {noformat}
    and
    {noformat}
    java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:426)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:330)
    at org.apache.hadoop.hive.ql.exec.Utilities.serializeObject(Utilities.java:611)
    at org.apache.hadoop.hive.ql.plan.MapredWork.toXML(MapredWork.java:88)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinTaskDispatcher.processCurrentTask(CommonJoinTaskDispatcher.java:505)
    at org.apache.hadoop.hive.ql.optimizer.physical.AbstractJoinTaskDispatcher.dispatch(AbstractJoinTaskDispatcher.java:182)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.dispatch(TaskGraphWalker.java:111)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.walk(TaskGraphWalker.java:194)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.startWalking(TaskGraphWalker.java:139)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinResolver.resolve(CommonJoinResolver.java:79)
    at org.apache.hadoop.hive.ql.optimizer.physical.PhysicalOptimizer.optimize(PhysicalOptimizer.java:90)
    at org.apache.hadoop.hive.ql.parse.MapReduceCompiler.compile(MapReduceCompiler.java:292)
    at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8333)
    at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:278)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:437)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:341)
    at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:973)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:885)
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:348)
    at org.apache.hadoop.hive.ql.QTestUtil.executeClient(QTestUtil.java:790)
    at org.apache.hadoop.hive.cli.TestCliDriver.runTest(TestCliDriver.java:124)
    at org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_auto_join25(TestCliDriver.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
    Caused by: java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(MapredWork);
    ... 40 more
    {noformat}
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators
    For more information on JIRA, see: http://www.atlassian.com/software/jira
  • Xuefu Zhang (JIRA) at Sep 10, 2013 at 10:31 pm
    [ https://issues.apache.org/jira/browse/HIVE-5068?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13763630#comment-13763630 ]

    Xuefu Zhang commented on HIVE-5068:
    -----------------------------------

    Great! Thanks for the clarification, Brock. I will put HIVE-4583 dependent on HIVE-5263. Once HIVE-5263 closes, I will close HIVE-4583.
    Some queries fail due to XMLEncoder error on JDK7
    -------------------------------------------------

    Key: HIVE-5068
    URL: https://issues.apache.org/jira/browse/HIVE-5068
    Project: Hive
    Issue Type: Sub-task
    Reporter: Brock Noland

    Looks like something snuck in that breaks the JDK 7 build:
    {noformat}
    Caused by: java.lang.Exception: XMLEncoder: discarding statement ArrayList.add(ASTNode);
    ... 106 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:238)
    at java.beans.DefaultPersistenceDelegate.initialize(DefaultPersistenceDelegate.java:400)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:118)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeObject1(Encoder.java:258)
    at java.beans.Encoder.cloneStatement(Encoder.java:271)
    at java.beans.Encoder.writeStatement(Encoder.java:301)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:400)
    ... 105 more
    Caused by: java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.Encoder.getValue(Encoder.java:108)
    at java.beans.Encoder.get(Encoder.java:252)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:112)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.PersistenceDelegate.writeObject(PersistenceDelegate.java:115)
    at java.beans.Encoder.writeObject(Encoder.java:74)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:327)
    at java.beans.Encoder.writeExpression(Encoder.java:330)
    at java.beans.XMLEncoder.writeExpression(XMLEncoder.java:454)
    at java.beans.DefaultPersistenceDelegate.initBean(DefaultPersistenceDelegate.java:232)
    ... 118 more
    Caused by: java.lang.InstantiationException: org.antlr.runtime.CommonToken
    at java.lang.Class.newInstance(Class.java:359)
    at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:75)
    at sun.reflect.GeneratedMethodAccessor29.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:279)
    at java.beans.Statement.invokeInternal(Statement.java:292)
    at java.beans.Statement.access$000(Statement.java:58)
    at java.beans.Statement$2.run(Statement.java:185)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.beans.Statement.invoke(Statement.java:182)
    at java.beans.Expression.getValue(Expression.java:153)
    at java.beans.Encoder.getValue(Encoder.java:105)
    ... 130 more
    {noformat}
    and
    {noformat}
    java.lang.RuntimeException: Cannot serialize object
    at org.apache.hadoop.hive.ql.exec.Utilities$1.exceptionThrown(Utilities.java:598)
    at java.beans.XMLEncoder.writeStatement(XMLEncoder.java:426)
    at java.beans.XMLEncoder.writeObject(XMLEncoder.java:330)
    at org.apache.hadoop.hive.ql.exec.Utilities.serializeObject(Utilities.java:611)
    at org.apache.hadoop.hive.ql.plan.MapredWork.toXML(MapredWork.java:88)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinTaskDispatcher.processCurrentTask(CommonJoinTaskDispatcher.java:505)
    at org.apache.hadoop.hive.ql.optimizer.physical.AbstractJoinTaskDispatcher.dispatch(AbstractJoinTaskDispatcher.java:182)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.dispatch(TaskGraphWalker.java:111)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.walk(TaskGraphWalker.java:194)
    at org.apache.hadoop.hive.ql.lib.TaskGraphWalker.startWalking(TaskGraphWalker.java:139)
    at org.apache.hadoop.hive.ql.optimizer.physical.CommonJoinResolver.resolve(CommonJoinResolver.java:79)
    at org.apache.hadoop.hive.ql.optimizer.physical.PhysicalOptimizer.optimize(PhysicalOptimizer.java:90)
    at org.apache.hadoop.hive.ql.parse.MapReduceCompiler.compile(MapReduceCompiler.java:292)
    at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:8333)
    at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:278)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:437)
    at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:341)
    at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:973)
    at org.apache.hadoop.hive.ql.Driver.run(Driver.java:885)
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:259)
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:216)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:413)
    at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:348)
    at org.apache.hadoop.hive.ql.QTestUtil.executeClient(QTestUtil.java:790)
    at org.apache.hadoop.hive.cli.TestCliDriver.runTest(TestCliDriver.java:124)
    at org.apache.hadoop.hive.cli.TestCliDriver.testCliDriver_auto_join25(TestCliDriver.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at junit.framework.TestCase.runTest(TestCase.java:154)
    at junit.framework.TestCase.runBare(TestCase.java:127)
    at junit.framework.TestResult$1.protect(TestResult.java:106)
    at junit.framework.TestResult.runProtected(TestResult.java:124)
    at junit.framework.TestResult.run(TestResult.java:109)
    at junit.framework.TestCase.run(TestCase.java:118)
    at junit.framework.TestSuite.runTest(TestSuite.java:208)
    at junit.framework.TestSuite.run(TestSuite.java:203)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:520)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1060)
    at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:911)
    Caused by: java.lang.Exception: XMLEncoder: discarding statement XMLEncoder.writeObject(MapredWork);
    ... 40 more
    {noformat}
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators
    For more information on JIRA, see: http://www.atlassian.com/software/jira

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieshive, hadoop
postedSep 10, '13 at 5:19p
activeSep 10, '13 at 10:31p
posts6
users1
websitehive.apache.org

1 user in discussion

Xuefu Zhang (JIRA): 6 posts

People

Translate

site design / logo © 2021 Grokbase