[OpenVPMS Developers] [JIRA] Created: (REP-11) java.lang.IllegalArgumentException: Null range specified
Key: REP-11 URL: https://openvpms.atlassian.net/browse/REP-11 Project: Reporting Framework Issue Type: Bug Affects Versions: 1.4 Reporter: Tim Anderson Assignee: Tim Anderson Priority: Minor Fix For: 1.5
From a 1.4 error report:
{noformat} java.lang.IllegalArgumentException: Null range specified at javax.print.attribute.standard.PageRanges.(Unknown Source) at net.sf.jasperreports.engine.export.JRPrintServiceExporter.exportReport(JRPrintServiceExporter.java:222) at org.openvpms.report.jasper.AbstractJasperIMReport.print(AbstractJasperIMReport.java:678) at org.openvpms.report.jasper.AbstractJasperIMReport.print(AbstractJasperIMReport.java:364) at org.openvpms.web.app.reporting.SQLReportPrinter.print(SQLReportPrinter.java:147) at org.openvpms.web.component.print.InteractivePrinter.doPrint(InteractivePrinter.java:308) at org.openvpms.web.component.print.InteractivePrinter.printDirect(InteractivePrinter.java:298) at org.openvpms.web.component.print.InteractivePrinter.print(InteractivePrinter.java:144) at org.openvpms.web.component.print.InteractivePrinter.print(InteractivePrinter.java:127) at org.openvpms.web.app.reporting.ReportingWorkspace.onRun(ReportingWorkspace.java:165) at org.openvpms.web.app.reporting.ReportingWorkspace$2.onAction(ReportingWorkspace.java:150) at org.openvpms.web.component.event.ActionListener.actionPerformed(ActionListener.java:41) at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) at echopointng.ButtonEx$1.actionPerformed(ButtonEx.java:120) at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) at echopointng.model.DefaultButtonModelEx.doAction(DefaultButtonModelEx.java:51) at echopointng.ButtonEx.processInput(ButtonEx.java:202) at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472) at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) at org.openvpms.web.servlet.SpringWebContainerServlet.process(SpringWebContainerServlet.java:148) at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) at org.openvpms.web.servlet.SkipLoginFilter.doFilter(SkipLoginFilter.java:111) at org.openvpms.web.servlet.SkipLoginFilter.doFilter(SkipLoginFilter.java:71) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) {noformat}
-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf
[OpenVPMS Developers] [JIRA] Commented: (REP-11) java.lang.Illeg
Tim Anderson commented on REP-11: ---------------------------------
The exception is being generated as there is no data in the report to print. Its being caused by the "When No Data" property set in the Active Clients by Month.jrxml report template. This is currently set to "No Pages" - when there is no data, jasper doesn't generate any pages for the report. Attempting to print the report fails as it tries to print page 1, which doesn't exist when there is no data.
A workaround would be to change the "When No Data" in the template to one of the other options, using iReport i.e: * All Sections, No Detail * Blank Page * No Data Section
A better approach would be to throw a more information exception if there is nothing to print
> java.lang.IllegalArgumentException: Null range specified > -------------------------------------------------------- > > Key: REP-11 > URL: https://openvpms.atlassian.net/browse/REP-11 > Project: Reporting Framework > Issue Type: Bug > Affects Versions: 1.4 > Reporter: Tim Anderson > Assignee: Tim Anderson > Priority: Minor > Fix For: 1.5 > > > From a 1.4 error report: > {noformat} > java.lang.IllegalArgumentException: Null range specified > at javax.print.attribute.standard.PageRanges.(Unknown Source) > at net.sf.jasperreports.engine.export.JRPrintServiceExporter.exportReport(JRPrintServiceExporter.java:222) > at org.openvpms.report.jasper.AbstractJasperIMReport.print(AbstractJasperIMReport.java:678) > at org.openvpms.report.jasper.AbstractJasperIMReport.print(AbstractJasperIMReport.java:364) > at org.openvpms.web.app.reporting.SQLReportPrinter.print(SQLReportPrinter.java:147) > at org.openvpms.web.component.print.InteractivePrinter.doPrint(InteractivePrinter.java:308) > at org.openvpms.web.component.print.InteractivePrinter.printDirect(InteractivePrinter.java:298) > at org.openvpms.web.component.print.InteractivePrinter.print(InteractivePrinter.java:144) > at org.openvpms.web.component.print.InteractivePrinter.print(InteractivePrinter.java:127) > at org.openvpms.web.app.reporting.ReportingWorkspace.onRun(ReportingWorkspace.java:165) > at org.openvpms.web.app.reporting.ReportingWorkspace$2.onAction(ReportingWorkspace.java:150) > at org.openvpms.web.component.event.ActionListener.actionPerformed(ActionListener.java:41) > at nextapp.echo2.app.button.AbstractButton.fireActionPerformed(AbstractButton.java:135) > at echopointng.ButtonEx$1.actionPerformed(ButtonEx.java:120) > at nextapp.echo2.app.button.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:70) > at echopointng.model.DefaultButtonModelEx.doAction(DefaultButtonModelEx.java:51) > at echopointng.ButtonEx.processInput(ButtonEx.java:202) > at nextapp.echo2.app.update.ClientUpdateManager.process(ClientUpdateManager.java:116) > at nextapp.echo2.app.update.UpdateManager.processClientUpdates(UpdateManager.java:89) > at nextapp.echo2.webcontainer.ContainerSynchronizeService.renderUpdate(ContainerSynchronizeService.java:472) > at nextapp.echo2.webrender.service.SynchronizeService.service(SynchronizeService.java:279) > at nextapp.echo2.webrender.WebRenderServlet.process(WebRenderServlet.java:273) > at org.openvpms.web.servlet.SpringWebContainerServlet.process(SpringWebContainerServlet.java:148) > at nextapp.echo2.webrender.WebRenderServlet.doPost(WebRenderServlet.java:189) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:292) > at org.openvpms.web.servlet.SkipLoginFilter.doFilter(SkipLoginFilter.java:111) > at org.openvpms.web.servlet.SkipLoginFilter.doFilter(SkipLoginFilter.java:71) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) > at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:108) > at org.acegisecurity.intercept.web.SecurityEnforcementFilter.doFilter(SecurityEnforcementFilter.java:197) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) > at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:143) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) > at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:246) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) > at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:220) > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:303) > at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:173) > at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:120) > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) > at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) > at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) > at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) > at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) > at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) > at java.lang.Thread.run(Unknown Source) > {noformat}-- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://openvpms.atlassian.net/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________ OpenVPMS Developers Mailing List developers@lists.openvpms.org To unsubscribe or change your subscription visit: http://lists.openvpms.org/listinfo/developers Posts from this mailing list can be viewed online and replied to in the OpenVPMS Developer's forum- http://tinyurl.com/openvdf