REST API Browser failed to install
Asked by mark_stevenson:

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)
```


Answers:
author: Winderson Souza
body: Hi [@mark_stevenson](/t5/user/viewprofilepage/user-id/4753147) , 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?

comments: author: mark_stevenson
body: 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.

![Image preview](https://attachments.office365-net.us/owa/Mark.Stevenson%40caemilusa.com/service.svc/s/GetAttachmentThumbnail?id=AAMkADFjYjU5NTcxLTljY2EtNGEzYi05OWVkLThlMjY4ODM2NjczMwBGAAAAAAA2qd5J%2F8SkRpW2GnFzOVB%2FBwDSiQYKiCLNTJLlY8ciW1rgAAAAAAEMAADSiQYKiCLNTJLlY8ciW1rgAACWIkr6AAABEgAQAKn64O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ZDQxODk1In0.LLrsUiOnatEpzi9AjehmOP1WZwA78DZfnjMDjigkmJ3dkE71NyLYZRl7S7gZCcfzc0i7v-XenCQlnyiaRVfQBPOB0_Q3igd24AmchwiMzJZjZOtIlKTxc-01jbb2Nsc2DzSp5Uepupg50CYj-WFWsi1293pGxlcouGrQADopHQljIwnsVUp2s3gwsElYJ6m1sBd1_FTVhjW1Br0YglpIUjytdvUT0pR0AO0c9supRE9z9b_5P_xPzOFxwO8IcUoewY7YJKhANqe5HpcTwXJjFSP_WFhf9-8JYm6EuWi2qJy9EIsrdcHaI7sXSBzU-qOTbiEVPoCMXaEN3VuN1zJoHw&X-OWA-CANARY=lkauBT8L7EyRDhkFVY8carCspYZP9tkYnW-SPiLKuevZfFWwwbfJmBje9Rcv1wv4uEewtuUfpF0.&owa=outlook.office365.us&scriptVer=20220117005.10&animation=true)


author: Winderson Souza
body: 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?

<br />

<https://marketplace.atlassian.com/download/apps/1211542/version/20>


author: mark_stevenson
body: Yes, this version can be enabled.

Solved.

Thanks


author: Srinatha T
body: wow. Awesome [@mark_stevenson](/t5/user/viewprofilepage/user-id/4753147) . Glad to hear that, so you reverted the java version to previous one and it worked ?


author: mark_stevenson
body: No, installed the earlier version of the API Browser (rest-api-browser-3.0.3.jar) from your link above.


author: Srinatha T
body: Hi [@mark_stevenson](/t5/user/viewprofilepage/user-id/4753147) ,

Welcome to Atlassian community.

I just checked the [developer page](https://developer.atlassian.com/server/confluence/confluence-server-rest-api/) 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

comments: author: mark_stevenson
body: [@Srinatha T](/t5/user/viewprofilepage/user-id/4686256)

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](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?


Tags: browser

confluence-server

rest-api

server