Highlighted
Regular Contributor.
Regular Contributor.
380 views

java.lang.UnsupportedClassVersionError exception - JMS - webservices protocal

I am trying to send messgaed to IBM MQ using JMS over Webservices protocol. I have added all the required jars to classpath and getting the below error while executing the script

Action.c(3): JMS call "Step1" started
Action.c(3): jms_print_general_property - JVM_Path = C:\JAVA\jdk1.7.0_75\jre\
Action.c(3): jms_print_general_property - JMS_impl_classpath = D:\jars\jars\wmq\JavaSE\bcpkix-jdk15on-157.jar;D:\jars\jars\wmq\JavaSE\bcprov-jdk15on-157.jar;D:\jars\jars\wmq\JavaSE\com.ibm.mq.allclient.jar;D:\jars\jars\wmq\JavaSE\com.ibm.mq.traceControl.jar;D:\jars\jars\wmq\JavaSE\fscontext.jar;D:\jars\jars\wmq\JavaSE\JSON4J.jar;D:\jars\jars\wmq\JavaSE\jms.jar;D:\jars\jars\wmq\JavaSE\providerutil.jar;D:\jars\jars\wmq\JavaEE\bcprov-jdk15on-157.jar;D:\jars\jars\wmq\JavaEE\com.ibm.mq.connector.jar;D:\jars\jars\wmq\JavaEE\com.ibm.mq.headers.jar;D:\jars\jars\wmq\JavaEE\com.ibm.mq.jar;D:\jars\jars\wmq\JavaEE\com.ibm.mq.jmqi.jar;D:\jars\jars\wmq\JavaEE\com.ibm.mqjms.jar;D:\jars\jars\wmq\JavaEE\com.ibm.mq.pcf.jar;D:\jars\jars\wmq\JavaEE\wmq.jmsra.ivt.ear;D:\jars\jars\wmq\OSGi\com.ibm.mq.osgi.allclientprereqs_9.0.0.2.jar;D:\jars\jars\wmq\OSGi\com.ibm.mq.osgi.allclient_9.0.0.2.jar;D:\jars\jars\wmq\OSGi\com.ibm.mq.osgi.allclientprereqs_9.0.0.2.jar
Action.c(3): jms_set_general_property called - JNDI_InitialContextFactory = com.sun.jndi.fscontext.RefFSContextFactory
Action.c(3): jms_set_general_property called - JNDI_provider_URL = file:/C:\JNDINew1
Action.c(3): jms_set_general_property called - ConnectionFactory = Connection factory
Action.c(3): jms_set_general_property called - connections_per_process = 1
Action.c(3): jms_set_general_property called - msg_timeout = 1
Action.c(3): jms_set_general_property called - user_define_timeout = 120
Action.c(3): jms_set_general_property called - SecurityPrincipal =
Action.c(3): jms_set_general_property called - SecurityCredentials =
Action.c(3): jms_set_general_property called - SetCorbaOrb =
Action.c(3): jms_set_general_property called - auto_generate_selector = 0
Action.c(3): jms_set_general_property called - EnableTibcoSslJndiLookup =
Action.c(3): java.naming.provider.url = file:/C:\JNDINew1
Action.c(3): java.naming.factory.initial = com.sun.jndi.fscontext.RefFSContextFactory
Action.c(3): Error:Failed to set property name JMS_MESSAGE_TYPE value Text Message due to the following exception : java.lang.UnsupportedClassVersionError: com/ibm/mq/jms/MQConnectionFactoryFactory : Unsupported major.minor version 51.0
java.lang.UnsupportedClassVersionError: com/ibm/mq/jms/MQConnectionFactoryFactory : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:300)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:46)
at javax.naming.spi.NamingManager.getObjectFactoryFromReference(NamingManager.java:129)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:302)
at com.sun.jndi.fscontext.RefFSContext.lookup(RefFSContext.java:146)
at com.sun.jndi.fscontext.FSContext.lookup(FSContext.java:127)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.mercury.ws.jms.ConnectionManagerImpl.initialize(ConnectionManagerImpl.java:99)
at com.mercury.ws.jms.JMSSupportImpl.initialize(JMSSupportImpl.java:28)
at com.mercury.ws.jms.JMSBridge.init_jms(JMSBridge.java:154)
Action.c(3): Error:JMS call execution failed
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.

 

I have tried with Java 1.7 & 1.8 version, still no luck. 

Please help

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.