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.

full console output from your Docker container:
docker-logs.docx (19.9 KB)

Hello @anonymousP ,

Thank you for providing the information.

We were able to reproduce the same issue you encountered when running the Docker image for the Spring sample. At the moment, our development team is investigating the problem. As soon as we receive any feedback or updates from them, we will get back to you immediately.

We apologize for the inconvenience caused.

Thanks a lot. I am looking forward for the fix.

I also did some more experiments and even when starting brand new docker container using the same command as before: 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

when I deleted a license from local folder (Licenses) before running a command , I can still see entry “License was set” in docker container logs (but license file is for sure not there !!:
image.png (37.7 KB)

I have also tried to build the docker image myself using Dockerfile provided in the git repository, but this no longer builds correctly due to legacy base image of jdk being used:

ERROR: failed to build: failed to solve: openjdk:8-jre-alpine: failed to resolve source metadata for Docker Hub Container Image Library | App Containerization Docker Hub Container Image Library | App Containerization not found

Please fix that one as well.

BR,

@anonymousP ,

Yes, you are absolutely right regarding the outdated Docker image version.

Our development team has already identified the root cause of the licensing issue and is currently working on updating the Spring sample on GitHub. As part of this update, they will also revise the instructions and the Dockerfile so that you will be able to build and run the Docker image locally.

We will notify you as soon as the sample has been updated and is ready for your testing.

@anonymousP ,

We have updated the base configuration for the Docker image of GroupDocs.Viewer for Java Spring sample.

You may try updating the project, building it locally, and running it again for testing. The licensing issue has been resolved, so please make sure that your temporary license file is placed in the Licenses folder and follow the deployment steps described in the README of the Spring sample for Docker setup.

Regarding the Docker Hub images update, we will notify you once the images are published.

We look forward to receiving your feedback about running the Docker image locally.

Thanks I will start testing that asap. Btw. I have realized that your readme file is still pointing to

which seems to be archived repo.
BR,

@anonymousP ,

I’m not entirely sure what you meant regarding the incorrect link in the README file.

The repository link you mentioned does indeed point to the archived Spring sample, and there is also a notice there indicating that the sample has been moved to another repository.

Could you please clarify where exactly you encountered this link? Is it referenced somewhere in the public documentation?

1 Like

@anonymousP ,

You are absolutely right — we have identified the incorrect link.

Thank you for bringing this to our attention. We will correct this oversight immediately.

hi, unfortunatelly I cannot build that docker image on my local machine:

36.90 [INFO] BUILD FAILURE
36.90 [INFO] ------------------------------------------------------------------------
36.91 [INFO] Total time: 35.367 s
36.91 [INFO] Finished at: 2026-03-03T16:28:59Z
36.91 [INFO] ------------------------------------------------------------------------
36.91 [ERROR] Failed to execute goal on project viewer-spring: Could not collect dependencies for project com.groupdocs.ui.viewer.spring:viewer-spring:jar:25.12
36.91 [ERROR] Failed to read artifact descriptor for com.groupdocs:groupdocs-viewer:jar:25.12
36.91 [ERROR] Caused by: The following artifacts could not be resolved: com.groupdocs:groupdocs-viewer:pom:25.12 (absent): Could not transfer artifact com.groupdocs:groupdocs-viewer:pom:25.12 from/to GroupDocs Artifact Repository (https://releases.groupdocs.com/java/repo/): (certificate_unknown) PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
36.91 [ERROR]

@anonymousP ,

Could you please try using the attached updated Dockerfile.zip (644 Bytes) on your side and rebuild the Docker image without cache using the following command:

docker build --no-cache -t groupdocs-viewer-spring .

This will ensure that the image is rebuilt from scratch and that no previously cached layers are being used.

Please let us know the results after testing.

Thanks for suggestions, unfortunately I am getting the same error:

38.86 [ERROR] Failed to execute goal on project viewer-spring: Could not resolve dependencies for project com.groupdocs.ui.viewer.spring:viewer-spring:jar:25.12: Failed to collect dependencies at com.groupdocs:groupdocs-viewer:jar:25.12: Failed to read artifact descriptor for com.groupdocs:groupdocs-viewer:jar:25.12: The following artifacts could not be resolved: com.groupdocs:groupdocs-viewer:pom:25.12 (absent): Could not transfer artifact com.groupdocs:groupdocs-viewer:pom:25.12 from/to GroupDocs Artifact Repository (https://releases.groupdocs.com/java/repo/): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target → [Help 1]

I guess the best way right now is to wait for the new image to be available on the docker hub. Please let me know when this could happen.

BR,

Hello @anonymousP ,

We are pleased to inform you that we have updated the Docker images for the Spring sample of GroupDocs.Viewer for Java version 25.12.

Please try pulling the required Docker image again.

Do not forget to specify the folder containing your temporary license when running the container. If the license is not provided or is invalid, you will see the following message in the console:

“No valid license found. Viewer is running in trial mode.”

We look forward to receiving your feedback.

Thanke Evgen,
this images finally works for me with my temporary license. Thanks for a quick reaction!

@anonymousP ,

You’re welcome. If you have any additional questions, please feel free to ask.