gorm - Grails - ERROR errors.GrailsExceptionResolver -- Not able to navigate to the next pages -
in image shown below(at end of post), not able navigate next pages in webpage.
if click on next page : getting error : toindex - 11
error message :
grails> | error 2015-09-21 18:04:21,491 [http-bio-8080-exec-2] error errors.grailsexceptionresolver - indexoutofboundsexception occurred when processing request: [post] /clindata/dailyjobactivity/show - parameters: id: 402 sort: id max: 10 order: asc name: action: show controller: dailyjobactivity offset: 10 user: clindata admin toindex = 11. stacktrace follows: message: toindex = 11 line | method ->> 962 | sublistrangecheck in java.util.arraylist - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 954 | sublist in '' | 42 | docall . . . . . in com.datumrite.securityfilters$_closure1_closure3_closure9 | 195 | dofilter in grails.plugin.cache.web.filter.pagefragmentcachingfilter | 63 | dofilter . . . . in grails.plugin.cache.web.filter.abstractfilter | 1145 | runworker in java.util.concurrent.threadpoolexecutor | 615 | run . . . . . . . in java.util.concurrent.threadpoolexecutor$worker ^ 745 | run in java.lang.thread grails> exception:org.codehaus.groovy.grails.web.errors.grailswrappedruntimeexception: toindex = 11 isxhr:true inspect: org.codehaus.groovy.grails.web.errors.grailswrappedruntimeexception: toindex = 11 dump:<org.codehaus.groovy.grails.web.errors.grailswrappedruntimeexception@2e4840 classname=securityfilters linenumber=42 stacktrace=java.lang.indexoutofboundsexception: toindex = 11 @ java.util.arraylist.sublistrangecheck(arraylist.java:962) @ java.util.arraylist.sublist(arraylist.java:954) @ com.datumrite.securityfilters$_closure1_closure3_closure9.docall(securityfilters.groovy:42) @ grails.plugin.cache.web.filter.pagefragmentcachingfilter.dofilter(pagefragmentcachingfilter.java:195) @ grails.plugin.cache.web.filter.abstractfilter.dofilter(abstractfilter.java:63) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:745) codesnippet=[] gspfile=null cause=java.lang.indexoutofboundsexception: toindex = 11 resolver=org.springframework.core.io.support.pathmatchingresourcepatternresolver@89765b stacktracelines=[java.lang.indexoutofboundsexception: toindex = 11 , @ java.util.arraylist.sublistrangecheck(arraylist.java:962) , @ java.util.arraylist.sublist(arraylist.java:954) , @ com.datumrite.securityfilters$_closure1_closure3_closure9.docall(securityfilters.groovy:42) , @ grails.plugin.cache.web.filter.pagefragmentcachingfilter.dofilter(pagefragmentcachingfilter.java:195) , @ grails.plugin.cache.web.filter.abstractfilter.dofilter(abstractfilter.java:63) , @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) , @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) , @ java.lang.thread.run(thread.java:745) ] filename=securityfilters.groovy detailmessage=toindex = 11 cause=java.lang.indexoutofboundsexception: toindex = 11 stacktrace=[] suppressedexceptions=[]>
view page :
<g:set var="title" value="data processing log" /> <g:applylayout name="form"> <content tag="body"> <table border="0" cellpadding="0" cellspacing="0" class="tablesorter"> <thead> <tr> <th>job id</th> <th>job</th> <th>task</th> <th>activity description</th> <th>date</th> <th>status</th> <th>message</th> <th>error code</th> </tr> </thead> <tbody> <g:each in="${data}"> <tr> <td>${it?.daily_job.id}</td> <td>${it?.job}</td> <td>${it?.task}</td> <td>${it?.activity}</td> <td><g:formatdate format="mmm dd, yyyy hh:mm" date="${it?.activity_datetime}"/></td> <td>${it?.status}</td> <td> <g:if test="${it?.message.size() > 80}"> ${it?.message.substring(0,80)}... </g:if> <g:else> ${it?.message} </g:else> </td> <td>${it?.error_code}</td> </tr> </g:each> </tbody> </table> </content> </g:applylayout>
controller :
package com.datumrite.sdtm import java.text.simpledateformat; import com.datumrite.master.*; import com.datumrite.basecontroller import com.datumrite.sdtm.dailyjob @mixin(basecontroller) class dailyjobactivitycontroller { def commonservice; def view_name='/datamanagement/dailyjob' def protoid def providerid def index() { } def show(){ system.out.println "=== activity ==="; def data = [] def mycount = 0 integer max = params.max ? params.int("max") : 10 integer offset = params.offset ? params.int("offset") : 0 def job = dailyjob.get(params.id long); mycount = dailyjobactivity.where { daily_job == job }.count() data = dailyjobactivity.where { daily_job == job }.list([sort:'activity_datetime',order:'desc', max: max, offset: offset]) system.out.println "=== data activity ==="+data.size(); render(view:view_name+'/jobactivity',model:[data:data,instancetotal:mycount,remotepagination: true]) } }
in image, not able navigate next pages.. getting error shown above.
can ? in advance
Comments
Post a Comment