Just attempted upgrade to 12.5.1 - got the following error

ubuntu 18.04.4
tomcat9 9.0.16-3ubuntu0.18.04.1
xwiki-tomcat9-mysql 12.5.1+2

Could it be my version of java?

root@wikiv2:/etc/xwiki# java -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)

No, that doesn’t appear to be it. I have the same problem with using v8 of the OpenJDK.