Installation of REST API Browser v3.2.3 on Confluence Server 5.1 failed with this error in the logs. I am wondering if the "Unsupported major.minor version 52.0" indicates an issue with the Java version or something else. If so, is there a page showing browser/java/server version compatibility?
Thanks
2022-02-22 11:08:14,248 ERROR [http-8080-1] [atlassian.plugin.manager.DefaultPluginManager] enableConfiguredPluginModule There was an error loading the descriptor 'null' of plugin 'com.atlassian.labs.rest-api-browser'. Disabling.
-- url: /rest/plugins/1.0/com.atlassian.labs.rest-api-browser-key | userName: td24037 | referer: http://visconfluence:8080/plugins/servlet/upm
java.lang.UnsupportedClassVersionError: com/atlassian/labs/restbrowser/provider/ConfluenceSoapServiceProvider : Unsupported major.minor version 52.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:637)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1829)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at org.apache.felix.framework.ModuleImpl.getClassByDelegation(ModuleImpl.java:634)
at org.apache.felix.framework.Felix.loadBundleClass(Felix.java:1594)
at org.apache.felix.framework.BundleImpl.loadClass(BundleImpl.java:887)
at com.atlassian.plugin.osgi.util.BundleClassLoaderAccessor.loadClass(BundleClassLoaderAccessor.java:46)
at com.atlassian.plugin.osgi.factory.OsgiPluginInstalledHelper.loadClass(OsgiPluginInstalledHelper.java:63)
at com.atlassian.plugin.osgi.factory.OsgiPlugin.loadClass(OsgiPlugin.java:165)
at com.atlassian.plugin.osgi.factory.descriptor.ComponentModuleDescriptor.loadClass(ComponentModuleDescriptor.java:29)
at com.atlassian.plugin.descriptors.AbstractModuleDescriptor.enabled(AbstractModuleDescriptor.java:443)
at com.atlassian.plugin.manager.DefaultPluginManager.notifyModuleEnabled(DefaultPluginManager.java:1467)
at com.atlassian.confluence.plugin.ConfluencePluginManager.notifyModuleEnabled(ConfluencePluginManager.java:132)
at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModule(DefaultPluginManager.java:1270)
at com.atlassian.plugin.manager.DefaultPluginManager.enableConfiguredPluginModules(DefaultPluginManager.java:1236)
at com.atlassian.plugin.manager.DefaultPluginManager.notifyPluginEnabled(DefaultPluginManager.java:1214)
at com.atlassian.confluence.plugin.ConfluencePluginManager.notifyPluginEnabled(ConfluencePluginManager.java:111)
at com.atlassian.plugin.manager.DefaultPluginManager.enablePlugins(DefaultPluginManager.java:1186)
at com.atlassian.confluence.plugin.EventDispatchingPluginController.enablePlugins(EventDispatchingPluginController.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Hi @mark_stevenson , it does seem to have a compatibility issue, if you go to the Addons Page on your Confluence, click on Find new add-ons, and search Rest API Browser from there, does it work?
The server is air-gapped. Addon install package was manually downloaded and placed in the Addons folder , then from Confluence clicked the Upload Add-On button and selected it. Install was successful, just not Enable.
Again, the instruction page (link below) claims it is supported on 5.1.
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I agree with you, I believe this is more related to java than Confluence. Can you try an earlier version to see if it works?
https://marketplace.atlassian.com/download/apps/1211542/version/20
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
wow. Awesome @mark_stevenson . Glad to hear that, so you reverted the java version to previous one and it worked ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No, installed the earlier version of the API Browser (rest-api-browser-3.0.3.jar) from your link above.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @mark_stevenson ,
Welcome to Atlassian community.
I just checked the developer page and looks like REST API is supported from Confluence 5.5 onwards. So i believe that is the reason you are getting that error.
Applicable | Confluence Server 5.5 and later Confluence Data Center 5.6 and later |
I hope the above information help. Have a nice day.
Thanks,
Srinath T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the response, not sure it all got posted.
Interesting. I guess I'm a little confused. Page https://docs.atlassian.com/atlassian-confluence/REST/5.1/ provides documentation for the supported endpoints for 5.1. In addition I can successfully use the REST APIs using curl, and https://marketplace.atlassian.com/apps/1211542/atlassian-rest-api-browser?tab=versions&hosting=server suggests that version 3.2.3 of the API Browser is supported with Confluence 5.1 -7.13.4.
Am I not interpreting this correctly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.