daily pastebin goal
29%
SHARE
TWEET

My Grails Security Policy Error

a guest Jan 9th, 2012 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Welcome to Grails 1.3.7 - http://grails.org/
  2. Licensed under Apache Standard License 2.0
  3. Grails home is set to: /opt/grails/grails-1.3.7
  4.  
  5. Base Directory: /opt/grails/grails-1.3.7/smartmeters
  6. Resolving dependencies...
  7. Dependencies resolved in 1398ms.
  8. Running script /opt/grails/grails-1.3.7/scripts/RunApp.groovy
  9. Environment set to development
  10.    [delete] Deleting directory /home/hadoop1/.grails/1.3.7/projects/smartmeters/tomcat
  11. Running Grails application..
  12. Server running. Browse to http://localhost:9876/smartmeters
  13. 2012-01-09 19:20:48,794 [http-9876-1] ERROR [/smartmeters].[gsp]  - Servlet.service() for servlet gsp threw exception
  14. java.security.AccessControlException: access denied (java.util.PropertyPermission grails.full.stacktrace read)
  15.         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
  16.         at java.security.AccessController.checkPermission(AccessController.java:546)
  17.         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  18.         at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
  19.         at java.lang.System.getProperty(System.java:650)
  20.         at grails.util.GrailsUtil.sanitize(GrailsUtil.java:246)
  21.         at grails.util.GrailsUtil.deepSanitize(GrailsUtil.java:329)
  22.         at org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver.resolveException(GrailsExceptionResolver.java:77)
  23.         at org.codehaus.groovy.grails.web.pages.GroovyPagesServlet.handleException(GroovyPagesServlet.java:170)
  24.         at org.codehaus.groovy.grails.web.pages.GroovyPagesServlet.renderPageWithEngine(GroovyPagesServlet.java:144)
  25.         at org.codehaus.groovy.grails.web.pages.GroovyPagesServlet.doService(GroovyPagesServlet.java:122)
  26.         at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
  27.         at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
  28.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
  29.         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  30.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  31.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  32.         at org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.processFilterChain(UrlMappingsFilter.java:287)
  33.         at org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInternal(UrlMappingsFilter.java:205)
  34.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  35.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  36.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  37.         at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.obtainContent(GrailsPageFilter.java:245)
  38.         at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.doFilter(GrailsPageFilter.java:134)
  39.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  40.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  41.         at org.codehaus.groovy.grails.web.servlet.filter.GrailsReloadServletFilter.doFilterInternal(GrailsReloadServletFilter.java:104)
  42.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  43.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  44.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  45.         at org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:69)
  46.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  47.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  48.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  49.         at org.codehaus.groovy.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:69)
  50.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  51.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  52.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  53.         at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
  54.         at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
  55.         at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
  56.         at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
  57.         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
  58.         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  59.         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  60.         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  61.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
  62.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  63.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  64.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  65.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  66.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  67.         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  68.         at java.lang.Thread.run(Thread.java:662)
  69. 2012-01-09 19:20:48,802 [http-9876-1] ERROR [/smartmeters].[grails-errorhandler]  - Allocate exception for servlet grails-errorhandler
  70. java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
  71.         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
  72.         at java.security.AccessController.checkPermission(AccessController.java:546)
  73.         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  74.         at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
  75.         at java.lang.Class.checkMemberAccess(Class.java:2157)
  76.         at java.lang.Class.getDeclaredFields(Class.java:1742)
  77.         at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:168)
  78.         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1120)
  79.         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
  80.         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:615)
  81.         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438)
  82.         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
  83.         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
  84.         at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:416)
  85.         at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)
  86.         at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:287)
  87.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
  88.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  89.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  90.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  91.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  92.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  93.         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  94.         at java.lang.Thread.run(Thread.java:662)
  95. 2012-01-09 19:20:48,802 [http-9876-1] ERROR [Tomcat].[localhost]  - Exception Processing ErrorPage[errorCode=500, location=/grails-errorhandler]
  96. javax.servlet.ServletException: Error instantiating servlet class org.codehaus.groovy.grails.web.servlet.ErrorHandlingServlet
  97.         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
  98.         at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:809)
  99.         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:615)
  100.         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:438)
  101.         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
  102.         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
  103.         at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:416)
  104.         at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)
  105.         at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:287)
  106.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
  107.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  108.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  109.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  110.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  111.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  112.         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  113.         at java.lang.Thread.run(Thread.java:662)
  114. Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
  115.         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
  116.         at java.security.AccessController.checkPermission(AccessController.java:546)
  117.         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  118.         at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
  119.         at java.lang.Class.checkMemberAccess(Class.java:2157)
  120.         at java.lang.Class.getDeclaredFields(Class.java:1742)
  121.         at org.apache.catalina.util.DefaultAnnotationProcessor.processAnnotations(DefaultAnnotationProcessor.java:168)
  122.         at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1120)
  123.         ... 16 more
  124. 2012-01-09 19:20:48,803 [http-9876-1] ERROR connector.CoyoteAdapter  - An exception or error occurred in the container during the request processing
  125. java.security.AccessControlException: access denied (java.lang.RuntimePermission setContextClassLoader)
  126.         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
  127.         at java.security.AccessController.checkPermission(AccessController.java:546)
  128.         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  129.         at java.lang.Thread.setContextClassLoader(Thread.java:1394)
  130.         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:148)
  131.         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  132.         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  133.         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
  134.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
  135.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  136.         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  137.         at java.lang.Thread.run(Thread.java:662)
  138. 2012-01-09 19:20:48,804 [http-9876-1] ERROR http11.Http11Processor  - Error finishing response
  139. java.lang.ExceptionInInitializerError
  140.         at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1576)
  141.         at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:944)
  142.         at org.apache.coyote.Response.action(Response.java:181)
  143.         at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:379)
  144.         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:889)
  145.         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
  146.         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
  147.         at java.lang.Thread.run(Thread.java:662)
  148. Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.tomcat.util.http.FastHttpDateFormat.CACHE_SIZE read)
  149.         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:374)
  150.         at java.security.AccessController.checkPermission(AccessController.java:546)
  151.         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
  152.         at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
  153.         at java.lang.System.getProperty(System.java:686)
  154.         at org.apache.tomcat.util.http.FastHttpDateFormat.<clinit>(FastHttpDateFormat.java:39)
  155.         ... 8 more
  156. Error executing script RunApp: Class org.codehaus.groovy.reflection.CachedMethod can not access a member of class gant.Gant$_withBuildListeners_closure10 with modifiers "public"
  157. java.lang.IllegalAccessException: Class org.codehaus.groovy.reflection.CachedMethod can not access a member of class gant.Gant$_withBuildListeners_closure10 with modifiers "public"
  158.         at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
  159.         at java.lang.reflect.Method.invoke(Method.java:588)
  160.         at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
  161.         at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
  162.         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
  163.         at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
  164.         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
  165.         at groovy.lang.Closure.call(Closure.java:282)
  166.         at groovy.lang.Closure.call(Closure.java:295)
  167.         at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1220)
  168.         at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1196)
  169.         at org.codehaus.groovy.runtime.dgm$110.invoke(Unknown Source)
  170.         at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:270)
  171.         at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
  172.         at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
  173.         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
  174.         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124)
  175.         at gant.Gant.withBuildListeners(Gant.groovy:432)
  176.         at gant.Gant.this$2$withBuildListeners(Gant.groovy)
  177.         at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
  178.         at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
  179.         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
  180.         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149)
  181.         at gant.Gant.dispatch(Gant.groovy:415)
  182.         at gant.Gant.this$2$dispatch(Gant.groovy)
  183.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  184.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  185.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  186.         at java.lang.reflect.Method.invoke(Method.java:597)
  187.         at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
  188.         at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
  189.         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058)
  190.         at groovy.lang.ExpandoMetaClass.invokeMethod(ExpandoMetaClass.java:1070)
  191.         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
  192.         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:708)
  193.         at gant.Gant.invokeMethod(Gant.groovy)
  194.         at groovy.lang.GroovyObject$invokeMethod.callCurrent(Unknown Source)
  195.         at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
  196.         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
  197.         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
  198.         at gant.Gant.executeTargets(Gant.groovy:590)
  199.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  200.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  201.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  202.         at java.lang.reflect.Method.invoke(Method.java:597)
  203.         at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:225)
  204.         at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:51)
  205.         at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)
  206.         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
  207.         at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:153)
  208.         at gant.Gant.executeTargets(Gant.groovy:589)
  209.         at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeWithGantInstance(GrailsScriptRunner.java:667)
  210.         at org.codehaus.groovy.grails.cli.GrailsScriptRunner.callPluginOrGrailsScript(GrailsScriptRunner.java:526)
  211.         at org.codehaus.groovy.grails.cli.GrailsScriptRunner.executeCommand(GrailsScriptRunner.java:310)
  212.         at org.codehaus.groovy.grails.cli.GrailsScriptRunner.main(GrailsScriptRunner.java:135)
  213.         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  214.         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  215.         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  216.         at java.lang.reflect.Method.invoke(Method.java:597)
  217.         at org.codehaus.groovy.grails.cli.support.GrailsStarter.rootLoader(GrailsStarter.java:234)
  218.         at org.codehaus.groovy.grails.cli.support.GrailsStarter.main(GrailsStarter.java:262)
  219. Error executing script RunApp: Class org.codehaus.groovy.reflection.CachedMethod can not access a member of class gant.Gant$_withBuildListeners_closure10 with modifiers "public"
  220. Application context shutting down...
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top