Skip to main content

ArrayIndexOutofboundException observed while creating the ProgramAssociationTableImpl

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2010-09-21

Some times i am observing the ArrayIndexOutofboundException in ProgramAssociationTableImple constructor.
As per the code when native layer detects PAT acquired/version chnage then it fill the data required for the PAT in SIDatabaseImpl.c and notify to the java layer.
Native layer creating the byte array which can hold the valid components and same byte arry it is passing to java layer, java layer parsing the byte array. Practically we should not see Exception.
Exception logs :
<span style="color: black"><font size="2">java.lang.ArrayIndexOutOfBoundsException: null<o:p></o:p></font></span>
<span style="color: black"><font size="2">java.lang.ArrayIndexOutOfBoundsException<o:p></o:p></font></span>
<span style="color: black"><font size="2">        at<o:p></o:p></font></span>
<span style="color: black"><font size="2">        at;init&gt;(<o:p></o:p></font></span>
<span style="color: black"><font size="2">        at org.cablelabs.impl.manager.service.SIDatabaseImpl.makePAT(<o:p></o:p></font></span>
<span style="color: black"><font size="2">        at org.cablelabs.impl.manager.service.SIDatabaseImpl.asyncEvent(<o:p></o:p></font></span>
<span style="color: black"><font size="2">        at org.cablelabs.impl.manager.ed.EventDispatchImpl$<o:p></o:p></font></span>
<span style="color: black"><font size="2">        at java.lang.Thread.startup(<o:p></o:p></font></span>

Does any one answer why the exception is occuring?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2008-12-17

Recently a new field 'tsId' was added to the PAT byte array returned from MPE layer.
The JNI layer missed adding this field in one scenario which resulted in parsing error in ProgramAssociationTableImpl.
This issue has been resolved in RI trunk rev 18576.