License issues? ( At most 4 elements (for any collection) can be viewed in evaluation mode)

hi, I have temporary license from Friday. When using this license in docker image or in spring app it seems to not fully works.

Here is example:

  1. I have started a docker container:

docker run -p 8080:8080 --name 22.12-java-openjdk18-bullseye-spring -v “C:\Users\xxx\groupDocs-demo\license/:/home/groupdocs/app/Licenses” --rm groupdocs/viewer:22.12-java-openjdk18-bullseye-spring

  1. When reviewing logs from docker container I can see entry:

12:44:24.822 [main] INFO com.groupdocs.ui.viewer.spring.service.ViewerServiceImpl - License was set!

  1. When adding a file via webbrowser (http://localhost:8080/viewer), I am getting error:
    “Something went wrong
    Can’t handle the request. Server is too busy.”

  2. When reviewing logs on docker containers I can see:

12:51:44.425 [qtp684230144-27] WARN com.groupdocs.ui.viewer.spring.cache.FileViewerCache - Value with cacheFilePath ‘/home/groupdocs/app/DocumentSamples/cache/tracemonkey_pdf/view_info.dat’ was not saved into cache because write lock was not acquired during 30000ms
12:51:44.425 [qtp684230144-27] ERROR com.groupdocs.ui.viewer.spring.impls.CustomViewer - Can’t get ViewInfo. The problem can be with deserealization (DESERIALIZATION_CLASSES)
12:51:44.425 [qtp684230144-27] ERROR com.groupdocs.ui.viewer.spring.service.ViewerServiceImpl - Something went wrong
com.groupdocs.ui.viewer.spring.common.exception.TotalGroupDocsException: Can’t handle the request. Server is too busy.
at com.groupdocs.ui.viewer.spring.impls.CustomViewer.createCache(CustomViewer.java:139)
at com.groupdocs.ui.viewer.spring.service.ViewerServiceImpl.getLoadDocumentEntity(ViewerServiceImpl.java:372)
at com.groupdocs.ui.viewer.spring.service.ViewerServiceImpl.loadDocument(ViewerServiceImpl.java:195)
at com.groupdocs.ui.viewer.spring.resources.ViewerResources.loadDocumentDescription(ViewerResources.java:98)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:577)

I can also see this:

12:51:44.425 [qtp684230144-27] WARN com.groupdocs.ui.viewer.spring.cache.FileViewerCache - Exception throws while writing object to cache by cacheFilePath ‘/home/groupdocs/app/DocumentSamples/cache/tracemonkey_pdf/view_info.dat’
com.groupdocs.viewer.internal.c.a.pd.c.i: At most 4 elements (for any collection) can be viewed in evaluation mode.
at com.groupdocs.viewer.internal.c.a.pd.a.b(Unknown Source)
at com.groupdocs.viewer.internal.c.a.pd.dr.aiQ(Unknown Source)
at com.groupdocs.viewer.internal.c.a.pd.dr.aiT(Unknown Source)
at com.groupdocs.viewer.c.a.u.getPages(Unknown Source)
at com.groupdocs.viewer.c.a.u.cK(Unknown Source)
at com.groupdocs.viewer.Viewer.a(Unknown Source)
at com.groupdocs.viewer.Viewer.getViewInfo(Unknown Source)

Here is another evidence showing docker has loaded the license file:
image.png (66.1 KB)

What is also interesting is that when I am using the same license file for local java app it seems to be working fine (it no longer has 2 pages limit).

Hello @anonymousP ,

Unfortunately, the Docker image you are trying to run contains GroupDocs.Viewer for Java 22.12, which is an outdated version. The temporary license you recently obtained will not work correctly with this image due to differences in the licensing mechanism between versions.

We recommend using our Spring example from GitHub, which includes the latest version of GroupDocs.Viewer for Java 25.12. You can also run it using Docker by following the instructions provided in the README file.

If you have any further questions, please feel free to contact us.

hi Evgen,
thanks for quick reply. I did copy code from your github and I have added a license file into folder “Licences”. I am running this as a java app on my machine and unfortunately I am also getting that error for some documents. I doubled checked the pom file and version is 25.12 as you have pointed out. The error is thrown by loadDocumentDescription method in ViewerResources.java:

“com.groupdocs.ui.viewer.spring.common.exception.EvaluationModeException: Document with guid ‘C:\Users\xxx\yyy\groupDocs-demo\spring2\Spring-demo\DocumentSamples\tracemonkey.pdf’ can’t be viewed in evaluation mode as there is a collection with more than 4 elements inside the document.”

Worth mentioning that for very simple pdf (e.g. hello world), it works fine without any watermarks, so license file seems to be applied (?).

I also tried running this project as docker container, as advised. I needed to change docker command because I am using Windows:

docker run -p 8080:8080 --env application.hostAddress=localhost -v ${PWD}/DocumentSamples:/home/groupdocs/app/DocumentSamples -v ${PWD}/Licenses:/home/groupdocs/app/Licenses groupdocs/viewer

License seems to be copied into container (as before):

2026-03-02 16:14:10,129 INFO [main] com.groupdocs.ui.viewer.spring.service.ViewerServiceImpl: License was set!
image.png (71.2 KB)

, but error is also the same:

2026-03-02 16:14:43,622 WARN [qtp1747702724-41] org.eclipse.jetty.server.HttpChannel: /viewer/loadDocumentDescription
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is com.groupdocs.ui.viewer.spring.common.exception.EvaluationModeException: Document with guid ‘/home/groupdocs/app/DocumentSamples/tracemonkey.pdf’ can’t be viewed in evaluation mode as there is a collection with more than 4 elements inside the document.
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:517)

The problem is that when using that command like in readme file, docker is using version from docker hub, and not the one from local code. In order to use the new jar file we would need to build docker image first (using docker build) , but this is not mentioned in readme.

Would that be possible to create a new version of docker image for viewer at least and push it to docker hub please so I could easily use it? We are evaluating if your product is worth buying.

@anonymousP ,

We will try to prepare and upload the image to Docker Hub; however, this may take some time.

In the meantime, could you please share the full console output from your Docker container starting from the application launch? Additionally, please let us know whether you have tried running the Spring sample locally, and if so, whether you encountered the same licensing issue in that case.

This information will help us better understand and investigate the problem.