Announcement Announcement Module
Collapse
No announcement yet.
Exception due to bean creation failure on startup Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception due to bean creation failure on startup

    I am having the following exception on startup of JBoss occur on JBoss 4.0.5 using Spring 2.0.8 at the point where Spring attempts to instantiate a remote JMS cue by JNDI lookup:

    Code:
    2009-08-20 21:30:13,527 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to 10.0.100.232:1
    099
    javax.naming.CommunicationException: Failed to connect to server 10.0.100.232:1099 [Root exception i
    s javax.naming.ServiceUnavailableException: Failed to connect to server 10.0.100.232:1099 [Root exce
    ption is java.net.ConnectException: Connection refused]]
    	at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
    	at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
    	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
    	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
    	at javax.naming.InitialContext.lookup(InitialContext.java:351)
    	at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:132)
    	at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:88)
    	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:130)
    	at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:155)
    	at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)
    	at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
    	at org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:197
    )
    	at org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:184
    )
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(A
    bstractAutowireCapableBeanFactory.java:1203)
    ...
    The remote resource can't be found because the machine happens to be restarting at the same time as the machine the error happens on. Is there a way to configure Spring's JNDI facilities to retry this lookup for a particular number of times over a particular duration so that it would be able to capture the remote machine when it came back up?

  • #2
    I think this post may prove instructive

    http://forum.springsource.org/showthread.php?t=74124

    Comment

    Working...
    X