SAML 2.0 Assertion received and throwing exception.

Blog Post created by SungHoon_Kim Employee on May 22, 2016

Use case:


SiteMinder is Service Provider.

After receiving the assertion, there is an exception in the FWSTrace.log as below.

Obviously, the user cannot federate.




java.lang.ArrayIndexOutOfBoundsException: 0

at com.netegrity.util.SAMLData.toString(





The above exception is occurring while processing the Attributes in the Assertion. is where it was trying to parse the elements for <Attributes> and as it was not able to find some information it throws this exception.


The <Attributes> contain several attributes and its values.

At times, the attribute may have empty values and it can be normal.

But it needs to be conveyed correctly otherwise it can cause this type of exceptions.


Sample as below.

Sample SAML Response





           <Attribute Name="abc">



           <Attribute Name="def"></Attribute>






When IDP side was generating the SAML Response, for the "def" attribute it returned a null value so it has generated accordingly.

But It should have been <Attribute Name="def"><AttributeValue></AttributeValue></Attribute>, not <Attribute Name="def"></Attribute>.


So, in this case, this exception is an expected behavior.