Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASS won't start with Java 11.0.9.1 version #376

Closed
menczingerm opened this issue Nov 16, 2020 · 3 comments
Closed

ASS won't start with Java 11.0.9.1 version #376

menczingerm opened this issue Nov 16, 2020 · 3 comments

Comments

@menczingerm
Copy link

menczingerm commented Nov 16, 2020

After I upgraded my ubuntu 18.04 lts server (included java upgrade also) Jetty did not started with the new openJDK java

Java version

java -version
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-Ubuntu-0ubuntu1.18.04)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-Ubuntu-0ubuntu1.18.04, mixed mode, sharing)`

solr-8983-console.log

OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Invalid Java version 11.0.9.1

Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help  # for more information

Current Jetty libs

ls -al /opt/alfresco/alfresco-search-services/solr/server/lib
total 2212
drwxrwxr-x 3 solr solr   4096 Aug 17 16:30 .
drwxr-xr-x 9 solr solr   4096 Aug 17 16:30 ..
drwxrwxr-x 2 solr solr   4096 Aug 17 16:30 ext
-rw-r--r-- 1 solr solr  43067 May  9  2014 gmetric4j-1.0.7.jar
-rw-r--r-- 1 solr solr  95806 Apr 26  2013 javax.servlet-api-3.1.0.jar
-rw-r--r-- 1 solr solr  15968 Apr 18  2019 jetty-continuation-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr  51260 Apr 18  2019 jetty-deploy-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr 150666 Apr 18  2019 jetty-http-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr 122464 Apr 18  2019 jetty-io-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr  22185 Apr 18  2019 jetty-jmx-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr  34392 Apr 18  2019 jetty-rewrite-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr  95072 Apr 18  2019 jetty-security-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr 527987 Apr 18  2019 jetty-server-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr 118957 Apr 18  2019 jetty-servlet-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr  86557 Apr 18  2019 jetty-servlets-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr 462141 Apr 18  2019 jetty-util-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr 114996 Apr 18  2019 jetty-webapp-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr  51738 Apr 18  2019 jetty-xml-9.3.27.v20190418.jar
-rw-r--r-- 1 solr solr 129402 Mar 20  2017 metrics-core-3.2.2.jar
-rw-r--r-- 1 solr solr   9916 Mar 20  2017 metrics-ganglia-3.2.2.jar
-rw-r--r-- 1 solr solr  22056 Mar 20  2017 metrics-graphite-3.2.2.jar
-rw-r--r-- 1 solr solr  20053 Mar 20  2017 metrics-jetty9-3.2.2.jar
-rw-r--r-- 1 solr solr  40188 Mar 20  2017 metrics-jvm-3.2.2.jar`

jetty/jetty.project#2090

gregw commented on 4 Jan 2018
@IvoLimmen it is definitely a new bug. We now need to be a lot more java version sensitive because of java 9 features... but we did not anticipate 4 part version numbers. Fix is coming.

gregw commented on 4 Jan 2018
I've pushed a fix to jetty-9.4.x branch. The JavaVersion now handles both old format and full JEP223 versions. I have also shaded the class into the jetty-start module rather than duplicate the code.

I also tried upgrade AAS 1.4.1 to 1.4.3 but it does have the same error

@aborroy
Copy link
Contributor

aborroy commented Nov 16, 2020

We are using the latest Jetty 9.3 version:
Alfresco/lucene-solr@5a4bd87

This is the one supported by SOLR 6, so we cannot upgrade to Jetty 9.4 (the one that includes the fix you pasted jetty/jetty.project@26a4909).

I guess you'll not be able to use 11.0.9 version with SOLR 6 (Jetty 9.3), so you can use 11.0.8 or wait till the release of 11.0.10.

@menczingerm
Copy link
Author

Thanks for the quick response!

@azul-jf
Copy link

azul-jf commented Jun 8, 2021

@IvoLimmen it is definitely a new bug. We now need to be a lot more java version sensitive because of java 9 features... but we did not anticipate 4 part version numbers. Fix is coming.

The full extent of the OpenJDK version number change is described at https://bugs.openjdk.java.net/browse/JDK-8061493, and that says (in part) says "The sequence may be of arbitrary length", and "The fourth and later elements...".

It's not just four.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants