The document security token is not correctly formed. Please contact your document server administrator

Hello @onlyofficeUser1

7.2 is an outdated version of Document Server. Please update your instance and check the situation again.
If the issue is still reproducible after the update, please provide next information:

  • version of the Java Example (you can find version in src/main/resources/settings.properties);
  • type of installation of Java Example (Windows, Linux, Docker);
  • logs of Document Server after attempting to edit the file via Java Example.

Logs are located in /var/log/onlyoffice/documentserver/ for Linux (same path inside Docker container) or in C:\Program Files\ONLYOFFICE\DocumentServer\Log\ for Windows.