NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Highlighted
Absent Member.
Absent Member.
508 views

Error:Failed to set property name JMS_MESSAGE_TYPE value TextMessage due to the following exception

I am getting the below error while running the Web services script to send the xml request to JMS server  in Performance center.

the same script was running successfully while running in vugen and able to monitor the same messages in TIBCO EMS server also..Seems an issue with LG.

Appreaciate quick help here..

 

Error:Failed to set property name JMS_MESSAGE_TYPE value TextMessage due to the following exception : javax.naming.NoInitialContextException: Cannot instantiate class: com.tibco.tibjms.naming.TibjmsInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.tibco.tibjms.naming.TibjmsInitialContextFactory]

javax.naming.NoInitialContextException: Cannot instantiate class: com.tibco.tibjms.naming.TibjmsInitialContextFactory [Root exception is java.lang.ClassNotFoundException: com.tibco.tibjms.naming.TibjmsInitialContextFactory]

               at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:674)

               at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:307)

               at javax.naming.InitialContext.init(InitialContext.java:242)

               at javax.naming.InitialContext.<init>(InitialContext.java:216)

               at com.mercury.ws.jms.ConnectionManagerImpl.initialize(ConnectionManagerImpl.java:98)

               at com.mercury.ws.jms.JMSSupportImpl.initialize(JMSSupportImpl.java:28)

               at com.mercury.ws.jms.JMSBridge.init_jms(JMSBridge.java:154)

Caused by: java.lang.ClassNotFoundException: com.tibco.tibjms.naming.TibjmsInitialContextFactory

               at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

               at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

               at java.security.AccessController.doPrivileged(Native Method)

               at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

               at java.lang.ClassLoader.loadClass(ClassLoader.java:423)

               at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

               at java.lang.ClassLoader.loadClass(ClassLoader.java:356)

               at java.lang.Class.forName0(Native Method)

               at java.lang.Class.forName(Class.java:264)

               at com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:63)

               at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:671)

0 Likes
1 Reply
Visitor.

Hi Krish

This is an issue with your classpath setting, in the runtime settings under advanced jms, replace the %CLASSPATH% value with the path to the tibjms.jar eg: C:\TIBCO\tibjms.jar 

this worked for me however after that I receive another exception stating 

com.tibco.tibjms.TibjmsConnectionFactory'
javax.naming.NameNotFoundException: Name not found: 'com.tibco.tibjms.TibjmsConnectionFactory' 

and stranglely enough that class is in the same jar as the context factory.

I don't think that the jms function in the web servies protocol works to well.

 

 

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.