java.lang.RuntimeException

com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web5105

  • com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.
  • com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.
  • via Google Groups by Herman Lintvelt [Gmail], 4 months ago
    com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type.
  • Stack trace

    • java.lang.RuntimeException: com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type. at retrofit2.converter.protobuf.ProtoResponseBodyConverter.convert(ProtoResponseBodyConverter.java:40) at retrofit2.converter.protobuf.ProtoResponseBodyConverter.convert(ProtoResponseBodyConverter.java:26) at retrofit2.ServiceMethod.toResponse(ServiceMethod.java:116) at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:211) at retrofit2.OkHttpCall.execute(OkHttpCall.java:174) at com.testing.InvokeTestingPOS.main(InvokeTestingPOS.java:31) Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message tag had invalid wire type. at com.google.protobuf.InvalidProtocolBufferException.invalidWireType(InvalidProtocolBufferException.java:99) at com.google.protobuf.UnknownFieldSet$Builder.mergeFieldFrom(UnknownFieldSet.java:515) at com.google.protobuf.GeneratedMessage.parseUnknownField(GeneratedMessage.java:205) at json2pb.TestingInfo.<init>(TestingInfo.java:61) at json2pb.TestingInfo.<init>(TestingInfo.java:9) at json2pb.TestingInfo$1.parsePartialFrom(TestingInfo.java:131) at json2pb.TestingInfo$1.parsePartialFrom(TestingInfo.java:126) at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:192) at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:209) at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49) at retrofit2.converter.protobuf.ProtoResponseBodyConverter.convert(ProtoResponseBodyConverter.java:38)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 11 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago