Hi,

I have a standalone java test that repeatedly read 10 protobuf
messages (my repro test).  After a while it throws an
ArrayIndexOutOfBoundsException.  Other ppl have also noticed the
ArrayIndexOutOfBounds in their environment.  It's always in
CodedInputStream although the specific method may be different, i.e.
readByte, readString.  Has anyone seen this before?

My protobuf is compiled with 2.2 and I was using the 2.2 runtime.
I've tried using the 2.3 runtime but no difference.

I was using the IBM JDK 1.6 SR7 on linux, the problem seems to go away
when I switched to IBM JDK 1.6 SR9 FP2 (on linux).

caught exception in loop 375731
java.lang.ArrayIndexOutOfBoundsException
        at
com.google.protobuf.CodedInputStream.readRawByte(CodedInputStream.jav
a:677)
        at
com.google.protobuf.CodedInputStream.readRawVarint32(CodedInputStream           
                            .java:
317)
        at
com.google.protobuf.CodedInputStream.readTag(CodedInputStream.java:
86                                       )
        at com.ibm.ocr.protobuf.GuardProtos$Application_data
$Builder.mergeFrom(G
uardProtos.java:1283)
        at com.ibm.ocr.protobuf.GuardProtos$Application_data
$Builder.mergeFrom(G
uardProtos.java:1)
        at
com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.jav
a:256)
        at com.ibm.ocr.protobuf.GuardProtos$Server_reply
$Builder.mergeFrom(Guard
Protos.java:6377)
        at com.ibm.ocr.protobuf.GuardProtos$Server_reply
$Builder.mergeFrom(Guard
Protos.java:1)
        at
com.google.protobuf.CodedInputStream.readMessage(CodedInputStream.jav
a:256)
        at com.ibm.ocr.protobuf.GuardProtos$Guard_ds_message
$Builder.mergeFrom(G
uardProtos.java:14548)
        at com.ibm.ocr.protobuf.GuardProtos$Guard_ds_message
$Builder.mergeFrom(G
uardProtos.java:1)
        at com.google.protobuf.AbstractMessage
$Builder.mergeFrom(AbstractMessage                                       .java:
244)
        at com.google.protobuf.AbstractMessage
$Builder.mergeFrom(AbstractMessage                                       .java:
1)
        at com.google.protobuf.AbstractMessageLite
$Builder.mergeFrom(AbstractMes
sageLite.java:160)
        at com.google.protobuf.AbstractMessage
$Builder.mergeFrom(AbstractMessage                                       .java:
642)
        at com.google.protobuf.AbstractMessage
$Builder.mergeFrom(AbstractMessage                                       .java:
1)
        at com.google.protobuf.AbstractMessageLite
$Builder.mergeFrom(AbstractMes
sageLite.java:152)
        at com.google.protobuf.AbstractMessage
$Builder.mergeFrom(AbstractMessage                                       .java:
635)
        at com.ibm.ocr.protobuf.GuardProtos
$Guard_ds_message.parseFrom(GuardProt
os.java:14294)
        at ReadProto.parseGuardMessage(ReadProto.java:104)
        at ReadProto.main(ReadProto.java:25)

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to