3 Dec 2007 17:15
bug in Jinterface sending doubles?
Sebastian Egner <s.egner <at> specs.de>
2007-12-03 16:15:30 GMT
2007-12-03 16:15:30 GMT
Hello!
There seems to be a bug in Jinterface (from R11B-5) related to sending
doubles from a Java node to an Erlang node:
=ERROR REPORT==== 3-Dec-2007::16:56:35 ===
Got invalid data on distribution channel, offending packet is:
<<112,131,104,4,97,6,103,100,0,19,115,112,101,99,115,112,108,97,110,64,103,111,108,100,115,116,111,110,101,0,0,0,1,0,0,0,0,1,100,0,0,100,0,2,102,103,131,104,3,100,0,9,36,103,101,110,95,99,97,108,108,104,2,103,100,0,19,115,112,101,99,115,112,108,97,110,64,103,111,108,100,115,116,111,110,101,0,0,0,1,0,0,0,0,1,114,0,3,100,0,19,115,112,101,99,115,112,108,97,110,64,103,111,108,100,115,116,111,110,101,1,0,0,0,13,0,0,0,0,0,0,0,0,104,3,100,0,7,115,101,116,95,118,97,108,100,0,7,117,101,110,101,114,103,121,99,48,69,45,50,48,101,43,48,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0>>
My guess is that the offending value, the notorious (double)0.0, is not
properly encoded by OtpOutputStream.write_double():
> io:format("~s~n", [TheStuffAboveAsAListOfAsciiValues]).
"blabla...uenergyc0E-20e+00...moreblabla"
Sebastian.
_______________________________________________
erlang-bugs mailing list
erlang-bugs <at> erlang.org
http://www.erlang.org/mailman/listinfo/erlang-bugs
RSS Feed