I am creating a table for generating report and then printing the report in
excel sheet. It works fine on my localhost(windows) but when i deploy the
application on server(ISP's) i.e on glassfish and tries to print the report
it is throwing exception. The Log file is as such
[#|2012-12-19T14:31:17.188+0530|SEVERE|glassfishv3.0|com.vaadin.Application|_ThreadID=38;_ThreadName=Thread-1;|Terminal
error: com.vaadin.event.ListenerMethod$MethodException: Invocation of method
buttonClick in forms.ReportForm$ButtonResponse failed. 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:1455)
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:847) at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1523)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:641)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97) at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:332)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:233)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:165)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) at
com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69) at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:679) *Caused by: java.lang.Error:
Probable fatal error:No fonts found.* at
sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1087) at
sun.font.FontManager.initialiseDeferredFont(FontManager.java:966) at
sun.font.CompositeFont.doDeferredInitialisation(CompositeFont.java:254) at
sun.font.CompositeFont.getSlotFont(CompositeFont.java:334) at
sun.font.CompositeGlyphMapper.initMapper(CompositeGlyphMapper.java:81) at
sun.font.CompositeGlyphMapper.(CompositeGlyphMapper.java:62) at
sun.font.CompositeFont.getMapper(CompositeFont.java:390) at
sun.font.CompositeFont.canDisplay(CompositeFont.java:416) at
java.awt.Font.canDisplayUpTo(Font.java:2009) at
java.awt.font.TextLayout.singleFont(TextLayout.java:469) at
java.awt.font.TextLayout.(TextLayout.java:527) at
org.apache.poi.ss.util.SheetUtil.getColumnWidth(SheetUtil.java:206) at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1854)
at
org.apache.poi.hssf.usermodel.HSSFSheet.autoSizeColumn(HSSFSheet.java:1837)
at
com.vaadin.addon.tableexport.ExcelExport.finalSheetFormat(ExcelExport.java:747)
at
com.vaadin.addon.tableexport.ExcelExport.convertTable(ExcelExport.java:272)
at com.vaadin.addon.tableexport.TableExport.export(TableExport.java:80) at
forms.ReportForm$ButtonResponse.buttonClick(ReportForm.java:519) at
sun.reflect.GeneratedMethodAccessor1425.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616) at
com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:512) ... 35
more |#]
--
[Message sent by forum member 'SwarnimPrabhat']
View Post: http://forums.java.net/node/893337