Huge output causes UTFDataFormatException
ShinyaYoshida
bitterfoxc at gmail.com
Thu Apr 23 00:53:10 UTC 2015
I've just updated my patch to adjust the current directory:
http://cr.openjdk.java.net/~shinyafox/kulla/201504201/webrev.02/
Robert, could you review my patch?
Regards,
shinyafox(Shinya Yoshida)
2015-04-20 13:40 GMT+09:00 ShinyaYoshida <bitterfoxc at gmail.com>:
> I've moved my test case into SimpleRegressionTest.
> New patch is here:
> http://cr.openjdk.java.net/~shinyafox/kulla/201504201/webrev.01/
>
> Regards,
> shinyafox(Shinya Yoshida)
>
> 2015-04-20 1:18 GMT+09:00 ShinyaYoshida <bitterfoxc at gmail.com>:
>
>> Hi,
>> I met UTFDataFormatException with a huge output:
>>
>> -> java.util.stream.Stream.generate(() -> "
>> ").limit(65534).collect(java.util.stream.Collectors.joining())
>> Exception in thread "main" java.io.UTFDataFormatException
>> at
>> java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2169)
>> at
>> java.io.ObjectOutputStream$BlockDataOutputStream.writeUTF(ObjectOutputStream.java:2012)
>> at java.io.ObjectOutputStream.writeUTF(ObjectOutputStream.java:869)
>> at remote.RemoteAgent.commandLoop(RemoteAgent.java:106)
>> at remote.RemoteAgent.main(RemoteAgent.java:54)
>> | State engine terminated. See /history
>> | Resetting...
>>
>> The cause is rejecting the String which is over 65536 UTF-length in
>> OOW#writeUTF.
>> I think we should use OOW#writeObject.
>>
>> Here is my patch & test, please review my patch:
>> http://cr.openjdk.java.net/~shinyafox/kulla/201504201/webrev.00/
>>
>> Regards,
>> shinyafox(Shinya Yoshida)
>>
>>
>
More information about the kulla-dev
mailing list