Sergey Shelukhin created THRIFT-3352:
----------------------------------------
Summary: Thrift cannot read read-only ByteBuffer
Key: THRIFT-3352
URL: https://issues.apache.org/jira/browse/THRIFT-3352
Project: Thrift
Issue Type: Bug
Affects Versions: 0.9.2
Reporter: Sergey Shelukhin
I get this error after setting a binary field in a return object from some
Thrift API to a read-only buffer:
{noformat}
server.TThreadPoolServer: Error occurred during processing of message.
java.nio.ReadOnlyBufferException
at java.nio.ByteBuffer.array(ByteBuffer.java:996)
at
org.apache.thrift.protocol.TCompactProtocol.writeBinary(TCompactProtocol.java:368)
at [my generated type]$[blah]StandardScheme.write
{noformat}
Is there a good reason why it cannot send from read-only buffers? There's no
need to modify them.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)