I'm getting IndexOutOfBoundsException exception while calling a dynamic finder when I call it from within a Transaction from controller.
Deal.withTransaction { status ->
......
DealTranslation.findByLocaleAndDeal(locale, deal)
......
}
I get this error at line calling finder inside DealTranslation. If I remove transaction it works
Following is the stack trace
011-06-05 09:07:34,089 ERROR org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver:72 Index: 1, Size: 0
java.l开发者_运维知识库ang.IndexOutOfBoundsException: Index: 1, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at xxx.xxxx.Deal.loadTransients(Deal.groovy:137)
精彩评论