500 Error: Invalid API version: 4_0
Closed this issue · 1 comments
fishfree commented
I followed this instruction and compiled the server/target/blacklab-server-4.0.0-SNAPSHOT.war file, put it under /var/lib/tomcat9/webapps/blacklab-server.war
When I access http://***/blacklab-server
It showed errors:
java.lang.IllegalArgumentException: Invalid API version: 4_0
nl.inl.blacklab.server.lib.results.ApiVersion.fromValue(ApiVersion.java:85)
nl.inl.blacklab.server.BlackLabServer.handleRequest(BlackLabServer.java:211)
nl.inl.blacklab.server.BlackLabServer.doGet(BlackLabServer.java:176)
javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.apache.logging.log4j.web.Log4jServletFilter.doFilter(Log4jServletFilter.java:71)
jan-niestadt commented
This was a bug in how API version is handled, now fixed on dev (16053fb). The bug triggered because there was some other problem during initialization (perhaps an invalid value in a configuration file, or something similar), which is why we missed this bug so far. Thanks for reporting!