com.dyuproject.protostuff.ProtobufException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either than the input has been truncated or that an embedded message misreported its own length.

Google Groups | Anil Pandge | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Protostuff serialization failing for payload with size between 32839 to 32936 bytes.

    Google Groups | 2 years ago | Anil Pandge
    com.dyuproject.protostuff.ProtobufException: While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either than the input has been truncated or that an embedded message misreported its own length.

    Root Cause Analysis

    1. com.dyuproject.protostuff.ProtobufException

      While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either than the input has been truncated or that an embedded message misreported its own length.

      at com.dyuproject.protostuff.ProtobufException.truncatedMessage()
    2. com.dyuproject.protostuff
      GraphIOUtil.mergeDelimitedFrom
      1. com.dyuproject.protostuff.ProtobufException.truncatedMessage(ProtobufException.java:77)
      2. com.dyuproject.protostuff.CodedInput.readRawVarint32(CodedInput.java:450)
      3. com.dyuproject.protostuff.GraphIOUtil.mergeDelimitedFrom(GraphIOUtil.java:190)
      3 frames
    3. com.ea.cascade
      ProtostuffBugTest.main
      1. com.ea.cascade.tools.utils.SampleClass.readExternal(SampleClass.java:62)
      2. com.ea.cascade.tools.utils.ProtostuffBugTest.deserialize(ProtostuffBugTest.java:60)
      3. com.ea.cascade.tools.utils.ProtostuffBugTest.main(ProtostuffBugTest.java:27)
      3 frames