MGW agent fails to start with java.lang.UnsupportedClassVersionError using MQ Series 8 (Doc ID 2199999.1)

Last updated on AUGUST 14, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.2 [Release 12.1]
Information in this document applies to any platform.

Symptoms

 After configuring the Oracle Messaging Gateway in a 12.1.0.2 database to access MQ Series 8.0, the mgw agent fails to start with the following errors:

Waiting for notification.
>>2016-11-01 23:07:07 MGW Engine 0 LOG worker0
Agent is shut down.
java.lang.UnsupportedClassVersionError: com/ibm/mq/MQException : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at oracle.mgw.drivers.mq.MQLink.initHandlesFactories(MQLink.java:1316)
at oracle.mgw.drivers.BaseLink.resetHandles(BaseLink.java:2186)
at oracle.mgw.drivers.mq.MQLink.registerDestination(MQLink.java:383)
at oracle.mgw.engine.DestMgr.getForeignDest(DestMgr.java:54)
at oracle.mgw.engine.JobData.init(JobData.java:210)
at oracle.mgw.engine.Worker.recoverJob(Worker.java:1086)
at oracle.mgw.engine.Worker.myRun(Worker.java:98)
at oracle.mgw.engine.ManagedThr.run(ManagedThr.java:58)

>>2016-11-01 23:07:07 MGW Engine 3 TRACE worker0
proposed exit value: -101, existing exit value: -101
>>2016-11-01 23:07:07 MGW Engine 1 TRACE Event
at oracle.mgw.engine.Worker.recoverJob(Worker.java:1086)
at oracle.mgw.engine.Worker.myRun(Worker.java:98)
at oracle.mgw.engine.ManagedThr.run(ManagedThr.java:58)

Changes

 New installation

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms