Free Support Forum -

Error when trying to view a file located a specified URL


I am trying out the GroupDocs.Viewer for Java 2.2.0 and I have downloaded the sample project. I am working through the ‘spring’ sample project. I ran the project in a Tomcat 7 instance and navigated to and was able to see the viewer widget. I tried passing the URL of a pptx file to the ‘HomeController’ class so that the document located at the URL would show up in the viewer however instead I get an error that says “Format [DIRECTORY_TYPE] is not supported yet!” and the document was not loaded in the viewer.

What does this error mean? Is there a way I can give the URL of a file and have that file show up in the viewer?


PS: I tried viewing the public document located at

Hello, Peter!

Thank you for the interest in GroupDocs.Viewer for Java. The error "Format [DIRECTORY_TYPE] is not supported yet!" in most cases mean that you incorrectly specified path to the file (file name) or the base path to the files folder (in the configuration). But in your case situation is a bit different.
Unfortunately, we reproduced this bug. The problem is that current version does not support https links, it will be fixed in the new version.
By the way, link works as intended. If it is not critical for you, you can use simple (http) links before new version release.


Ok thanks for looking into it, Ihor.



Ok, I’m having another issue. I’m getting this error when trying to view the document at in the viewer:

Jun 27, 2014 11:01:49 AM com.groupdocs.viewer.d.a b
Call generateHtml() or getHtmlContent(int page) method first.
SEVERE: null /Users/pznameroski/groupdocs/temp/R1JfVGVhbTNGaXNoLTEucHB0eA==/0/GR_Team3Fish-1_files/style.css (No such file or directory)
at Method)
at com.groupdocs.viewer.d.a.a(
at com.groupdocs.viewer.d.a.b(
at com.groupdocs.viewer.handlers.ViewerHandler.viewDocument(
at com.groupdocs.viewer.handlers.ViewerHandler.viewDocumentHandler(
at com.groupdocs.HomeController.viewDocumentHandler(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(
at org.springframework.web.servlet.DispatcherServlet.doDispatch(
at org.springframework.web.servlet.DispatcherServlet.doService(
at org.springframework.web.servlet.FrameworkServlet.processRequest(
at org.springframework.web.servlet.FrameworkServlet.doPost(
at javax.servlet.http.HttpServlet.service(
at org.springframework.web.servlet.FrameworkServlet.service(
at javax.servlet.http.HttpServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at com.groupdocs.filter.CorsFilter.doFilterInternal(
at org.springframework.web.filter.OncePerRequestFilter.doFilter(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.valves.AccessLogValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.AbstractHttp11Processor.process(
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
at java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.util.concurrent.ThreadPoolExecutor$

I can see the document but some images are missing and black boxes replace them. I see in my ‘temp’ folder that there is no “0/” directory. Any idea what might be going on?


Hello, Peter!

Don't worry about 0 page error, it does not affect the functionality, we work to remove it entirely.
What about black boxes. Thank you, we reproduced this bug and work on it. We will inform you asap when there will be some progress.
Meanwhile, as a temporary solution you can use image-based rendering mode (set groupdocs.viewer.useHtmlBasedEngine parameter to false).

I've got new information from our developers. This issue does not have to influence all type of documents, you can try to open other types - they, probably, will be rendered correctly.