diff --git a/src/main/java/org/jboss/netty/handler/codec/marshalling/CompatibleMarshallingDecoder.java b/src/main/java/org/jboss/netty/handler/codec/marshalling/CompatibleMarshallingDecoder.java index 8be1fccd9a..0ff8a1cfe2 100644 --- a/src/main/java/org/jboss/netty/handler/codec/marshalling/CompatibleMarshallingDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/marshalling/CompatibleMarshallingDecoder.java @@ -79,7 +79,7 @@ public class CompatibleMarshallingDecoder extends ReplayingDecoder { return obj; } catch (LimitingByteInput.TooBigObjectException e) { discardingTooLongFrame = true; - throw new TooLongFrameException("Object to big to unmarshal"); + throw new TooLongFrameException(); } finally { // Call close in a finally block as the ReplayingDecoder will throw an Error if not enough bytes are // readable. This helps to be sure that we do not leak resource