5 Replies Latest reply on Apr 21, 2006 2:57 AM by brian.stansberry

    How to avoid error when launching an new clustered EJB node

    uranuscn

      I finished setting up an EJB server cluster.
      I tried to launch a new EJB server node to join it into the EJB server cluster, at the same time, a web server is accessing the EJB server cluster at all times. Errors always throw in the web pages when the new EJB server is starting up and web server is accessing the EJB server cluster.
      How can I avoid this? Is there any configuration in Jboss to make sure that client can access Jboss service just after all services in this jboss server finish startup ?
      Please give me some help about this.

        • 1. Re: How to avoid error when launching an new clustered EJB n
          brian.stansberry

          1) What JBoss version?

          2) What are the errors you are seeing? Post a stacktrace.

          • 2. Re: How to avoid error when launching an new clustered EJB n
            uranuscn

            My JBoss version is 4.0.2.

            The stacktrace is as below

            jvm 1 | 09:59:13,437 INFO [EJBDeployer] Deployed: file:/D:/av.6.2/av.home/jboss-4.0.2/server/av.app/tmp/deploy/tmp22
            294aa.ear-contents/ads.jar
            jvm 1 | 09:59:13,577 INFO [STDOUT] [2006-04-19 09:59:13,577] ObjectFactory - ERROR - com.accela.aa.util.ObjectFactor
            y/getServiceObject - THROW
            jvm 1 | java.lang.reflect.InvocationTargetException
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at com.accela.aa.util.ObjectFactory.getServiceObject(ObjectFactory.java:165)
            jvm 1 | at com.accela.aa.util.ObjectFactory.getServiceObject(ObjectFactory.java:102)
            jvm 1 | at com.accela.aa.aamain.cap.CapBusiness.<init>(CapBusiness.java:387)
            jvm 1 | at com.accela.aa.aamain.cap.CapEJBBean.ejbCreate(CapEJBBean.java:1830)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessionEnterpriseContext.java:63)
            jvm 1 | at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:35)
            jvm 1 | at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:161)
            jvm 1 | at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.
            java:97)
            jvm 1 | at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
            jvm 1 | at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
            jvm 1 | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
            jvm 1 | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
            jvm 1 | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
            jvm 1 | at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
            jvm 1 | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
            jvm 1 | at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:264)
            jvm 1 | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
            jvm 1 | at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
            jvm 1 | at org.jboss.ejb.Container.invoke(Container.java:873)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            jvm 1 | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            jvm 1 | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            jvm 1 | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            jvm 1 | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            jvm 1 | at org.jboss.invocation.jrmp.server.JRMPInvokerHA.invoke(JRMPInvokerHA.java:163)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
            jvm 1 | at sun.rmi.transport.Transport$1.run(Transport.java:153)
            jvm 1 | at java.security.AccessController.doPrivileged(Native Method)
            jvm 1 | at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
            jvm 1 | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            jvm 1 | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
            jvm 1 | at java.lang.Thread.run(Thread.java:595)
            jvm 1 | Caused by: java.lang.reflect.UndeclaredThrowableException
            jvm 1 | at $Proxy349.create(Unknown Source)
            jvm 1 | ... 48 more
            jvm 1 | Caused by: org.jboss.ha.framework.interfaces.GenericClusteringException: Container is shuting down on this no
            de
            jvm 1 | at org.jboss.ejb.plugins.CleanShutdownInterceptor.invokeHome(CleanShutdownInterceptor.java:220)
            jvm 1 | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
            
            jvm 1 | at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
            jvm 1 | at org.jboss.ejb.Container.invoke(Container.java:894)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            jvm 1 | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            jvm 1 | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            jvm 1 | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            jvm 1 | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            jvm 1 | at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
            jvm 1 | at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
            jvm 1 | at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
            jvm 1 | at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
            jvm 1 | at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
            jvm 1 | at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
            jvm 1 | at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
            jvm 1 | at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
            jvm 1 | ... 49 more
            jvm 1 | 09:59:13,577 ERROR [ObjectFactory] com.accela.aa.util.ObjectFactory/getServiceObject - THROW
            jvm 1 | java.lang.reflect.InvocationTargetException
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at com.accela.aa.util.ObjectFactory.getServiceObject(ObjectFactory.java:165)
            jvm 1 | at com.accela.aa.util.ObjectFactory.getServiceObject(ObjectFactory.java:102)
            jvm 1 | at com.accela.aa.aamain.cap.CapBusiness.<init>(CapBusiness.java:387)
            jvm 1 | at com.accela.aa.aamain.cap.CapEJBBean.ejbCreate(CapEJBBean.java:1830)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at org.jboss.ejb.StatelessSessionEnterpriseContext.<init>(StatelessSessionEnterpriseContext.java:63)
            jvm 1 | at org.jboss.ejb.plugins.StatelessSessionInstancePool.create(StatelessSessionInstancePool.java:35)
            jvm 1 | at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:161)
            jvm 1 | at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.
            java:97)
            jvm 1 | at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
            jvm 1 | at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
            jvm 1 | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
            jvm 1 | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
            jvm 1 | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
            jvm 1 | at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
            jvm 1 | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
            jvm 1 | at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:264)
            jvm 1 | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
            jvm 1 | at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
            jvm 1 | at org.jboss.ejb.Container.invoke(Container.java:873)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            jvm 1 | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            jvm 1 | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            jvm 1 | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            jvm 1 | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            jvm 1 | at org.jboss.invocation.jrmp.server.JRMPInvokerHA.invoke(JRMPInvokerHA.java:163)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
            jvm 1 | at sun.rmi.transport.Transport$1.run(Transport.java:153)
            jvm 1 | at java.security.AccessController.doPrivileged(Native Method)
            jvm 1 | at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
            jvm 1 | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            jvm 1 | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
            jvm 1 | at java.lang.Thread.run(Thread.java:595)
            jvm 1 | Caused by: java.lang.reflect.UndeclaredThrowableException
            jvm 1 | at $Proxy349.create(Unknown Source)
            jvm 1 | ... 48 more
            jvm 1 | Caused by: org.jboss.ha.framework.interfaces.GenericClusteringException: Container is shuting down on this no
            de
            jvm 1 | at org.jboss.ejb.plugins.CleanShutdownInterceptor.invokeHome(CleanShutdownInterceptor.java:220)
            jvm 1 | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93)
            
            jvm 1 | at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:613)
            jvm 1 | at org.jboss.ejb.Container.invoke(Container.java:894)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            jvm 1 | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            jvm 1 | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            jvm 1 | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            jvm 1 | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            jvm 1 | at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
            jvm 1 | at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
            jvm 1 | at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
            jvm 1 | at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
            jvm 1 | at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
            jvm 1 | at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
            jvm 1 | at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169)
            jvm 1 | at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
            jvm 1 | ... 49 more
            jvm 1 | 09:59:13,640 ERROR [LogInterceptor] EJBException in method: public abstract com.accela.aa.aamain.cap.CapModel
             com.accela.aa.aamain.cap.CapService.getCapViewByPK(com.accela.aa.aamain.cap.CapIDModel) throws com.accela.aa.exception.
            AAException,java.rmi.RemoteException:
            jvm 1 | javax.ejb.EJBException: Could not instantiate bean
            jvm 1 | at org.jboss.ejb.plugins.AbstractInstancePool.get(AbstractInstancePool.java:180)
            jvm 1 | at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.
            java:97)
            jvm 1 | at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
            jvm 1 | at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
            jvm 1 | at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
            jvm 1 | at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
            jvm 1 | at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
            jvm 1 | at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
            jvm 1 | at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
            jvm 1 | at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:264)
            jvm 1 | at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
            jvm 1 | at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
            jvm 1 | at org.jboss.ejb.Container.invoke(Container.java:873)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
            jvm 1 | at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
            jvm 1 | at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
            jvm 1 | at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
            jvm 1 | at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
            jvm 1 | at org.jboss.invocation.jrmp.server.JRMPInvokerHA.invoke(JRMPInvokerHA.java:163)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            jvm 1 | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            jvm 1 | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            jvm 1 | at java.lang.reflect.Method.invoke(Method.java:585)
            jvm 1 | at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
            jvm 1 | at sun.rmi.transport.Transport$1.run(Transport.java:153)
            jvm 1 | at java.security.AccessController.doPrivileged(Native Method)
            jvm 1 | at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
            jvm 1 | at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            jvm 1 | at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
            jvm 1 | at java.lang.Thread.run(Thread.java:595)
            jvm 1 | 09:59:14,452 INFO [EJBDeployer] Deployed: file:/D:/av.6.2/av.home/jboss-4.0.2/server/av.app/tmp/deploy/tmp22
            294aa.ear-contents/ams.jar


            • 3. Re: How to avoid error when launching an new clustered EJB n
              uranuscn

              Please give me your help about this. Any body still encountered this issue?

              • 4. Re: How to avoid error when launching an new clustered EJB n
                bhupendra.yaduvenshi

                Your main issue is your we component.Deploy the component on ur second node Also.After that if u face any problem than plz let me know

                • 5. Re: How to avoid error when launching an new clustered EJB n
                  brian.stansberry

                  I'm not able to see how the problem your stack trace shows occurs. The invoker checks with its target to see if invocations are allowed; it shouldn't allow the invocation to go through if the EJB container isn't fully started. But the exception you're getting indicates an invocation is reaching the container before one of its interceptors is started.

                  Can you try 4.0.4.CR2, and if the problem is still there open a bug report on JIRA?