<div>Hey,</div>
<div> </div>
<div>Trying to hide the column from table based on printPrices parameter (value would be Y or N) at run time. My Requirement is: Table is having 4 columns: Part Number, Description, Qty, Price.</div>
<div>If printPrices parameter value is Y then display the Price column with values else display table with rest 3 columns (Part Number, Description, Qty).</div>
<div> </div>
<div>Problem is: On passing printPrices as 'Y', report is working fine but If we pass printPrices parameter value as 'N' then getting below exception:- </div>
<div>
<div>
<div>org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report</div>
<div>AxisFault</div>
<div> faultCode: {<a data-ipb='nomediaparse' href='
http://schemas.xmlsoap.org/soap/envelope/}Server.userException'>http://schemas.xmlsoap.org/soap/envelope/}Server.userException</a></div>
<div> faultSubcode: </div>
<div> faultString: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report</div>
<div> faultActor: </div>
<div> faultNode: </div>
<div> faultDetail: </div>
<div>{<a data-ipb='nomediaparse' href='
http://xml.apache.org/axis/}stackTrace:org.eclipse.birt.report.service.api.ReportServiceException:'>http://xml.apache.org/axis/}stackTrace:org.eclipse.birt.report.service.api.ReportServiceException:</a>Error happened while running the report</div>
<div>at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1371)</div>
<div>at org.eclipse.birt.report.service.BirtViewerReportService.renderReport(BirtViewerReportService.java:336)</div>
<div>at org.eclipse.birt.report.service.actionhandler.BirtRenderReportActionHandler.__execute(BirtRenderReportActionHandler.java:66)</div>
<div>at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:90)</div>
<div>at org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.doService(FramesetFragment.java:222)</div>
<div>at org.eclipse.birt.report.presentation.aggregation.layout.FramesetFragment.service(FramesetFragment.java:86)</div>
<div>at org.eclipse.birt.report.servlet.ViewerServlet.__doGet(ViewerServlet.java:181)</div>
<div>at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doGet(BirtSoapMessageDispatcherServlet.java:146)</div>
<div>at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.doPost(BirtSoapMessageDispatcherServlet.java:229)</div>
<div>at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)</div>
<div>at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)</div>
<div>at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)</div>
<div>at org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherServlet.service(BirtSoapMessageDispatcherServlet.java:112)</div>
<div>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)</div>
<div>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</div>
<div>at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(Unknown Source)</div>
<div>at org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(Unknown Source)</div>
<div>at com.avexus.avexnet.security.context.HttpSessionContextIntegrationFilter.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.util.FilterChainProxy.doFilter(Unknown Source)</div>
<div>at org.acegisecurity.util.FilterToBeanProxy.doFilter(Unknown Source)</div>
<div>at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)</div>
<div>at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)</div>
<div>at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)</div>
<div>at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)</div>
<div>at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)</div>
<div>at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)</div>
<div>at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)</div>
<div>at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)</div>
<div>at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)</div>
<div>at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)</div>
<div>at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)</div>
<div>at java.lang.Thread.run(Thread.java:662)</div>
<div>Caused by: org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report</div>
<div>at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:218)</div>
<div>at org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1365)</div>
<div>... 43 more</div>
<div>Caused by: java.lang.ArrayIndexOutOfBoundsException: 3</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.TableLayout$TableLayoutInfo.getCellWidth(TableLayout.java:909)</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.TableLayout.getCellWidth(TableLayout.java:722)</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.CellLayout.<init>(CellLayout.java:49)</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.LayoutContextFactory$ContentVisitor.visitCell(LayoutContextFactory.java:128)</div>
<div>at org.eclipse.birt.report.engine.internal.content.wrap.CellContentWrapper.accept(CellContentWrapper.java:107)</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.LayoutContextFactory.createLayoutManager(LayoutContextFactory.java:68)</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.PDFLayoutEmitter.startTableContainer(PDFLayoutEmitter.java:409)</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.PDFLayoutEmitter.startCell(PDFLayoutEmitter.java:463)</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.WrappedPDFLayoutEmitter.startCell(WrappedPDFLayoutEmitter.java:310)</div>
<div>at org.eclipse.birt.report.engine.layout.pdf.emitter.PDFLayoutEmitterProxy.startCell(PDFLayoutEmitterProxy.java:309)</div>
<div>at org.eclipse.birt.report.engine.emitter.CompositeContentEmitter.startCell(CompositeContentEmitter.java:228)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.startCell(HTMLTableLayoutEmitter.java:691)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableLayoutEmitter.startCell(HTMLTableLayoutEmitter.java:687)</div>
<div>at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.startContent(ContentEmitterUtil.java:57)</div>
<div>at org.eclipse.birt.report.engine.layout.html.buffer.ContainerBufferNode.start(ContainerBufferNode.java:82)</div>
<div>at org.eclipse.birt.report.engine.layout.html.buffer.HTMLPageBuffer.startContent(HTMLPageBuffer.java:112)</div>
<div>at org.eclipse.birt.report.engine.layout.html.buffer.TableBreakBuffer.startContent(TableBreakBuffer.java:227)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLLeafItemLM.start(HTMLLeafItemLM.java:50)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:132)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:104)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:153)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableBandLM.layoutChildren(HTMLTableBandLM.java:65)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:76)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.resumeLayout(HTMLInlineStackingLM.java:104)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLInlineStackingLM.layoutNodes(HTMLInlineStackingLM.java:153)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLStackingLM.layoutChildren(HTMLStackingLM.java:27)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLTableLM.layoutChildren(HTMLTableLM.java:76)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLAbstractLM.layout(HTMLAbstractLM.java:133)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLBlockStackingLM.layoutNodes(HTMLBlockStackingLM.java:68)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:90)</div>
<div>at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:101)</div>
<div>at org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:494)</div>
<div>at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:206)</div>
<div>... 44 more</div>
</div>
<div> </div>
<div> </div>
<div>Please find the attached screenshot to check how I am hiding the column.</div>
<div>