🎄 Happy Holidays! 🥳

Most of Solace is closed December 24–January 1 so our employees can spend time with their families. We will re-open Thursday, January 2, 2024. Please expect slower response times during this period and open a support ticket for anything needing immediate assistance.

Happy Holidays!

Please note: most of Solace is closed December 25–January 2, and will re-open Tuesday, January 3, 2023.

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

Sateesh Kommineni
Sateesh Kommineni Member Posts: 3
edited November 2019 in PubSub+ Event Broker #1

Hi,
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(SolJNDIInitialContextFactory.java:227)
at javax.naming.InitialContext.lookup(InitialContext.java:417)
at javax.naming.InitialContext.lookup(InitialContext.java:417)

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 );
            jmsConnection.start();
        }

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

Thanks
Sateesh

Tagged:

Answers