Grails 2.3.8 Stacktrace doesn't show any of my calling code -



Grails 2.3.8 Stacktrace doesn't show any of my calling code -

i have method in controller beingness called somewhere. far can tell, nil in code calling it, added stack trace output line see if can tell it's getting called from. this, here method looks like:

def remediationsearch() { println " "; println ">>>>>> remediationsearch() start @ " + system.nanotime() new exception("why calling me?!?!").printstacktrace() def resultlist if (params.rerender) { println "<><><> remediationsearch() called rerender." resultlist = recordsearchservice.individualsearch(session.oldindremedparams) } else { params.selectedbatch = selectedbatch session.oldindremedparams = params resultlist = recordsearchservice.individualsearch(params) println "<><><> remediationsearch() called fresh." } render(template: 'indivsearchresults', model: [resultlist: resultlist, resultcount: resultlist?.size()]) println "<<<<<< remediationsearch() end @ " + system.nanotime(); println " "; }

and here output of stacktrace can't seem understand (partly because i'm new grails) because don't seem see of coded functions in it:

>>>>>> remediationsearch() start @ 67861365037047 error | java.lang.exception: why calling me?!?! error | @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method) error | @ sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessor impl.java:57) error | @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructor accessorimpl.java:45) error | @ java.lang.reflect.constructor.newinstance(constructor.java:526) error | @ org.springsource.loaded.ri.reflectiveinterceptor.jlrconstructornewinstance(refl ectiveinterceptor.java:986) error | @ org.codehaus.groovy.reflection.cachedconstructor.invoke(cachedconstructor.java: 77) error | @ org.codehaus.groovy.runtime.callsite.constructorsite$constructorsitenounwrapnoc oerce.callconstructor(constructorsite.java:102) error | @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcallconstructor(calls itearray.java:57) error | @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callconstructor(abstractc allsite.java:182) error | @ org.codehaus.groovy.runtime.callsite.abstractcallsite.callconstructor(abstractc allsite.java:190) error | @ com.twc.fatcaone.customercontroller.remediationsearch(customercontroller.groovy :264) error | @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) error | @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:57) error | @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.ja va:43) error | @ java.lang.reflect.method.invoke(method.java:606) error | @ org.springsource.loaded.ri.reflectiveinterceptor.jlrmethodinvoke(reflectiveinte rceptor.java:1254) error | @ org.codehaus.groovy.grails.web.servlet.mvc.mixedgrailscontrollerhelper.invoke(m ixedgrailscontrollerhelper.java:154) error | @ org.codehaus.groovy.grails.web.servlet.mvc.abstractgrailscontrollerhelper.handl eaction(abstractgrailscontrollerhelper.java:354) error | @ org.codehaus.groovy.grails.web.servlet.mvc.abstractgrailscontrollerhelper.execu teaction(abstractgrailscontrollerhelper.java:231) error | @ org.codehaus.groovy.grails.web.servlet.mvc.abstractgrailscontrollerhelper.handl euri(abstractgrailscontrollerhelper.java:197) error | @ org.codehaus.groovy.grails.web.servlet.mvc.abstractgrailscontrollerhelper.handl euri(abstractgrailscontrollerhelper.java:121) error | @ org.codehaus.groovy.grails.web.servlet.mvc.simplegrailscontroller.handlerequest (simplegrailscontroller.java:72) error | @ org.springframework.web.servlet.mvc.simplecontrollerhandleradapter.handle(simpl econtrollerhandleradapter.java:48) error | @ org.codehaus.groovy.grails.web.servlet.grailsdispatcherservlet.dodispatch(grail sdispatcherservlet.java:355) error | @ org.springframework.web.servlet.dispatcherservlet.doservice(dispatcherservlet.j ava:856) error | @ org.springframework.web.servlet.frameworkservlet.processrequest(frameworkservle t.java:953) error | @ org.springframework.web.servlet.frameworkservlet.dopost(frameworkservlet.java:8 55) error | @ javax.servlet.http.httpservlet.service(httpservlet.java:646) error | @ org.springframework.web.servlet.frameworkservlet.service(frameworkservlet.java: 829) error | @ javax.servlet.http.httpservlet.service(httpservlet.java:727) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:303) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.apache.tomcat.websocket.server.wsfilter.dofilter(wsfilter.java:52) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ grails.plugin.cache.web.filter.pagefragmentcachingfilter.dofilter(pagefragmentc achingfilter.java:198) error | @ grails.plugin.cache.web.filter.abstractfilter.dofilter(abstractfilter.java:63) error | @ org.springframework.web.filter.delegatingfilterproxy.invokedelegate(delegatingf ilterproxy.java:343) error | @ org.springframework.web.filter.delegatingfilterproxy.dofilter(delegatingfilterp roxy.java:260) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilt er.java:101) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilt er.java:101) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilt er.java:101) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.apache.catalina.core.applicationdispatcher.invoke(applicationdispatcher.jav a:748) error | @ org.apache.catalina.core.applicationdispatcher.processrequest(applicationdispat cher.java:486) error | @ org.apache.catalina.core.applicationdispatcher.doforward(applicationdispatcher. java:411) error | @ org.apache.catalina.core.applicationdispatcher.forward(applicationdispatcher.ja va:338) error | @ org.codehaus.groovy.grails.web.util.webutils.forwardrequestforurlmappinginfo(we butils.java:332) error | @ org.codehaus.groovy.grails.web.util.webutils.forwardrequestforurlmappinginfo(we butils.java:297) error | @ org.codehaus.groovy.grails.web.util.webutils.forwardrequestforurlmappinginfo(we butils.java:288) error | @ org.codehaus.groovy.grails.web.mapping.filter.urlmappingsfilter.dofilterinterna l(urlmappingsfilter.java:217) error | @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilt er.java:107) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.codehaus.groovy.grails.web.sitemesh.grailspagefilter.executefilterchainwith wrappedresponse(grailspagefilter.java:233) error | @ org.codehaus.groovy.grails.web.sitemesh.grailspagefilter.obtaincontent(grailspa gefilter.java:208) error | @ org.codehaus.groovy.grails.web.sitemesh.grailspagefilter.dofilter(grailspagefil ter.java:153) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ javax.servlet.filterchain$dofilter.call(unknown source) error | @ org.grails.plugin.resource.devmodesanityfilter.dofilter(devmodesanityfilter.gro ovy:45) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.codehaus.groovy.grails.web.servlet.mvc.grailswebrequestfilter.dofilterinter nal(grailswebrequestfilter.java:69) error | @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilt er.java:107) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.codehaus.groovy.grails.web.filters.hiddenhttpmethodfilter.dofilterinternal( hiddenhttpmethodfilter.java:67) error | @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilt er.java:107) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.springframework.web.filter.characterencodingfilter.dofilterinternal(charact erencodingfilter.java:88) error | @ org.springframework.web.filter.onceperrequestfilter.dofilter(onceperrequestfilt er.java:107) error | @ org.springframework.web.filter.delegatingfilterproxy.invokedelegate(delegatingf ilterproxy.java:343) error | @ org.springframework.web.filter.delegatingfilterproxy.dofilter(delegatingfilterp roxy.java:260) error | @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfil terchain.java:241) error | @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain .java:208) error | @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java: 220) error | @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java: 122) error | @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:170) error | @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:98) error | @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:11 6) error | @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:408) error | @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processo r.java:1040) error | @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractpr otocol.java:607) error | @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:315 ) error | @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) error | @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) error | @ java.lang.thread.run(thread.java:745) <><><> remediationsearch() called fresh. <<<<<< remediationsearch() end @ 67863898745818

`

if compare output "real" request you'll see same thing. i'd expect see - various filters in filter chain called, servlet's service method (note servlet grailsdispatcherservlet extends spring's dispatcherservlet), goes dopost weird because that's post request, seemed it'd get, dodispatch (where grails figures out route request), , simplecontrollerhandleradapter.handle.

there's 1 spring mvc controller in grails app, simplegrailscontroller. acts bridge between grails controllers , spring mvc. grails controllers groovy classes, can't registered spring mvc controllers, instead controller instance handles requests , help mixedgrailscontrollerhelper tells controller , method utilize (based on reverse url mapping requested url entry in urlmappings.groovy), uses reflection phone call controller method. that's why there's method.invoke before controller action. springloaded jlrmethodinvoke there because springloaded adds reloading back upwards in dev mode, otherwise can ignored.

your best bet run app in debug mode , set breakpoints can figure out url beingness requested. before though - set log4j level these classes debug , maybe that'll have useful.

grails

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -