Skip to content

Application::version() throws IllegalStateException under Openjdk 10 #8

@lewisb42

Description

@lewisb42

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:

  1. Install Tomcat 8, with Web-CAT.war in /var/lib/tomcat8/webapps in Ubuntu 18.04.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions