开发者

Grails - Getting IndexOutOfBoundsException while calling a dynamic finder within a transaction

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜