Parts-in-Place / Vaadin_TableExport

Automatically exported from code.google.com/p/tableexport-for-vaadin
0 stars 0 forks source link

Caused by: java.lang.IllegalArgumentException: sheetName must not be null #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. excelExport = new ExcelExport(mainTable);
2. excelExport.export();

What is the expected output? What do you see instead?

NOW:
public ExcelExport(final Table table, final Workbook wkbk, final String 
sheetName, final String reportTitle, final String exportFileName, final boolean 
hasTotalsRow)
... 
        sheet = workbook.createSheet(sheetName);
...
MUST BE:
public ExcelExport(final Table table, final Workbook wkbk, final String 
sheetName, final String reportTitle, final String exportFileName, final boolean 
hasTotalsRow)
... 
        sheet = workbook.createSheet(this.sheetName);
...

What version of the product are you using? On what operating system?

1.2.9

Please provide any additional information below.

Original issue reported on code.google.com by the.one....@gmail.com on 6 Feb 2012 at 5:17

GoogleCodeExporter commented 8 years ago
SEVERE: Terminal error:
com.vaadin.event.ListenerMethod$MethodException
Cause: java.lang.IllegalArgumentException: sheetName must not be null
    at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:532)
    at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:164)
    at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1219)
    at com.vaadin.ui.Button.fireClick(Button.java:550)
    at com.vaadin.ui.Button.changeVariables(Button.java:217)
    at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.changeVariables(AbstractCommunicationManager.java:1451)
    at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst(AbstractCommunicationManager.java:1399)
    at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1318)
    at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:763)
    at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:296)
    at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:501)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:279)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: sheetName must not be null
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.createSheet(HSSFWorkbook.java:790)
    at org.apache.poi.hssf.usermodel.HSSFWorkbook.createSheet(HSSFWorkbook.java:78)
    at com.vaadin.addon.tableexport.ExcelExport.<init>(ExcelExport.java:200)
    at com.vaadin.addon.tableexport.ExcelExport.<init>(ExcelExport.java:177)
    at com.vaadin.addon.tableexport.ExcelExport.<init>(ExcelExport.java:156)
    at com.vaadin.addon.tableexport.ExcelExport.<init>(ExcelExport.java:139)
    at com.vaadin.addon.tableexport.ExcelExport.<init>(ExcelExport.java:125)
    at base.view.BaseTableView$1$1.<init>(BaseTableView.java:128)
    at base.view.BaseTableView$1.buttonClick(BaseTableView.java:128)
    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 com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:512)
    ... 27 more

Original comment by the.one....@gmail.com on 6 Feb 2012 at 5:18

GoogleCodeExporter commented 8 years ago
yes. stupid error. was noticed also by someone else on the Vaadin discussion 
area.

Original comment by jnas...@gmail.com on 17 Mar 2012 at 11:58

GoogleCodeExporter commented 8 years ago
fixed

Original comment by jnas...@gmail.com on 18 Mar 2012 at 12:04