0 Replies Latest reply on Oct 9, 2007 9:01 PM by Manoj Nair

    JBOSS doesnt find JMSQueue ( connection failure)

    Manoj Nair Newbie

      We have 2 JBOSS instances running in cluster . One is
      primary and other secondary. We have JMS configured in
      both under /deploy-hasingleton/. Sorry to be naive on
      the clustering thing as I am not the one who
      configured it.

      Anyway when the second Jboss instance tries to open a
      connection to JMSQueue it gives the following error.
      It has been running like this for many years. Recently
      we moved to a new data center and our IPs changed (
      all production servers). I dont know how its connected
      to the issue directly. This is the error we get..

      any help would be appreciated..

      Thanks

      -----------java.lang.reflect.UndeclaredThrowableException

      at $Proxy35.createConnection(Unknown Source)

      at
      org.springframework.jms.core.JmsTemplate.createConnection(JmsTemplate.java:792)

      at
      com.bvdc.tpc.jms.JmsReceiveTemplate.createConnection(JmsReceiveTemplate.java:49)

      at
      org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:420)

      at
      org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:486)

      at
      com.bvdc.smsgateway.jms.JmsCommandListHandler.process(JmsCommandListHandler.java:45)

      at
      com.bvdc.smsgateway.sender.SmsCommandSender.sendGatewayCommand(SmsCommandSender.java:68)

      at
      com.bvdc.bls.dao.cas.smsgateway.CasDao.updateStbLatLong(CasDao.java:346)

      at
      com.bvdc.bls.dao.cas.smsgateway.CasDao.updateStbLatLong(CasDao.java:341)

      at
      com.bvdc.bls.actor.impl.account.AccountUpdateActor.updateSTBLatLong(AccountUpdateActor.java:608)

      at
      com.bvdc.bls.actor.impl.account.AccountUpdateActor.execute(AccountUpdateActor.java:432)

      at
      com.bvdc.bls.dispatch.BLSDispatcher.dispatch(BLSDispatcher.java:106)

      at
      com.bvdc.bls.dispatch.BLSDispatcher.dispatch(BLSDispatcher.java:54)

      at
      com.bvdc.bls.main.BLSServlet.doGet(BLSServlet.java:81)

      at
      com.bvdc.bls.main.BLSServlet.doPost(BLSServlet.java:139)

      at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      at
      javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

      at
      sun.reflect.GeneratedMethodAccessor205.invoke(Unknown
      Source)

      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at
      java.lang.reflect.Method.invoke(Method.java:324)

      at
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)

      at
      java.security.AccessController.doPrivileged(Native
      Method)

      at
      javax.security.auth.Subject.doAsPrivileged(Subject.java:500)

      at
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

      at
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)

      at
      org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)

      at
      org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)

      at
      java.security.AccessController.doPrivileged(Native
      Method)

      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)

      at
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

      at
      sun.reflect.GeneratedMethodAccessor204.invoke(Unknown
      Source)

      at
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at
      java.lang.reflect.Method.invoke(Method.java:324)

      at
      org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)

      at
      java.security.AccessController.doPrivileged(Native
      Method)

      at
      javax.security.auth.Subject.doAsPrivileged(Subject.java:500)

      at
      org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)

      at
      org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)

      at
      org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)

      at
      org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)

      at
      org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)

      at
      java.security.AccessController.doPrivileged(Native
      Method)

      at
      org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)

      at
      org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

      at
      org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

      at
      org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

      at
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)

      at
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

      at
      org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

      at
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

      at
      org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

      at
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

      at
      org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)

      at
      org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)

      at
      org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)

      at
      org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)

      at
      org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)

      at
      org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

      at java.lang.Thread.run(Thread.java:534)

      Caused by: javax.naming.NameNotFoundException:
      ConnectionFactory

      at
      org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:242)

      at
      org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:155)

      at
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)

      at
      org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)

      at
      javax.naming.InitialContext.lookup(InitialContext.java:347)

      at
      org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:124)

      at
      org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:86)

      at
      org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:122)

      at
      org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:147)

      at
      org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:86)

      at
      org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:101)

      at
      org.springframework.jndi.JndiObjectTargetSource.getTarget(JndiObjectTargetSource.java:116)

      at
      org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:150)

      ... 60 more