[
https://issues.apache.org/jira/browse/AVRO-1375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15635646#comment-15635646
]
Daniel Camacho commented on AVRO-1375:
--------------------------------------
I have a possible idea that we can discuss:
- Would it be possible to Wrap NettyTransceiver Java Class in Python with any
Java Callers from Python ( Pyjnius/Jnius, or Py4j) and create a
NettyTransceiver Object in Python?
> 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)