Changeset 7

Show
Ignore:
Timestamp:
14-10-09 12:51:46 (5 years ago)
Author:
duh
Message:

improved debugcontroller

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore set to
      stacktrace.log
  • trunk/grails-app/controllers/DebugController.groovy

    r6 r7  
     1import grails.util.GrailsUtil 
     2 
    13/** 
    24 * Debug Controller 
     
    1416 */ 
    1517class DebugController { 
    16     def scaffold = true; 
    17     def index = { render('nothing to see here :)') } 
     18    /** 
     19     * Turn scaffolding on or off 
     20     */ 
     21    def scaffold = (GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT && this.class.name != 'DebugController'); 
     22 
     23    /** 
     24     * Render output to the browser, overload this method to suit your needs 
     25     */ 
     26    def index = {  
     27        render(sprintf("%s @ %s environment :: nothing to see here! :)",this.class.name,GrailsUtil.environment)); 
     28    } 
    1829} 
  • trunk/stacktrace.log

    r4 r7  
     12009-10-14 12:53:56,831 [703213836@qtp0-2] ERROR StackTrace  - Sanitizing stacktrace: 
     2groovy.lang.MissingPropertyException: No such property: GrailsUtil for class: DebugController 
     3        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:49) 
     4        at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49) 
     5        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:241) 
     6        at DebugController$_closure1.doCall(DebugController.groovy:24) 
     7        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     8        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     9        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     10        at java.lang.reflect.Method.invoke(Method.java:597) 
     11        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:266) 
     12        at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51) 
     13        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44) 
     14        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143) 
     15        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151) 
     16        at DebugController$_closure1.doCall(DebugController.groovy) 
     17        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     18        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
     19        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
     20        at java.lang.reflect.Method.invoke(Method.java:597) 
     21        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86) 
     22        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234) 
     23        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1062) 
     24        at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:926) 
     25        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:893) 
     26        at groovy.lang.Closure.call(Closure.java:279) 
     27        at groovy.lang.Closure.call(Closure.java:274) 
     28        at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleAction(SimpleGrailsControllerHelper.java:368) 
     29        at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.executeAction(SimpleGrailsControllerHelper.java:243) 
     30        at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI(SimpleGrailsControllerHelper.java:203) 
     31        at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsControllerHelper.handleURI(SimpleGrailsControllerHelper.java:138) 
     32        at org.codehaus.groovy.grails.web.servlet.mvc.SimpleGrailsController.handleRequest(SimpleGrailsController.java:88) 
     33        at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48) 
     34        at org.codehaus.groovy.grails.web.servlet.GrailsDispatcherServlet.doDispatch(GrailsDispatcherServlet.java:264) 
     35        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:807) 
     36        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:571) 
     37        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:501) 
     38        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) 
     39        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) 
     40        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502) 
     41        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124) 
     42        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) 
     43        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 
     44        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) 
     45        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 
     46        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:70) 
     47        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 
     48        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 
     49        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) 
     50        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) 
     51        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) 
     52        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) 
     53        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:334) 
     54        at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) 
     55        at org.codehaus.groovy.grails.web.util.WebUtils.forwardRequestForUrlMappingInfo(WebUtils.java:293) 
     56        at org.codehaus.groovy.grails.web.util.WebUtils.forwardRequestForUrlMappingInfo(WebUtils.java:269) 
     57        at org.codehaus.groovy.grails.web.util.WebUtils.forwardRequestForUrlMappingInfo(WebUtils.java:261) 
     58        at org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInternal(UrlMappingsFilter.java:181) 
     59        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) 
     60        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 
     61        at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.obtainContent(GrailsPageFilter.java:221) 
     62        at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.doFilter(GrailsPageFilter.java:126) 
     63        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 
     64        at org.codehaus.groovy.grails.web.servlet.filter.GrailsReloadServletFilter.doFilterInternal(GrailsReloadServletFilter.java:101) 
     65        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) 
     66        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 
     67        at org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:65) 
     68        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) 
     69        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 
     70        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:96) 
     71        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) 
     72        at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:236) 
     73        at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) 
     74        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115) 
     75        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361) 
     76        at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) 
     77        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) 
     78        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766) 
     79        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417) 
     80        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 
     81        at org.mortbay.jetty.Server.handle(Server.java:324) 
     82        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534) 
     83        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864) 
     84        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533) 
     85        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207) 
     86        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403) 
     87        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) 
     88        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522) 
     892009-10-14 12:53:56,834 [703213836@qtp0-2] ERROR StackTrace  - Sanitizing stacktrace: 
     90groovy.lang.MissingPropertyException: No such property: GrailsUtil for class: DebugController 
     91        at DebugController$_closure1.doCall(DebugController.groovy:24) 
     92        at DebugController$_closure1.doCall(DebugController.groovy)