Per the message, a[ss]
is undefined. So one possibility is that you have not set a
in the freemarker model. Another possibility is that your a
list is zero based, not one based. You are iterating 1..x.
Other than that, you have not provided enough info. Consider providing the full output of the freemarker exception, and more clearly explain what it is that 'a' and x
contain.