com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).

Google Groups | Unknown author | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    parsing bidrequest from google ad exchange

    Google Groups | 2 years ago | Unknown author
    com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
  2. 0

    io.netty.handler.codec.DecoderException: com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero)

    Stack Overflow | 4 years ago | Alexander Potapov
    com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).

    Root Cause Analysis

    1. com.google.protobuf.InvalidProtocolBufferException

      Protocol message contained an invalid tag (zero).

      at com.google.protobuf.InvalidProtocolBufferException.invalidTag()
    2. Protocol Buffer Java API
      GeneratedMessage$ExtendableMessage.parseUnknownField
      1. com.google.protobuf.InvalidProtocolBufferException.invalidTag(InvalidProtocolBufferException.java:89)
      2. com.google.protobuf.CodedInputStream.readTag(CodedInputStream.java:158)
      3. com.google.protobuf.UnknownFieldSet$Builder.mergeFrom(UnknownFieldSet.java:492)
      4. com.google.protobuf.UnknownFieldSet$Builder.mergeFrom(UnknownFieldSet.java:611)
      5. com.google.protobuf.UnknownFieldSet$Builder.mergeFrom(UnknownFieldSet.java:281)
      6. com.google.protobuf.CodedInputStream.readGroup(CodedInputStream.java:424)
      7. com.google.protobuf.UnknownFieldSet$Builder.mergeFieldFrom(UnknownFieldSet.java:520)
      8. com.google.protobuf.MessageReflection.mergeFieldFrom(MessageReflection.java:746)
      9. com.google.protobuf.GeneratedMessage$ExtendableMessage.parseUnknownField(GeneratedMessage.java:735)
      9 frames
    3. com.google.openrtb
      OpenRtb$BidRequest$Impression$1.parsePartialFrom
      1. com.google.openrtb.OpenRtb$BidRequest$Impression.<init>(OpenRtb.java:8048)
      2. com.google.openrtb.OpenRtb$BidRequest$Impression.<init>(OpenRtb.java:8004)
      3. com.google.openrtb.OpenRtb$BidRequest$Impression$1.parsePartialFrom(OpenRtb.java:8180)
      4. com.google.openrtb.OpenRtb$BidRequest$Impression$1.parsePartialFrom(OpenRtb.java:8175)
      4 frames
    4. Protocol Buffer Java API
      CodedInputStream.readMessage
      1. com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:495)
      1 frame
    5. com.google.openrtb
      OpenRtb$BidRequest$1.parsePartialFrom
      1. com.google.openrtb.OpenRtb$BidRequest.<init>(OpenRtb.java:7483)
      2. com.google.openrtb.OpenRtb$BidRequest.<init>(OpenRtb.java:7422)
      3. com.google.openrtb.OpenRtb$BidRequest$1.parsePartialFrom(OpenRtb.java:7652)
      4. com.google.openrtb.OpenRtb$BidRequest$1.parsePartialFrom(OpenRtb.java:7647)
      4 frames
    6. Protocol Buffer Java API
      AbstractParser.parseFrom
      1. com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:137)
      2. com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:168)
      3. com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:180)
      4. com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:185)
      5. com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
      5 frames
    7. adx
      RequestHandler.channelRead0
      1. adx.RequestHandler.channelRead0(RequestHandler.java:67)
      1 frame
    8. Netty
      DefaultThreadFactory$DefaultRunnableDecorator.run
      1. io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105)
      2. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
      3. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
      4. io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103)
      5. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
      6. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
      7. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:247)
      8. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
      9. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
      10. io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:242)
      11. io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:147)
      12. io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339)
      13. io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324)
      14. io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:847)
      15. io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
      16. io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
      17. io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:430)
      18. io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:384)
      19. io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
      20. io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111)
      21. io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
      21 frames
    9. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame