avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien GLON (JIRA) <j...@apache.org>
Subject [jira] [Commented] (AVRO-1375) Python to Java RPC call error
Date Tue, 02 Aug 2016 12:43:20 GMT

    [ https://issues.apache.org/jira/browse/AVRO-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15403904#comment-15403904
] 

S├ębastien GLON commented on AVRO-1375:
--------------------------------------

I have the same error than you;
I think this is do to Netty.

Flume and Java Avro support only NettyTransceiver.
but Python does not have Library for this protocol; it only support TCP and HTTP transceiver.

Have you any solution to workaround this?

> Python to Java RPC call error
> -----------------------------
>
>                 Key: AVRO-1375
>                 URL: https://issues.apache.org/jira/browse/AVRO-1375
>             Project: Avro
>          Issue Type: Bug
>          Components: java, python
>    Affects Versions: 1.7.4, 1.7.5
>         Environment: Client MacOSx64x, Server Windows7 64x
>            Reporter: LEE, ChaeEung
>            Priority: Critical
>              Labels: patch
>
> first of all, i'm not goot at english.. if you can't understant what i'm saying .. just
loot at source code and error message below~ 
> thank you.
> == Situation ==
> I'm using avro-quick-start sample code using github...
> It works fine with java-to-java, python-to-python, java-to-python but It not working...
java-to-python..
> I think it caused by difference of data type between java and mac-python-64x
> == avro scheme ==
> mail.avpr
> {"namespace": "example.proto",
>  "protocol": "Mail",
>  "types": [
>      {"name": "Message", "type": "record",
>       "fields": [
>           {"name": "to",   "type": "string"},
>           {"name": "from", "type": "string"},
>           {"name": "body", "type": "string"}
>       ]
>      }
>  ],
>  "messages": {
>      "send": {
>          "request": [{"name": "message", "type": "Message"}],
>          "response": "string"
>      }
>  }
> }
> == Exception Message ==
> 877 [pool-2-thread-1] WARN org.apache.avro.ipc.NettyServer - Unexpected exception from
downstream.
> org.apache.avro.AvroRuntimeException: Excessively large list allocation request detected:
539959368 items! Connection closed.
> 	at org.apache.avro.ipc.NettyTransportCodec$NettyFrameDecoder.decodePackHeader(NettyTransportCodec.java:167)
> 	at org.apache.avro.ipc.NettyTransportCodec$NettyFrameDecoder.decode(NettyTransportCodec.java:139)
> 	at org.jboss.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:286)
> 	at org.jboss.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:208)
> 	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)
> 	at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)
> 	at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:94)
> 	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.processSelectedKeys(AbstractNioWorker.java:364)
> 	at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:238)
> 	at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:38)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:724)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message