Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.10.4
-
None
-
Patch Available
-
Unknown
Description
The MinaUdpProtocolCodecFactory on the consumer side decodes data from an udp datagram to a byte[].
byte[] bytes = context.getTypeConverter().convertTo(byte[].class, in);
On the provider side where it gets back to the wire it gets converted to a string:
String value = context.getTypeConverter().convertTo(String.class, message);
and then set to the ByteBuffer with the given charset.
The result is that the original datagram is not valid anymore. The default codec should the data convert to a byte array or keep the data as byte array.