AnsweredAssumed Answered

jaspersoft java.lang.NullPointerException

Question asked by Suhas Kamble on Nov 30, 2015
Latest reply on Dec 4, 2015 by Suhas Kamble

I successfully completed jaspersfot setup, however users are not able to run the report.

When I run the report as superuser I get Null Pointer exception

 

Debug Log trace

 

2015-11-30 15:42:25,580 DEBUG EngineServiceImpl,http-bio-9880-exec-7:2261 - Setting report parameter LoggedInUser to MetadataUserDetails: superuser

2015-11-30 15:42:25,589 DEBUG RepositoryConnection,http-bio-9880-exec-7:92 - Loading resource "/ca_ppm/resources/localization/CSK_Report_Resource_Bundle.properties" from repository

2015-11-30 15:42:26,015 DEBUG RepositoryUtil,http-bio-9880-exec-7:42 - set repository context to context with path /ca_ppm/reports/resource_management/CSK_RES_CapVsAllocByOBS_files

2015-11-30 15:42:26,017 DEBUG RepositoryUtil,http-bio-9880-exec-7:42 - set repository context to null

2015-11-30 15:42:26,242 ERROR JDBCProxyDataSourcePool,http-bio-9880-exec-7:157 - ::org.apache.jasper.JasperException: Dynamic Proxy Data Source Pool can only be used at a Tenant Level context.. Null Data Source will be returned.

        at com.ca.jasper.jdbc.JDBCProxyDataSourcePool.createService(JDBCProxyDataSourcePool.java:153)

        at com.ca.jasper.jdbc.JDBCProxyDataSourcePool.createService(JDBCProxyDataSourcePool.java:791)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

 

 

2015-11-30 15:42:26,245 DEBUG EngineServiceImpl,http-bio-9880-exec-7:2261 - Setting report parameter LoggedInUser to MetadataUserDetails: superuser

2015-11-30 15:42:26,247 DEBUG EngineServiceImpl,http-bio-9880-exec-7:2261 - Setting report parameter LoggedInUsername to superuser

2015-11-30 15:42:26,249 DEBUG EngineServiceImpl,http-bio-9880-exec-7:2261 - Setting report parameter LoggedInUserLocale to en_US

2015-11-30 15:42:26,250 DEBUG EngineServiceImpl,http-bio-9880-exec-7:2261 - Setting report parameter LoggedInUserLocaleCode to en_US

2015-11-30 15:42:26,252 ERROR GenericExceptionMapper,http-bio-9880-exec-7:47 - Unexpected error occurs

java.lang.NullPointerException

        at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.executeQuery(EngineServiceImpl.java:2146)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

Outcomes