Guest User

Untitled

a guest
Dec 20th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.94 KB | None | 0 0
  1. 2017-12-20 20:14:53.137 ERROR --- [ main] o.s.boot.SpringApplication : Application startup failed
  2.  
  3. org.springframework.security.acls.model.NotFoundException: Unable to find ACL information for object identity 'org.springframework.security.acls.domain.ObjectIdentityImpl[Type: com.testacl.Report; Identifier: 7]'
  4. at grails.plugin.springsecurity.acl.AclService.$tt__readAclsById(AclService.groovy:329)
  5. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  6. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  7. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  8. at java.lang.reflect.Method.invoke(Method.java:498)
  9. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  10. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  11. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  12. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
  13. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  14. at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
  15. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
  16. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethodSafe(InvokerHelper.java:76)
  17. at grails.plugin.springsecurity.acl.AclService$_readAclsById_closure15.doCall(AclService.groovy)
  18. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  19. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  20. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  21. at java.lang.reflect.Method.invoke(Method.java:498)
  22. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  23. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  24. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  25. at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
  26. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  27. at groovy.lang.Closure.call(Closure.java:414)
  28. at groovy.lang.Closure.call(Closure.java:430)
  29. at grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)
  30. at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
  31. at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)
  32. at grails.plugin.springsecurity.acl.AclService.readAclsById(AclService.groovy)
  33. at grails.plugin.springsecurity.acl.AclService.$tt__readAclById(AclService.groovy:312)
  34. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  35. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  36. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  37. at java.lang.reflect.Method.invoke(Method.java:498)
  38. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  39. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  40. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  41. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
  42. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  43. at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
  44. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
  45. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethodSafe(InvokerHelper.java:76)
  46. at grails.plugin.springsecurity.acl.AclService$_readAclById_closure13.doCall(AclService.groovy)
  47. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  48. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  49. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  50. at java.lang.reflect.Method.invoke(Method.java:498)
  51. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  52. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  53. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  54. at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
  55. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  56. at groovy.lang.Closure.call(Closure.java:414)
  57. at groovy.lang.Closure.call(Closure.java:430)
  58. at grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)
  59. at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
  60. at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)
  61. at grails.plugin.springsecurity.acl.AclService.readAclById(AclService.groovy)
  62. at grails.plugin.springsecurity.acl.AclService.$tt__readAclById(AclService.groovy:307)
  63. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  64. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  65. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  66. at java.lang.reflect.Method.invoke(Method.java:498)
  67. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  68. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  69. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  70. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
  71. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  72. at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
  73. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
  74. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethodSafe(InvokerHelper.java:76)
  75. at grails.plugin.springsecurity.acl.AclService$_readAclById_closure12.doCall(AclService.groovy)
  76. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  77. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  78. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  79. at java.lang.reflect.Method.invoke(Method.java:498)
  80. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  81. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  82. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  83. at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
  84. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  85. at groovy.lang.Closure.call(Closure.java:414)
  86. at groovy.lang.Closure.call(Closure.java:430)
  87. at grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)
  88. at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
  89. at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)
  90. at grails.plugin.springsecurity.acl.AclService.readAclById(AclService.groovy)
  91. at grails.plugin.springsecurity.acl.AclService.$tt__createAcl(AclService.groovy:84)
  92. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  93. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  94. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  95. at java.lang.reflect.Method.invoke(Method.java:498)
  96. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  97. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  98. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  99. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
  100. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  101. at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
  102. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
  103. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethodSafe(InvokerHelper.java:76)
  104. at grails.plugin.springsecurity.acl.AclService$_createAcl_closure1.doCall(AclService.groovy)
  105. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  106. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  107. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  108. at java.lang.reflect.Method.invoke(Method.java:498)
  109. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  110. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  111. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  112. at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
  113. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  114. at groovy.lang.Closure.call(Closure.java:414)
  115. at groovy.lang.Closure.call(Closure.java:430)
  116. at grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)
  117. at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
  118. at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)
  119. at grails.plugin.springsecurity.acl.AclService.createAcl(AclService.groovy)
  120. at org.springframework.security.acls.model.MutableAclService$createAcl.call(Unknown Source)
  121. at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
  122. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
  123. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
  124. at com.testacl.SampleDataService$_grantPermissions_closure3.doCall(SampleDataService.groovy:64)
  125. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  126. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  127. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  128. at java.lang.reflect.Method.invoke(Method.java:498)
  129. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  130. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  131. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  132. at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
  133. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  134. at groovy.lang.Closure.call(Closure.java:414)
  135. at com.testacl.SampleDataService$_grantPermissions_closure3.call(SampleDataService.groovy)
  136. at groovy.lang.Closure.call(Closure.java:430)
  137. at com.testacl.SampleDataService$_grantPermissions_closure3.call(SampleDataService.groovy)
  138. at org.codehaus.groovy.runtime.DefaultGroovyMethods.times(DefaultGroovyMethods.java:14474)
  139. at org.codehaus.groovy.runtime.dgm$643.invoke(Unknown Source)
  140. at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
  141. at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
  142. at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
  143. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
  144. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
  145. at com.testacl.SampleDataService.grantPermissions(SampleDataService.groovy:56)
  146. at com.testacl.SampleDataService.$tt__createSampleData(SampleDataService.groovy:25)
  147. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  148. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  149. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  150. at java.lang.reflect.Method.invoke(Method.java:498)
  151. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  152. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  153. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  154. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
  155. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  156. at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:925)
  157. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:908)
  158. at org.codehaus.groovy.runtime.InvokerHelper.invokeMethodSafe(InvokerHelper.java:76)
  159. at com.testacl.SampleDataService$_createSampleData_closure1.doCall(SampleDataService.groovy)
  160. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  161. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  162. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  163. at java.lang.reflect.Method.invoke(Method.java:498)
  164. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  165. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  166. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  167. at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
  168. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  169. at groovy.lang.Closure.call(Closure.java:414)
  170. at com.testacl.SampleDataService$_createSampleData_closure1.call(SampleDataService.groovy)
  171. at groovy.lang.Closure.call(Closure.java:430)
  172. at com.testacl.SampleDataService$_createSampleData_closure1.call(SampleDataService.groovy)
  173. at grails.gorm.transactions.GrailsTransactionTemplate$2.doInTransaction(GrailsTransactionTemplate.groovy:94)
  174. at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
  175. at grails.gorm.transactions.GrailsTransactionTemplate.execute(GrailsTransactionTemplate.groovy:91)
  176. at com.testacl.SampleDataService.createSampleData(SampleDataService.groovy)
  177. at com.testacl.SampleDataService$createSampleData.call(Unknown Source)
  178. at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
  179. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
  180. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
  181. at acltest.BootStrap$_closure1.doCall(BootStrap.groovy:8)
  182. at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  183. at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  184. at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  185. at java.lang.reflect.Method.invoke(Method.java:498)
  186. at org.springsource.loaded.ri.ReflectiveInterceptor.jlrMethodInvoke(ReflectiveInterceptor.java:1427)
  187. at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  188. at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  189. at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
  190. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  191. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1087)
  192. at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  193. at groovy.lang.Closure.call(Closure.java:414)
  194. at groovy.lang.Closure.call(Closure.java:408)
  195. at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:541)
  196. at grails.util.Environment.executeForEnvironment(Environment.java:534)
  197. at grails.util.Environment.executeForCurrentEnvironment(Environment.java:510)
  198. at org.grails.web.servlet.boostrap.DefaultGrailsBootstrapClass.callInit(DefaultGrailsBootstrapClass.java:74)
  199. at org.grails.web.servlet.context.GrailsConfigUtils.executeGrailsBootstraps(GrailsConfigUtils.java:65)
  200. at org.grails.plugins.web.servlet.context.BootStrapClassRunner.onStartup(BootStrapClassRunner.groovy:53)
  201. at grails.boot.config.GrailsApplicationPostProcessor.onApplicationEvent(GrailsApplicationPostProcessor.groovy:261)
  202. at grails.boot.config.GrailsApplicationPostProcessor.onApplicationEvent(GrailsApplicationPostProcessor.groovy)
  203. at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
  204. at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
  205. at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
  206. at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
  207. at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
  208. at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)
  209. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:144)
  210. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
  211. at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
  212. at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
  213. at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
  214. at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
  215. at grails.boot.GrailsApp.run(GrailsApp.groovy:83)
  216. at grails.boot.GrailsApp.run(GrailsApp.groovy:387)
  217. at grails.boot.GrailsApp.run(GrailsApp.groovy:374)
  218. at grails.boot.GrailsApp$run.call(Unknown Source)
  219. at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
  220. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
  221. at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
  222. at acltest.Application.main(Application.groovy:8)
  223.  
  224.  
  225. FAILURE: Build failed with an exception.
  226.  
  227. def reports = []
  228. 100.times {
  229. long id = it + 1
  230. def report = new Report(name: "report$id").save()
  231. reports << report
  232. aclService.createAcl(objectIdentityRetrievalStrategy.getObjectIdentity(report))
  233. }
  234.  
  235. dependencies {
  236. ...
  237. runtime 'org.postgresql:postgresql:42.1.4'
  238. }
  239.  
  240. hibernate:
  241. cache:
  242. queries: false
  243. use_second_level_cache: false
  244. use_query_cache: false
  245. dataSource:
  246. pooled: true
  247. jmxExport: true
  248. driverClassName: org.postgresql.Driver
  249. username: acltest
  250. password: xxxxxxx
  251.  
  252. environments:
  253. development:
  254. dataSource:
  255. dbCreate: create-drop
  256. url: jdbc:postgresql://localhost/acltest_dev
Add Comment
Please, Sign In to add comment