Error while connecting solace event broker

  • 18 October 2023
  • 1 reply


I am trying to connect to Solace event broker using JMS Producer and  configured all JMS parameters (user name and password ) but still pipeline throwing below error:

RETRY: JMS_00 - Could not create initial context 'com.solacesystems.jndi.SolJNDIInitialContextFactory' with provider URL 'tcps://' : javax.naming.NamingException: Username must be specified


I have already uploaded all solace lib files in external resources section of engine.

Please suggest.

1 reply

Userlevel 2

The error message "Username must be specified" indicates that your JMS client is not providing a valid username when connecting to the Solace event broker. To resolve this issue:

Double-check that you've configured the username and password correctly in your JMS client code before creating the connection.

Ensure that you are using the correct username and password provided by your Solace administrator.

Verify that your JMS client code is free of typos or errors in setting the username and password.

Confirm that you are using the correct JNDI initial context factory class for Solace, such as 'com.solacesystems.jndi.SolJNDIInitialContextFactory.'

Make sure the Solace libraries you've uploaded are compatible with your Solace broker version.

Check that your JMS client is using the correct connection URL for the Solace broker.

If the issue persists, consult the Solace documentation or contact their support for further assistance.