Remember that ordinal parameters are 1-based!

1
2
3
4
5
exception
javax.servlet.ServletException: java.lang.IndexOutOfBoundsException:
Remember that ordinal parameters are 1-based!

是因为在HQL语句中出错。