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 21 in PubSub+ Software

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

Sign In or Register to comment.