JMS_00 - Could not create initial context 'com.ibm.msg.client.jms.JmsConnectionFactory' with provider URL

  • 27 January 2022
  • 0 replies
  • 13 views

Userlevel 3

Issue:

When using the JMS producer origin the pipeline fails with an error similar to:

JMS_00 - Could not create initial context 'com.ibm.msg.client.jms.JmsConnectionFactory' with provider URL 'tcp://<hostname>:1414' : javax.naming.NoInitialContextException: Cannot instantiate class: com.ibm.msg.client.jms.JmsConnectionFactory [Root exception is java.lang.ClassNotFoundException: com.ibm.msg.client.jms.JmsConnectionFactory]

or

JMS_00 - Could not create initial context 'com.sun.jndi.fscontext.RefFSContextFactory' with provider URL 'tcp://<hostname>:1414' : javax.naming.InvalidNameException: tcp://<hostname>:1414 [Root exception is java.net.MalformedURLException: unknown protocol: tcp]

Solution:

When using this origin a JNDI needs to be set up for the JMS endpoint to be able to connect to it from a client like StreamSets. If you don't have any JNDI environment configured here are some IBM links that could help:
https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.samples.thn.jmsheadernode.doc/doc/setting_jndi.htm - Information on setting up the JNDI environment
https://www-01.ibm.com/support/docview.wss?uid=swg21106933 - Information on what kind of JNDI URLs are possible

Additionally, on SDC side additional external drivers need to be added to the JMS stage library.


This topic has been closed for comments