Menu

SEQ -> CHOICE -> SEQ-> SEQ throws IllegalArgu

2009-03-02
2014-12-13
  • phani anumolu

    phani anumolu - 2009-03-02

    SEQ -> CHOICE -> SEQ-> SEQ throws IllegalArgumentExceptionSEQ -> CHOICE -> SEQ-> SEQ throws IllegalArgumentException

    Problem:
    My ASN file contains a complex Sequence with Choice and sequence of sequences. And this sequence contains optional fields too.

    If i populate those optional fields, am able to encode and decode using the provided binarynotesd.jar.

    If i didn't populated those optional fields, am able to encode the java object successfully and failing to decode the same.

    Exception:
    java.lang.IllegalArgumentException: Sequence 'class com.test.My.SeqType'
    size is incorrect! Must be: 6. Received: 7

    To resolve this exception, i did a code walk thru and fixed the issue in Decoder.java.
    Now am able encode and decode the java object without populating the optional fields.

    I want to know the process to upload/submit the modified sources for the purpose of public consumption as this is an Open Source Framework, i want to contribute to this framework.

     
  • Roman Kislukhin

    Roman Kislukhin - 2014-12-13

    Could you post patch for the issue or patched Decoder.java? I have the same problem.

     

Log in to post a comment.

MongoDB Logo MongoDB