org.springframework.security.AccessDeniedException: Access denied to this data; nested exception is javax.jcr.AccessDeniedException: /pentaho/tenant0/etc/pho:hidden: not allowed to add or modify item

Pentaho BI Platform Tracking | Kurtis Walker | 3 years ago
  1. 0

    Found in CI EE build 1499. During startup of biserver, there are several access denied exceptions thrown while creating sample data and importing the audit mart. org.springframework.security.AccessDeniedException: Access denied to this data; nested exception is javax.jcr.AccessDeniedException: /pentaho/tenant0/etc/pho:hidden: not allowed to add or modify item at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.pentahoConvertJcrAccessException(PentahoJcrTemplate.java:98) at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.execute(PentahoJcrTemplate.java:70) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115) at org.pentaho.platform.repository2.unified.jcr.JcrRepositoryFileDao.updateFolder(JcrRepositoryFileDao.java:1151) at org.pentaho.platform.repository2.unified.DefaultUnifiedRepository.internalUpdateFolder(DefaultUnifiedRepository.java:473) at org.pentaho.platform.repository2.unified.DefaultUnifiedRepository.updateFolder(DefaultUnifiedRepository.java:572) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    Pentaho BI Platform Tracking | 3 years ago | Kurtis Walker
    org.springframework.security.AccessDeniedException: Access denied to this data; nested exception is javax.jcr.AccessDeniedException: /pentaho/tenant0/etc/pho:hidden: not allowed to add or modify item
  2. 0

    Found in CI EE build 1499. During startup of biserver, there are several access denied exceptions thrown while creating sample data and importing the audit mart. org.springframework.security.AccessDeniedException: Access denied to this data; nested exception is javax.jcr.AccessDeniedException: /pentaho/tenant0/etc/pho:hidden: not allowed to add or modify item at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.pentahoConvertJcrAccessException(PentahoJcrTemplate.java:98) at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.execute(PentahoJcrTemplate.java:70) at org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115) at org.pentaho.platform.repository2.unified.jcr.JcrRepositoryFileDao.updateFolder(JcrRepositoryFileDao.java:1151) at org.pentaho.platform.repository2.unified.DefaultUnifiedRepository.internalUpdateFolder(DefaultUnifiedRepository.java:473) at org.pentaho.platform.repository2.unified.DefaultUnifiedRepository.updateFolder(DefaultUnifiedRepository.java:572) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    Pentaho BI Platform Tracking | 3 years ago | Kurtis Walker
    org.springframework.security.AccessDeniedException: Access denied to this data; nested exception is javax.jcr.AccessDeniedException: /pentaho/tenant0/etc/pho:hidden: not allowed to add or modify item
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    NO_CREDENTIALS

    Google Groups | 6 years ago | Neil Shannon
    org.springframework.security.AccessDeniedException: Access is denied
  5. 0

    This is manifesting for me when the NonPooledDatasourceSystemListener runs. It's expecting that the Thread is still bound to the "system session", but the BackingRepositoryLifecycleManagerSystemListener has switched the Authentication over to "pentahoRepoAdmin". System Listeners should be reseting the Authentication and PentahoSession back to what it was when they were executed (system session). This is not happening with many of them. 10:22:24,182 ERROR [Logger] misc-org.pentaho.platform.engine.core.system.PentahoSystem: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.engine.services.connection.datasource.dbcp.DynamicallyPooledDatasourceSystemListener org.pentaho.platform.api.engine.PentahoSystemException: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.engine.services.connection.datasource.dbcp.DynamicallyPooledDatasourceSystemListener at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:330) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:293) at org.pentaho.platform.engine.core.system.PentahoSystem.init(PentahoSystem.java:206) at org.pentaho.platform.web.http.context.SolutionContextListener.contextInitialized(SolutionContextListener.java:135) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) Caused by: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.engine.services.connection.datasource.dbcp.DynamicallyPooledDatasourceSystemListener at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:400) at org.pentaho.platform.engine.core.system.PentahoSystem.access$000(PentahoSystem.java:76) at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:325) at org.pentaho.platform.engine.core.system.PentahoSystem$1.call(PentahoSystem.java:322) at org.pentaho.platform.engine.core.system.PentahoSystem.runAsSystem(PentahoSystem.java:366) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:322) ... 27 more Caused by: org.springframework.security.AccessDeniedException: Access is denied at org.springframework.security.vote.UnanimousBased.decide(UnanimousBased.java:74) at org.springframework.security.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:262) at org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:63) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy38.getFile(Unknown Source) at org.pentaho.platform.repository.JcrBackedDatasourceMgmtService.getDatabaseParentFolderId(JcrBackedDatasourceMgmtService.java:320) at org.pentaho.platform.repository.JcrBackedDatasourceMgmtService.getRepositoryFiles(JcrBackedDatasourceMgmtService.java:330) at org.pentaho.platform.repository.JcrBackedDatasourceMgmtService.getDatasources(JcrBackedDatasourceMgmtService.java:206) at org.pentaho.platform.engine.services.connection.datasource.dbcp.NonPooledDatasourceSystemListener.startup(NonPooledDatasourceSystemListener.java:48) at org.pentaho.platform.engine.core.system.PentahoSystem.notifySystemListenersOfStartup(PentahoSystem.java:391)

    Pentaho BI Platform Tracking | 2 years ago | Nick Baker
    org.pentaho.platform.api.engine.PentahoSystemException: org.pentaho.platform.api.engine.PentahoSystemException: PentahoSystem.ERROR_0014 - Error while trying to execute startup sequence for org.pentaho.platform.engine.services.connection.datasource.dbcp.DynamicallyPooledDatasourceSystemListener

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.security.AccessDeniedException

      Access denied to this data; nested exception is javax.jcr.AccessDeniedException: /pentaho/tenant0/etc/pho:hidden: not allowed to add or modify item

      at org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.pentahoConvertJcrAccessException()
    2. org.pentaho.platform
      PentahoJcrTemplate.execute
      1. org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.pentahoConvertJcrAccessException(PentahoJcrTemplate.java:98)
      2. org.pentaho.platform.repository2.unified.jcr.sejcr.PentahoJcrTemplate.execute(PentahoJcrTemplate.java:70)
      2 frames
    3. org.springframework.extensions
      JcrTemplate.execute
      1. org.springframework.extensions.jcr.JcrTemplate.execute(JcrTemplate.java:115)
      1 frame
    4. org.pentaho.platform
      DefaultUnifiedRepository.updateFolder
      1. org.pentaho.platform.repository2.unified.jcr.JcrRepositoryFileDao.updateFolder(JcrRepositoryFileDao.java:1151)
      2. org.pentaho.platform.repository2.unified.DefaultUnifiedRepository.internalUpdateFolder(DefaultUnifiedRepository.java:473)
      3. org.pentaho.platform.repository2.unified.DefaultUnifiedRepository.updateFolder(DefaultUnifiedRepository.java:572)
      3 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:601)
      4 frames
    6. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      3 frames
    7. org.springframework.security
      MethodSecurityInterceptor.invoke
      1. org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:66)
      1 frame
    8. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame
    9. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
      1 frame
    10. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      1 frame