Adapter failed to start with error "java.lang.UnsupportedClassVersionError: com/tibco/tibrv/TibrvException : Unsupported major.minor version 52.0"

Adapter failed to start with error "java.lang.UnsupportedClassVersionError: com/tibco/tibrv/TibrvException : Unsupported major.minor version 52.0"

book

Article ID: KB0079761

calendar_today

Updated On:

Products Versions
TIBCO ActiveMatrix BusinessWorks Plug-in for Siebel 6.1.0

Description

Description: 
=========
When Tibco product stack has been upgraded i.e mainly Tibco Runtime Agent and BusinessWorks from old version to new version without upgrading TIBCO ActiveMatrix Adapter for Siebel.Below error may encounter while starting the TIBCO ActiveMatrix Adapter for Siebel:
=========
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/tibco/tibrv/TibrvException : Unsupported major.minor version 52.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClassCond(Unknown Source)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
=========
Here 52 number is representing the Major version of Java which is corresponding to Java SE 8.

Cause:
=====
1. This error occurs because the project is compiled in higher java version and running in lower java version. 
2. After the migration the correct Java path has not updated in adsbl.tra 
 

Issue/Introduction

Adapter failed to start with error "java.lang.UnsupportedClassVersionError: com/tibco/tibrv/TibrvException : Unsupported major.minor version 52.0"

Environment

Product: TIBCO ActiveMatrix Adapter for Siebel Version: 6.1.0 OS: Supported Windows Operating System

Resolution

To resolve this follow the below steps:
1.Upgrade the Java path using below command:
traUpgradeManager -path TIBCO_HOME\adsbl\6.1 -traversion version -jre TIBCO_HOME\tibcojre\version -rv TIBCO_HOME\tibrv\version

2.Redeploy/restart Siebel adapter application after running the traUpgradeManager in order to reflect the changes in Application.tra.