Unsupported major.minor version 52.0 error seen when installing Spring Cloud Services
search cancel

Unsupported major.minor version 52.0 error seen when installing Spring Cloud Services

book

Article ID: 297127

calendar_today

Updated On:

Products

Support Only for Spring

Issue/Introduction

When attempting to upgrade or install Spring Cloud Services, the installation fails with the following message:

{"type": "step_finished", "id": "errands.running.p-spring-cloud-services-a978fc8f45f9b12fd913.deploy-service-broker"}
Exited with 1.


Error Message:

Check further on the Spring Cloud Services logs by running the following command:

cf logs spring-cloud-broker --recent


It would contain the error log messages shown below:

2015-08-27T05:20:25.94-0400 [App/0] ERR Exception in thread "main" java.lang.UnsupportedClassVersionError: io/pivotal/springcloud/servicebroker/Application : Unsupported major.minor version 52.0


This error is shown if the prerequisite of the Java buildpack of at least 2.5 or higher is not detected.


Resolution

Follow the steps below to resolve this issue:
 

  1. Run cf buildpacks  
  2. Check if you have the buildpack 2.5 (or higher):
    cf buildpacks
    Getting buildpacks...
    
    buildpack                position   enabled   locked   filename   
    java_buildpack_offline   1          true      false    java-buildpack-offline-v3.0.zip 
    
  3. If you have multiple Java buildpacks, make sure Java buildpack 2.5 (or higher) has a higher position than the older Java buildpack and that is position 1.
  4. Run bosh run errand deploy-service-broker to deploy the Spring Cloud Service Broker.