#1 2024-10-17 22:24:27

eeuser01
Member
Registered: 2019-06-07

Scheduled Template XSLT not working in Scheduler on RS4.6.3-6104

I have been using release RS4.5.0-6087 EE with a scheduled Template XSLT report and it worked as expected producing the XML report.

After upgrading to release RS4.6.3-6104 EE, the same scheduled Template XSLT report no longer works and creates an error message in the scheduler.

Is there a way to get this working on RS4.6.3-6104?

ERROR MESSAGE
Report could not be executed. {"error":"OutOfScopeException: Cannot access scoped [net.datenwerke.rs.tabletemplate.service.tabletemplate.SessionStorage]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request.","report_id":12571074,"report_name":"Invoice Details_Modified","base_report_id":12570322,"base_report_name":"InventorySummary","executing_user_id":6544,"report_output_format":"TABLE_TEMPLATE","report_uuid":"431495da-fc52-4c85-b6d0-a7de8d024bdc"} net.datenwerke.scheduler.service.scheduler.exceptions.JobExecutionException: net.datenwerke.rs.core.service.reportmanager.exceptions.ReportExecutorException: The report could not be executed: OutOfScopeException: Cannot access scoped [net.datenwerke.rs.tabletemplate.service.tabletemplate.SessionStorage]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request.
    at net.datenwerke.rs.scheduler.service.scheduler.jobs.report.ReportExecuteJob.doExecute(ReportExecuteJob.java:154)
    at net.datenwerke.scheduler.service.scheduler.entities.AbstractJob.execute(AbstractJob.java:186)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.executeJob(SchedulerTask.java:665)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.safeCall(SchedulerTask.java:205)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.call(SchedulerTask.java:100)
    at net.datenwerke.scheduler.service.scheduler.tasks.SchedulerTask.call(SchedulerTask.java:1)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: net.datenwerke.rs.core.service.reportmanager.exceptions.ReportExecutorException: The report could not be executed: OutOfScopeException: Cannot access scoped [net.datenwerke.rs.tabletemplate.service.tabletemplate.SessionStorage]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request.
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:280)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:161)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:151)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:145)
    at net.datenwerke.rs.scheduler.service.scheduler.jobs.report.ReportExecuteJob.doExecute(ReportExecuteJob.java:148)
    ... 9 more
Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) [Guice/ErrorInCustomProvider]: OutOfScopeException: Cannot access scoped [SessionStorage]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply GuiceFilter as a servlet filter for this request.
  at TableTemplateEEModule.configure(TableTemplateEEModule.java:13)
  while locating SessionStorage

Learn more:
  https://github.com/google/guice/wiki/ER … M_PROVIDER

1 error

======================
Full classname legend:
======================
GuiceFilter:           "com.google.inject.servlet.GuiceFilter"
OutOfScopeException:   "com.google.inject.OutOfScopeException"
SessionStorage:        "net.datenwerke.rs.tabletemplate.service.tabletemplate.SessionStorage"
TableTemplateEEModule: "net.datenwerke.rs.tabletemplate.service.tabletemplate.TableTemplateEEModule"
========================
End of classname legend:
========================

    at com.google.inject.internal.InternalProvisionException.toProvisionException(InternalProvisionException.java:251)
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1104)
    at net.datenwerke.rs.tabletemplate.service.tabletemplate.TableTemplateServiceImpl.getTemplatesFromProperty(TableTemplateServiceImpl.java:102)
    at net.datenwerke.rsenterprise.license.service.EnterpriseCheckInterceptor.invoke(EnterpriseCheckInterceptor.java:40)
    at net.datenwerke.rs.tabletemplate.service.tabletemplate.TableTemplateServiceImpl.getTemplatesFor(TableTemplateServiceImpl.java:113)
    at net.datenwerke.rsenterprise.license.service.EnterpriseCheckInterceptor.invoke(EnterpriseCheckInterceptor.java:40)
    at net.datenwerke.rs.tabletemplate.service.tabletemplate.TableTemplateServiceImpl.getTemplateTemporary(TableTemplateServiceImpl.java:198)
    at net.datenwerke.rsenterprise.license.service.EnterpriseCheckInterceptor.invoke(EnterpriseCheckInterceptor.java:40)
    at net.datenwerke.rs.tabletemplate.service.tabletemplate.hookers.TableReportEngineEnhancerHooker.getTemplate(TableReportEngineEnhancerHooker.java:92)
    at net.datenwerke.rs.tabletemplate.service.tabletemplate.hookers.TableReportEngineEnhancerHooker.executeReport(TableReportEngineEnhancerHooker.java:69)
    at net.datenwerke.rs.core.service.reportmanager.engine.ReportEngine.execute(ReportEngine.java:134)
    at net.datenwerke.rs.core.service.reportmanager.ReportExecutorServiceImpl.execute(ReportExecutorServiceImpl.java:246)
    ... 13 more
Caused by: com.google.inject.OutOfScopeException: Cannot access scoped [net.datenwerke.rs.tabletemplate.service.tabletemplate.SessionStorage]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request.
    at com.google.inject.servlet.GuiceFilter.getContext(GuiceFilter.java:170)
    at com.google.inject.servlet.GuiceFilter.getRequest(GuiceFilter.java:151)
    at com.google.inject.servlet.ServletScopes$SessionScope$1.get(ServletScopes.java:157)
    at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:45)
    at com.google.inject.internal.InjectorImpl$1.get(InjectorImpl.java:1101)
    ... 23 more

Last edited by eeuser01 (2024-10-18 21:29:53)

Offline

#2 2024-11-14 10:56:57

adrian1703
Moderator
Registered: 2021-10-29

Re: Scheduled Template XSLT not working in Scheduler on RS4.6.3-6104

Hello,

That is a know issue in RS4.6.3-6104. If possible upgrade 4.7.x - the bug was fixed there.

Kind regards,
Adrian

Offline

Board footer

Powered by FluxBB