Accessing Confluence License Details page error out with "Unable to render Velocity Template, '/admin/viewlicense.vm'"
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
Confluence throws "Unable to render Velocity Template, '/admin/viewlicense.vm'" error when accessing the License Details page
環境
This problem was identified in Confluence server and datacenter version 7.4.3. It could also affect later versions of Confluence.
診断
The following appears in atlassian-confluence.log:
2020-12-30 15:43:23,290 WARN [read-only-transaction:thread-1] [confluence.impl.vcache.SynchronousExternalCache] lambda$get$11 Failed to read entry from cache 'com.atlassian.confluence.util.UserChecker': Failed due to UNCLASSIFIED_FAILURE
...
2020-12-30 15:43:23,298 ERROR [http-nio-8080-exec-144] [opensymphony.webwork.dispatcher.VelocityResult] doExecute Unable to render Velocity Template, '/admin/viewlicense.vm'
-- referer: https://localhost/admin/viewgeneralconfig.action | url: /admin/license.action | traceId: 36f2e93850998ebd | userName: admin | action: license
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getNumberOfRegisteredUsers' in class com.atlassian.confluence.util.DefaultUserChecker threw exception java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.util.concurrent.CompletionException: java.lang.reflect.UndeclaredThrowableException at /admin/viewlicense.vm[line 58, column 78]
...
Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.util.concurrent.CompletionException: java.lang.reflect.UndeclaredThrowableException
at com.atlassian.confluence.util.ReadOnlyLicenseCalculator.handleExecutionFailure(ReadOnlyLicenseCalculator.java:83)
...
Caused by: javax.persistence.EntityNotFoundException: No row with the given identifier exists: [com.atlassian.confluence.security.SpacePermission#425988]
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:111)
原因
There is a cache issue with the UserChecker utility.
ソリューション
Clear the plugins cache by following How to clear Confluence plugins cache