Upgrade hawk from 6.2.0 to 6.2.1, HawkConsole stops working

Upgrade hawk from 6.2.0 to 6.2.1, HawkConsole stops working

book

Article ID: KB0075069

calendar_today

Updated On:

Products Versions
TIBCO Hawk 6.2.1

Description

HawkConsole 6.2.0 was working fine. To upgrade hawk to 6.2.1, install v6.2.1 on top of Hawk 6.2.0 in the same tibco_home. HawkConsole stops working. If start HawkConsole from cmd, you will see exception below:
WRAPPER - start method threw an exception
Exception in thread "main" java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationListener : org.springframework.boot.cloud.CloudFoundryVcapEnvironmentPostProcessor
        at org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:437)
        at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:419)
        at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:412)
        at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:269)
        at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:249)
        at com.tibco.rest.HawkConsoleRESTAPIApp.main(HawkConsoleRESTAPIApp.java:16)
Caused by: java.lang.IllegalArgumentException: class org.springframework.boot.cloud.CloudFoundryVcapEnvironmentPostProcessor is not assignable to interface org.springframework.context.ApplicationListener
        at org.springframework.util.Assert.assignableCheckFailed(Assert.java:673)
        at org.springframework.util.Assert.isAssignable(Assert.java:604)
        at org.springframework.util.Assert.isAssignable(Assert.java:635)
        at org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:431)

Issue/Introduction

HawkConsole 6.2.0 was working fine, but it stops working after upgrade hawk to 6.2.1

Environment

All

Resolution

Cause: Despite Hawk 6.2.1 is a minor release, it is a full package which bundles the new version of spring jars. Meanwhile old jars are not compatible with HawkConsole v6.2.1.

To avoid this issue, here are two solutions:
Solution 1: 
Uninstall Hawk 6.2.0 first, then install Hawk 6.2.1

Solution 2:
Rename <tibco_home>/hawk/6.2 to <tibco_home>/hawk/6.2.0 or any other name, then install Hawk 6.2.1