In TextWireFormat.java: the methods writeUTF/readUTF are used in the code path to deliver messages from an HTTP connected broker.
public void marshal(Object command, DataOutput out) throws IOException {
out.writeUTF(marshalText(command));
}
public Object unmarshal(DataInput in) throws IOException {
String text = in.readUTF();
return unmarshalText(text);
}
These methods limit the max message size to 64K. Messages sent to an HTTP connected broker do not have the same limitation.
Problem first reported in activemq-users with the subject "UTFDataFormatException in broker when using a http transportConnector".
THanks,
Eddie