Free Support Forum - groupdocs.com

Java Viewer error on xlsx


#1

I am using the java library on Tomcat and I upload the attached file and tomcat gives me the following error. NOTE: This file works fine on your online demo site.

---------------------------------------------------------------------------

Aug 18, 2014 10:47:35 AM com.groupdocs.viewer.b.b.a a

SEVERE: null

com.aspose.cells.CellsException: File path can't be "".

at com.aspose.cells.bgt.a(Unknown Source)

at com.aspose.cells.Workbook.a(Unknown Source)

at com.aspose.cells.Workbook.save(Unknown Source)

at com.groupdocs.viewer.b.b.a.a(CellsToPdf.java:24)

at com.groupdocs.viewer.b.b.a(DocumentToPdfHandler.java:112)

at com.groupdocs.viewer.b.b.a(DocumentToPdfHandler.java:138)

at com.groupdocs.viewer.handlers.ViewerHandler.generatePdf(ViewerHandler.java:898)

at com.groupdocs.viewer.handlers.ViewerHandler.viewDocument(ViewerHandler.java:544)

at com.groupdocs.viewer.handlers.ViewerHandler.viewDocumentHandler(ViewerHandler.java:507)

at com.groupdocs.viewer.samples.javaweb.servlet.ViewDocumentHandlerServlet.doPost(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:646)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)

at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:169)

at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:232)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)

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:501)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:744)

---------------------------------------------------------------------------

Thanks,
John

#2

Hello John,

We are sorry to hear that you have such issue. From your request we can assume that you didn’t set a path for the file to view in the Viewer widget. To resolve the issue we need additional info from you. Could you please share with us example of your code which integrates GroupDocs.Viewer into the web page so we can check it.


If you will have more questions please feel free to contact us.




#3

I am using the document-viewer servlet provided by you all. It works with various other documents but I get that error when I try and upload the spreadsheet I attached.


#4

Hello,

Thank you for coming back. We tried to reproduce the issue with attached file but we can’t all works well for us - http://prntscr.com/4ec6e1 . If it’s possible you can share with us example of your project that we can check and fix it for you. If you can’t share with us example of your project please provide such info:

1 Which browser do you use

2 Which version of GroupDocs.Viewer for java do you use

3 Step by step guide for how to reproduce the issue.

If you will have more questions please feel free to contact us.