com.google.protobuf.InvalidProtocolBufferException: CodedInputStream encountered a malformed varint.

Google Groups | Glensimar Garcia | 1 year 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

    Own offline maps with seamarks

    Google Groups | 1 year ago | Glensimar Garcia
    com.google.protobuf.InvalidProtocolBufferException: CodedInputStream encountered a malformed varint.
  2. 0

    hadoop Protocol message was too large. May be malicious. Use CodedInputStream.setSizeLimit() to increase the size limit

    Stack Overflow | 2 years ago | kostas.kougios
    java.lang.IllegalStateException: com.google.protobuf.InvalidProtocolBufferException: Protocol message was too large. May be malicious. Use CodedInputStream.setSizeLimit() to increase the size limit.

    Root Cause Analysis

    1. com.google.protobuf.InvalidProtocolBufferException

      CodedInputStream encountered a malformed varint.

      at com.google.protobuf.InvalidProtocolBufferException.malformedVarint()
    2. Protocol Buffer Java API
      CodedInputStream.readSInt64
      1. com.google.protobuf.InvalidProtocolBufferException.malformedVarint(InvalidProtocolBufferException.java:84)
      2. com.google.protobuf.CodedInputStream.readRawVarint64SlowPath(CodedInputStream.java:784)
      3. com.google.protobuf.CodedInputStream.readRawVarint64(CodedInputStream.java:770)
      4. com.google.protobuf.CodedInputStream.readSInt64(CodedInputStream.java:590)
      4 frames
    3. osmosis-osm-binary
      Osmformat$DenseNodes$1.parsePartialFrom
      1. org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes.<init>(Osmformat.java:9269)
      2. org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes.<init>(Osmformat.java:9172)
      3. org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes$1.parsePartialFrom(Osmformat.java:9352)
      4. org.openstreetmap.osmosis.osmbinary.Osmformat$DenseNodes$1.parsePartialFrom(Osmformat.java:9347)
      4 frames
    4. Protocol Buffer Java API
      CodedInputStream.readMessage
      1. com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:495)
      1 frame
    5. osmosis-osm-binary
      Osmformat$PrimitiveGroup$1.parsePartialFrom
      1. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup.<init>(Osmformat.java:3428)
      2. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup.<init>(Osmformat.java:3368)
      3. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup$1.parsePartialFrom(Osmformat.java:3496)
      4. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveGroup$1.parsePartialFrom(Osmformat.java:3491)
      4 frames
    6. Protocol Buffer Java API
      CodedInputStream.readMessage
      1. com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.java:495)
      1 frame
    7. osmosis-osm-binary
      Osmformat$PrimitiveBlock$1.parsePartialFrom
      1. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock.<init>(Osmformat.java:2421)
      2. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock.<init>(Osmformat.java:2356)
      3. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock$1.parsePartialFrom(Osmformat.java:2471)
      4. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock$1.parsePartialFrom(Osmformat.java:2466)
      4 frames
    8. Protocol Buffer Java API
      AbstractParser.parseFrom
      1. com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:104)
      2. com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:124)
      3. com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:129)
      4. com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
      4 frames
    9. osmosis-osm-binary
      BlockInputStream.process
      1. org.openstreetmap.osmosis.osmbinary.Osmformat$PrimitiveBlock.parseFrom(Osmformat.java:2712)
      2. org.openstreetmap.osmosis.osmbinary.BinaryParser.handleBlock(BinaryParser.java:66)
      3. org.openstreetmap.osmosis.osmbinary.file.FileBlock.process(FileBlock.java:135)
      4. org.openstreetmap.osmosis.osmbinary.file.BlockInputStream.process(BlockInputStream.java:34)
      4 frames
    10. crosby.binary.osmosis
      OsmosisReader.run
      1. crosby.binary.osmosis.OsmosisReader.run(OsmosisReader.java:45)
      1 frame
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame