Report fill error

0

Hi,

We are trying to execute a report using visualize.js library.

Although the report got executed successfully, the server threw an error to the client "resource.not.found : Resource 70779358-c03b-40d5-a37c-79b42ac47964 not found".

We see below error in the Server Logs. It would be great if anyone can throw some light on this.

P.S: The same report works fine when accessed via JasperReport UI.

2019-05-15 06:39:18,879 DEBUG EngineServiceImpl,pool-6-thread-6:755 - Report fill error
com.jaspersoft.jasperserver.api.JSException: Exception getting data strategyorg.springframework.security.core.authority.SimpleGrantedAuthority cannot be cast to com.jaspersoft.jasperserver.api.metadata.user.domain.Role
Arguments: 
    at com.jaspersoft.ji.adhoc.datasource.AdhocDataSourceService.setReportParameterValues(AdhocDataSourceService.java:196)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:1806)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runWithDataSource(EngineServiceImpl.java:1143)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportFill.runReport(EngineServiceImpl.java:1072)
    at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportRunnable.run(EngineServiceImpl.java:967)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassCastException: org.springframework.security.core.authority.SimpleGrantedAuthority cannot be cast to com.jaspersoft.jasperserver.api.metadata.user.domain.Role
    at com.jaspersoft.commons.datarator.DefaultCacheKeyInterceptor$UserImplThatComparesRoles.<init>(DefaultCacheKeyInterceptor.java:126)
    at com.jaspersoft.commons.datarator.DefaultCacheKeyInterceptor.getCacheKeyCalled(DefaultCacheKeyInterceptor.java:98)
    at com.jaspersoft.commons.datarator.CachedDatasetKey.<init>(CachedDatasetKey.java:226)
    at com.jaspersoft.commons.datarator.BaseDataSetCacheImpl.getCachedDataSet(BaseDataSetCacheImpl.java:113)
    at com.jaspersoft.commons.datarator.BaseDataSetCacheImpl.getWorkingDataSet(BaseDataSetCacheImpl.java:280)
    at com.jaspersoft.commons.semantic.dsimpl.memory.MemoryDataSet.getWorkingDataSet(MemoryDataSet.java:103)
    at com.jaspersoft.commons.semantic.dsimpl.memory.MemoryDataSet.getWorkingDataSet(MemoryDataSet.java:76)
    at com.jaspersoft.ji.adhoc.strategy.CommonDomainDataStrategy.getWorkingDataSet(CommonDomainDataStrategy.java:1358)
    at com.jaspersoft.ji.adhoc.strategy.CommonDomainDataStrategy.getRuntimeDataSet(CommonDomainDataStrategy.java:1770)
    at com.jaspersoft.ji.adhoc.strategy.DomainDataStrategy.getRuntimeDataSet(DomainDataStrategy.java:323)
    at com.jaspersoft.ji.adhoc.strategy.CompiledDomainQuery.getRuntimeDataSet(CompiledDomainQuery.java:103)
    at com.jaspersoft.ji.adhoc.datasource.AdhocDataSourceService.setReportParameterValues(AdhocDataSourceService.java:167)
    ... 7 more

 

Thanks

Pranesh

cpranesh's picture
Joined: May 14 2019 - 11:54pm
Last seen: 5 days 8 hours ago

1 Answer:

0

Adhoc and Visualize.js are commercial products. If you think you've found a bug, report to TIBCO Jaspersoft commercial product support. You should have gotten information on commercial support with your license.

hozawa's picture
42078
Joined: Apr 24 2010 - 4:31pm
Last seen: 10 hours 25 min ago
Feedback