Java version:
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)
Using latest Web-CAT.war available at https://sourceforge.net/projects/web-cat/files/latest/download
Steps to reproduce:
- Install Tomcat 8, with Web-CAT.war in /var/lib/tomcat8/webapps in Ubuntu 18.04.
- Navigate to http://:8080/Web-CAT. Attached is a file showing the stacktrace displayed for that page.
Comments:
I did some digging and think I know what happened. In org.webcat.core.Application::version(), the code looks for a system property ending in "version.date", assuming it will hit on "webcat.version.date". Openjdk now includes a "java.version.date" property which, for the 10.0.1 JDK, is "2018-07-17"; this is also the string causing the IllegalStateException at the top of the stack trace. In other words, it appears the code in the version() method is hitting on "java.version.date" before "webcat.version.date". I don't have a good setup for compiling web-cat at the moment or I'd test this theory.
stacktrace.txt
Java version:
openjdk version "10.0.2" 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)
Using latest Web-CAT.war available at https://sourceforge.net/projects/web-cat/files/latest/download
Steps to reproduce:
Comments:
I did some digging and think I know what happened. In org.webcat.core.Application::version(), the code looks for a system property ending in "version.date", assuming it will hit on "webcat.version.date". Openjdk now includes a "java.version.date" property which, for the 10.0.1 JDK, is "2018-07-17"; this is also the string causing the IllegalStateException at the top of the stack trace. In other words, it appears the code in the version() method is hitting on "java.version.date" before "webcat.version.date". I don't have a good setup for compiling web-cat at the moment or I'd test this theory.
stacktrace.txt