[OpenVPMS Developers] [JIRA] Created: (REP-9) Error when printing report: 1. Field not found : collectionDisplayName

Error when printing report: 1. Field not found : collectionDisplayName ----------------------------------------------------------------------

Key: REP-9 URL: https://openvpms.atlassian.net/browse/REP-9 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} org.openvpms.report.ReportException: Failed to create report: Report design not valid : 1. Field not found : collectionDisplayName at org.openvpms.report.jasper.DynamicJasperReport.(DynamicJasperReport.java:93) at org.openvpms.report.ReportFactory.createIMObjectReport(ReportFactory.java:110) at org.openvpms.web.component.im.report.IMObjectReporter.getReport(IMObjectReporter.java:106) at org.openvpms.web.component.im.print.AbstractIMPrinter.print(AbstractIMPrinter.java:79) at org.openvpms.web.component.print.InteractivePrinter.doPrint(InteractivePrinter.java:308) at org.openvpms.web.component.print.InteractivePrinter$2.onClose(InteractivePrinter.java:279) at org.openvpms.web.component.event.WindowPaneListener.windowPaneClosing(WindowPaneListener.java:39) at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:154) at org.openvpms.web.component.dialog.PopupWindow.fireWindowClosing(PopupWindow.java:269) at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:792) at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:193) at org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:297) at org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:228) at org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:201) at org.openvpms.web.component.dialog.PopupDialog$2.onAction(PopupDialog.java:310) 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) Caused by: net.sf.jasperreports.engine.design.JRValidationException: Report design not valid : 1. Field not found : collectionDisplayName at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) at org.openvpms.report.jasper.DynamicJasperReport.getSubreport(DynamicJasperReport.java:232) at org.openvpms.report.jasper.DynamicJasperReport.init(DynamicJasperReport.java:194) at org.openvpms.report.jasper.DynamicJasperReport.(DynamicJasperReport.java:91) {noformat}

No report template has been found so a dynamic report has been generated, but is incorrect.

-- 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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

[OpenVPMS Developers] [JIRA] Commented: (REP-9) Error when print

[ https://openvpms.atlassian.net/browse/REP-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12035#action_12035 ]

Tim Anderson commented on REP-9: --------------------------------

The DynamicJasperReport was initially used for testing purposes, to handle the case where templates hadn't been defined. For production, ReportFactory.createIMObjectReport() should throw ReportException(NoTemplateForArchetype, shortName) if no template is found.

> Error when printing report: 1. Field not found : collectionDisplayName > ---------------------------------------------------------------------- > > Key: REP-9 > URL: https://openvpms.atlassian.net/browse/REP-9 > 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} > org.openvpms.report.ReportException: Failed to create report: Report design not valid : > 1. Field not found : collectionDisplayName > at org.openvpms.report.jasper.DynamicJasperReport.(DynamicJasperReport.java:93) > at org.openvpms.report.ReportFactory.createIMObjectReport(ReportFactory.java:110) > at org.openvpms.web.component.im.report.IMObjectReporter.getReport(IMObjectReporter.java:106) > at org.openvpms.web.component.im.print.AbstractIMPrinter.print(AbstractIMPrinter.java:79) > at org.openvpms.web.component.print.InteractivePrinter.doPrint(InteractivePrinter.java:308) > at org.openvpms.web.component.print.InteractivePrinter$2.onClose(InteractivePrinter.java:279) > at org.openvpms.web.component.event.WindowPaneListener.windowPaneClosing(WindowPaneListener.java:39) > at nextapp.echo2.app.WindowPane.fireWindowClosing(WindowPane.java:154) > at org.openvpms.web.component.dialog.PopupWindow.fireWindowClosing(PopupWindow.java:269) > at nextapp.echo2.app.WindowPane.userClose(WindowPane.java:792) > at org.openvpms.web.component.dialog.PopupWindow.close(PopupWindow.java:193) > at org.openvpms.web.component.dialog.PopupDialog.close(PopupDialog.java:297) > at org.openvpms.web.component.dialog.PopupDialog.onOK(PopupDialog.java:228) > at org.openvpms.web.component.dialog.PopupDialog.onButton(PopupDialog.java:201) > at org.openvpms.web.component.dialog.PopupDialog$2.onAction(PopupDialog.java:310) > 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) > Caused by: net.sf.jasperreports.engine.design.JRValidationException: Report design not valid : > 1. Field not found : collectionDisplayName > at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258) > at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140) > at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:215) > at org.openvpms.report.jasper.DynamicJasperReport.getSubreport(DynamicJasperReport.java:232) > at org.openvpms.report.jasper.DynamicJasperReport.init(DynamicJasperReport.java:194) > at org.openvpms.report.jasper.DynamicJasperReport.(DynamicJasperReport.java:91) > {noformat} > No report template has been found so a dynamic report has been generated, but is incorrect.

-- 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

Syndicate content