Hi KrishnaVamsi, Regarding the error, you are trying to build java code compiled with jdk11 compiler with a jdk8 compiler, see https://javaalmanac.io/bytecode/versions/ . Jdk8 is pretty old at this point, your first thought might be to try building with a newer jdk version. I think you should even consider jdk17 as jdk11-compiled class files can be compiled/used by a jvm running 17. There are some caveats there but looks like solr9 has tests running against jdk17 https://github.com/apache/solr/blob/4c439d07ca35e7e80c5406c103e885307f0b64b9/solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-9.adoc#L314:~:text=Solr%209%20requires%20Java%2011%20as%20minimum%20Java%20version%20and%20is%20also%20tested%20with%20Java%2017.
There will be some upgrade pain most likely but IME going from 8->11 is really not that much easier than 8->17. Luke From: dev@solr.apache.org At: 05/16/24 11:25:09 UTC-4:00To: dev@solr.apache.org Subject: RE: Cant access SolrRequestParsers Hi Gus Heck, To give you background, As we came to know that we have vulnerabilities in org.apache.solr.solr-core dependency(8.11.2 which we are using currently), We had to upgrade it to 9.6.0. When we upgraded the dependency version and tried to build our source code, We are getting the below error from one of our source code classes as SolrRequestParsers class is not accessisible. FYI, We have both solr-core and solrj dependency in our pom. Error: java: cannot access org.apache.solr.servlet.SolrRequestParsers bad class file: /C:/Users/10688521/.m2/repository/org/apache/solr/solr-core/9.6.0/solr-core-9.6. 0.jar!/org/apache/solr/servlet/SolrRequestParsers.class class file has wrong version 55.0, should be 52.0 -----Original Message----- From: Gus Heck <gus.h...@gmail.com> Sent: Thursday, May 16, 2024 8:40 PM To: dev@solr.apache.org Subject: Re: Cant access SolrRequestParsers <External Email> Hi KrishnaVamsi, Can you tell us a little bit more about how you are using it? You say you are upgrading a client, but (as indicated by the package name) org.apache.solr.servlet.SolrRequestParsers is a server side class, so it's not quite clear why you are getting this from a client. Is this a problem in custom code that you wrote? Also the Solr Java client (SolrJ) is in the https://urldefense.com/v3/__https://search.maven.org/artifact/org.apache.solr/so lr-solrj/9.6.0/jar__;!!CxwJSw!NpX0h0Lr-jKIBah4-Mrq2erlbksHoadqlJVBRg8AOtjZd9JoTf wxRRw06ZcR0PhXPbEWdPjrJGY3Lq8-_B8tf-j3BBjJtQ$ package, not solr-core so you may also be importing the wrong package? -Gus On Thu, May 16, 2024 at 9:30 AM Mugi, Krishnavamsireddy < krishnavamsireddy.m...@paramount.com> wrote: > Hi Team, > > We are upgrading our solr-client(org.apache.solr.solr-core) from > 8.11.2 to 9.6.0, After upgrading the client, we are getting below > error. Kindly help us on this error. > > Error: cannot access org.apache.solr.servlet.SolrRequestParsers > > Is there any alternative way to access SolrRequestParsers class in > 9.6.0 solr client version. Please let us know. > > Thanks&Regards > KrishnaVamsi > -- https://urldefense.com/v3/__http://www.needhamsoftware.com__;!!CxwJSw!NpX0h0Lr-j KIBah4-Mrq2erlbksHoadqlJVBRg8AOtjZd9JoTfwxRRw06ZcR0PhXPbEWdPjrJGY3Lq8-_B8tf-jEaz kPPQ$ (work) https://urldefense.com/v3/__https://a.co/d/b2sZLD9__;!!CxwJSw!NpX0h0Lr-jKIBah4-M rq2erlbksHoadqlJVBRg8AOtjZd9JoTfwxRRw06ZcR0PhXPbEWdPjrJGY3Lq8-_B8tf-gpIlMJng$ (my fantasy fiction book) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@solr.apache.org For additional commands, e-mail: dev-h...@solr.apache.org