Confluence fails to start due to "ProxyServlet has been compiled by a more recent version of the Java Runtime"

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.

Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

In an upgraded or fresh installation of Confluence, the Confluence process fails to start due to "ProxyServlet has been compiled by a more recent version of the Java Runtime"

Environment

Confluence 8.X

Diagnosis

Checking in the Confluence logs (atlassian-confluence.log) files, the following SEVERE error message will appear: 

28-Mar-2024 02:22:36.757 SEVERE [Catalina-utility-2] org.apache.catalina.core.StandardContext.loadOnStartup Servlet [dispatcher] in web application [/synchrony-proxy] threw load() exception java.lang.UnsupportedClassVersionError: org/eclipse/jetty/proxy/ProxyServlet had been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class files version up to 52.0 (unable to lad class [org.eclipse.jetty.proxy.ProxyServlet]) (unable to load class [com.atlassian.synchrony.proxy.web.SynchronyProxyServlet])
...
...

Cause

The root cause is due to the Java's version incompatibility error below. This is a common error when you are trying to run a code in JDK8 (class 52), when the code was compiled with JDK11 (class 55). 

Solution

Confluence 8.X does not support JDK8 as part of their Supported Platforms. You should upgrade as well your JDK version to JDK 11 or JDK 17 to avoid this issue and allow Confluence to start succesfully. 


Last modified on May 23, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.