Try PubSub+
If you haven't already, check out our new Developer Portal! You'll find useful information about Solace PubSub+ as well as handy resources to get you started.

javax.naming.NamingException: JNDI lookup failed. Timeout happened when reading response from the r

Sateesh KommineniSateesh Kommineni Member Posts: 3
edited November 2019 in PubSub+ Software

We are using a Solace Client and able to connect to Solace JMS Queue and we started seeing the following Error all of a sudden. We didn't have this Issue for the past few months.

javax.naming.NamingException: JNDI lookup failed - (Client name: 29783/#000d0081 Local port: -1 Remote addr: extacywjhtc5178:55003) - Timeout happened when reading response from the router.
at com.solacesystems.jndi.SolJNDIInitialContextFactory$SolJNDIInitialContextImpl.lookup(
at javax.naming.InitialContext.lookup(
at javax.naming.InitialContext.lookup(

This is happening when we try to create jmsConnection at

    private void init() throws JMSException, NamingException {

            jndiContext = new InitialContext( env );
            connectionFactory = (ConnectionFactory) jndiContext.lookup( jmsConnectionFactoryName );
            jmsConnection = connectionFactory.createConnection( username, password );
            **jmsDestination = (Destination) jndiContext.lookup( jmsDestinationName );**
            jmsConnection.setExceptionListener( this );

Is there a way we can specify/increase the timeout value




Sign In or Register to comment.