Hi KFrank,
Thanks a lot for the reply,What to do then,my class labels are starting from 1 and i have class labels from 1 to 7.
And  also i can’t see any out of bounds error picture here(which you mentioned you uploaded it).
I posted screen shot because it will be clear about the error.May be next time on wards i will post whole error once by copy pasting it.