You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Scott Carey (JIRA)" <ji...@apache.org> on 2010/05/20 23:52:19 UTC
[jira] Commented: (HADOOP-6782) TestAvroRpc fails with avro-1.3.1
and avro-1.3.2
[ https://issues.apache.org/jira/browse/HADOOP-6782?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12869785#action_12869785 ]
Scott Carey commented on HADOOP-6782:
-------------------------------------
I think I have seen something similar with Avro in the past, when using the Specific API.
Does this stop if the Datum that is being written is not recycled? I think it is related to recycling an object with a Union and having the underlying type of the union differ from one use to another. Is the union above a union of "string" and something other than "null"?
> TestAvroRpc fails with avro-1.3.1 and avro-1.3.2
> ------------------------------------------------
>
> Key: HADOOP-6782
> URL: https://issues.apache.org/jira/browse/HADOOP-6782
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Jitendra Nath Pandey
>
> I tried to upgrade Hadoop-common to use avro-1.3.1. TestAvroRpc fails with following exceptions.
> Same exception is seen with avro-1.3.2 as well.
> org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.ipc.TestAvroRpc$TestImpl.echo(java.lang.String)
> at org.apache.avro.generic.GenericData.resolveUnion(GenericData.java:340)
> at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:67)
> at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:116)
> at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:55)
> at org.apache.avro.specific.SpecificResponder.writeError(SpecificResponder.java:81)
> at org.apache.avro.ipc.Responder.respond(Responder.java:137)
> at org.apache.hadoop.ipc.AvroRpcEngine$TunnelResponder.call(AvroRpcEngine.java:183)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:342)
> at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1350)
> at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1346)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:396)
> at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:738)
> at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1344)
> 2010-05-20 13:50:39,227 INFO ipc.Server (Server.java:run(1358)) - IPC Server handler 0 on 54672, call call(org.apache.hadoop.ipc.AvroRpcEngine$BufferListWritable@7bcd280b) from 127.0.0.1:54673: error: java.io.IOException: org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.ipc.TestAvroRpc$TestImpl.echo(java.lang.String)
> java.io.IOException: org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: Not in union ["string"]: org.apache.avro.AvroRuntimeException: java.lang.NoSuchMethodException: org.apache.hadoop.ipc.TestAvroRpc$TestImpl.echo(java.lang.String)
> at org.apache.avro.generic.GenericData.resolveUnion(GenericData.java:340)
> at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:67)
> at org.apache.avro.reflect.ReflectDatumWriter.write(ReflectDatumWriter.java:116)
> at org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:55)
> at org.apache.avro.specific.SpecificResponder.writeError(SpecificResponder.java:81)
> at org.apache.avro.ipc.Responder.respond(Responder.java:146)
> at org.apache.hadoop.ipc.AvroRpcEngine$TunnelResponder.call(AvroRpcEngine.java:183)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.apache.hadoop.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:342)
> at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1350)
> at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1346)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:396)
> at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:738)
> at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1344)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.