Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » ArrayIndexOutOfBoundsException in Birt Runtime 4.4.1( The issue with XLS report format)
ArrayIndexOutOfBoundsException in Birt Runtime 4.4.1 [message #1721577] Thu, 28 January 2016 12:17 Go to next message
Kamil Zmo is currently offline Kamil ZmoFriend
Messages: 2
Registered: November 2015
Junior Member
Hi,

I try to get XLS format report by using Birt Api. I replaced the standard emitter with Spudsoft excel emitter by applying below code:

options = new EXCELRenderOption();
options.setEmitterID("uk.co.spudsoft.birt.emitters.excel.XlsEmitter");
options.setOutputFormat("xls_spudsoft");
options.setOption(ExcelEmitter.SINGLE_SHEET,true);


When PDF is selected the report is created fine.

Here is the stack trace output:

26.1.2016 15:35:17 org.eclipse.birt.report.engine.emitter.excel.layout.Page needOutputInMasterPage
WARNING: Excel page header or footer only accept a table no more than 1 row and 3 columns.
26.1.2016 15:35:17 org.eclipse.birt.report.engine.api.impl.EngineTask handleFatalExceptions
SEVERE: An error happened while running the report. Cause:
java.lang.ArrayIndexOutOfBoundsException: -1
	at java.util.ArrayList.get(Unknown Source)
	at org.eclipse.birt.report.engine.emitter.excel.DataCache.getColumnLastData(DataCache.java:164)
	at org.eclipse.birt.report.engine.emitter.excel.layout.Page.getColumnLastData(Page.java:1020)
	at org.eclipse.birt.report.engine.emitter.excel.StyleEngine.applyContainerBottomStyle(StyleEngine.java:266)
	at org.eclipse.birt.report.engine.emitter.excel.layout.ExcelLayoutEngine.endNormalContainer(ExcelLayoutEngine.java:626)
	at org.eclipse.birt.report.engine.emitter.excel.layout.ExcelLayoutEngine.endCell(ExcelLayoutEngine.java:492)
	at org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter.endCell(ExcelEmitter.java:129)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitCell(ContentEmitterVisitor.java:110)
	at org.eclipse.birt.report.engine.content.impl.CellContent.accept(CellContent.java:215)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visit(ContentEmitterVisitor.java:51)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitChildren(ContentEmitterVisitor.java:171)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitRow(ContentEmitterVisitor.java:100)
	at org.eclipse.birt.report.engine.content.impl.RowContent.accept(RowContent.java:69)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visit(ContentEmitterVisitor.java:51)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitChildren(ContentEmitterVisitor.java:171)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitTable(ContentEmitterVisitor.java:82)
	at org.eclipse.birt.report.engine.content.impl.TableContent.accept(TableContent.java:104)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visit(ContentEmitterVisitor.java:51)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitChildren(ContentEmitterVisitor.java:171)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitCell(ContentEmitterVisitor.java:109)
	at org.eclipse.birt.report.engine.content.impl.CellContent.accept(CellContent.java:215)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visit(ContentEmitterVisitor.java:51)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitChildren(ContentEmitterVisitor.java:171)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitRow(ContentEmitterVisitor.java:100)
	at org.eclipse.birt.report.engine.content.impl.RowContent.accept(RowContent.java:69)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visit(ContentEmitterVisitor.java:51)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitChildren(ContentEmitterVisitor.java:171)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitTable(ContentEmitterVisitor.java:82)
	at org.eclipse.birt.report.engine.content.impl.TableContent.accept(TableContent.java:104)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visit(ContentEmitterVisitor.java:51)
	at org.eclipse.birt.report.engine.presentation.ContentEmitterVisitor.visitChildren(ContentEmitterVisitor.java:171)
	at org.eclipse.birt.report.engine.emitter.excel.layout.ExcelLayoutEngine.endPage(ExcelLayoutEngine.java:228)
	at org.eclipse.birt.report.engine.emitter.excel.ExcelEmitter.endPage(ExcelEmitter.java:99)
	at org.eclipse.birt.report.engine.emitter.CompositeContentEmitter.endPage(CompositeContentEmitter.java:171)
	at org.eclipse.birt.report.engine.emitter.ContentEmitterUtil.endContent(ContentEmitterUtil.java:102)
	at org.eclipse.birt.report.engine.layout.html.buffer.DummyPageBuffer.endContainer(DummyPageBuffer.java:61)
	at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.end(HTMLPageLM.java:183)
	at org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout(HTMLPageLM.java:98)
	at org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutEngine.layout(HTMLReportLayoutEngine.java:100)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doRun(RunAndRenderTask.java:181)
	at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:77)
	at org.report.birt.service.BirtApi.getReport(BirtApi.java:89)
	at org.report.birt.endpoint.BirtEndPoint.handleRequest(BirtEndPoint.java:30)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.springframework.ws.server.endpoint.MethodEndpoint.invoke(MethodEndpoint.java:134)
	at org.springframework.ws.server.endpoint.adapter.DefaultMethodEndpointAdapter.invokeInternal(DefaultMethodEndpointAdapter.java:291)
	at org.springframework.ws.server.endpoint.adapter.AbstractMethodEndpointAdapter.invoke(AbstractMethodEndpointAdapter.java:55)
	at org.springframework.ws.server.MessageDispatcher.dispatch(MessageDispatcher.java:236)
	at org.springframework.ws.server.MessageDispatcher.receive(MessageDispatcher.java:176)
	at org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport.handleConnection(WebServiceMessageReceiverObjectSupport.java:89)
	at org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapter.handle(WebServiceMessageReceiverHandlerAdapter.java:61)
	at org.springframework.ws.transport.http.MessageDispatcherServlet.doService(MessageDispatcherServlet.java:293)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318)
	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	at java.lang.Thread.run(Unknown Source)
Re: ArrayIndexOutOfBoundsException in Birt Runtime 4.4.1 [message #1780839 is a reply to message #1721577] Mon, 29 January 2018 07:38 Go to previous message
ARULRAJ S is currently offline ARULRAJ SFriend
Messages: 1
Registered: November 2017
Junior Member
I'm too facing the same issue and breaking my head of how to solve it, if anyone could give some suggestions, it will be of great help.
Previous Topic:BubbleChart Y-AXIS String Input
Next Topic:Birt 4.5.0 JARs problem
Goto Forum:
  


Current Time: Thu Apr 25 18:08:38 GMT 2024

Powered by FUDForum. Page generated in 0.03713 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top