Scheduled Report generates Access Denied Error in Jasper Server
search cancel

Scheduled Report generates Access Denied Error in Jasper Server

book

Article ID: 229661

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

Error message when scheduled reports are run from Jasper

Error seen:

Quartz Job: ReportJobs.job_ Message: Report Output.pdf was not saved to the repository. An error interrupted the process. Exceptions: org.springframework.security.access.AccessDeniedException: Access is denied at org.springframework.security.access.vote.AffirmativeBased.decide(AffirmativeBased.java:83) at org.springframework.security.access.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:206) at org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:60) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy68.saveResource(Unknown Source) at com.jaspersoft.jasperserver.multipleTenancy.PathTransformationRepositoryService.saveResource(PathTransformationRepositoryService.java:591) at sun.reflect.GeneratedMethodAccessor1149.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at 

Environment

Release: Spectrum 21.2

Jasper 7.11

Cause

User who is scheduling the reports doesn't have permissions to write output to repository folder. 

Resolution

ption 1: Ensure that the user has read + write permissions to the Output to Repository field set for the scheduled report. This will allow them to save the output to the repository.

  1. In Advanced Reporting, right click on the Report and select Schedule
  2. Click Create Schedule
  3. Click on the Output Options
  4. Scroll down to Output Destination
  5. View the Output to Repository path
  6. Check to make sure the user has read/write to the repository path noted
Option 2: Uncheck the Output to Repository setting altogether under output options if they only want the output through email.