2 Replies Latest reply on Aug 23, 2010 3:57 AM by pratap_184

    system hangs while lookup of ejb2 deployed in jboss 5.1

    pratap_184

      Hi ,

       

      I am doing lookup of ejb2 deployed in jboss AS 5.1 . But while doing lookup it is giving me error like :

       

       

       

      13:27:07,321 INFO  [STDOUT] WARN: Could't call Scheduler Manager Bean. Message :Could not obtain connection to any of these urls: 10.192.18.38:1099and dis
      covery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
      13:27:07,321 ERROR [STDERR] javax.naming.CommunicationException: Could not obtain connection to any of these urls: 10.192.18.38:1099and discovery failed w
      ith error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is
      javax.naming.CommunicationException: Failed to connect to server /10.192.18.38:1099[Root exception is javax.naming.ServiceUnavailableException: Failed to
      connect to server /10.192.18.38:1099[Root exception is java.net.ConnectException: Connection refused: connect]]]
      13:27:07,321 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1763)
      13:27:07,321 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:693)
      13:27:07,321 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
      13:27:07,352 ERROR [STDERR]     at javax.naming.InitialContext.lookup(InitialContext.java:351)
      13:27:07,352 ERROR [STDERR]     at com.tfsm.oas.web.util.ServiceLocator.lookupHome(ServiceLocator.java:84)
      13:27:07,352 ERROR [STDERR]     at com.tfsm.oas.web.util.ServiceLocator.getServiceHome(ServiceLocator.java:124)
      13:27:07,352 ERROR [STDERR]     at com.tfsm.oas.web.schedule.FlushOverDeliveryJobs$JobScheduleFlushRunner.run(FlushOverDeliveryJobs.java:73)
      13:27:07,352 ERROR [STDERR]     at java.util.TimerThread.mainLoop(Timer.java:512)
      13:27:07,352 ERROR [STDERR]     at java.util.TimerThread.run(Timer.java:462)
      13:27:07,352 ERROR [STDERR] Caused by: javax.naming.CommunicationException: Failed to connect to server /10.192.18.38:1099[Root exception is javax.naming.
      ServiceUnavailableException: Failed to connect to server /10.192.18.38:1099[Root exception is java.net.ConnectException: Connection refused: connect]]
      13:27:07,352 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:335)
      13:27:07,352 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
      13:27:07,352 ERROR [STDERR]     ... 8 more
      13:27:07,352 ERROR [STDERR] Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server /10.192.18.38:1099[Root exception is java.net
      .ConnectException: Connection refused: connect]
      13:27:07,352 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
      13:27:07,352 ERROR [STDERR]     ... 9 more
      13:27:07,352 ERROR [STDERR] Caused by: java.net.ConnectException: Connection refused: connect
      13:27:07,352 ERROR [STDERR]     at java.net.PlainSocketImpl.socketConnect(Native Method)
      13:27:07,352 ERROR [STDERR]     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      13:27:07,352 ERROR [STDERR]     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      13:27:07,352 ERROR [STDERR]     at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      13:27:07,352 ERROR [STDERR]     at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      13:27:07,352 ERROR [STDERR]     at java.net.Socket.connect(Socket.java:519)
      13:27:07,352 ERROR [STDERR]     at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:97)
      13:27:07,352 ERROR [STDERR]     at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:82)
      13:27:07,352 ERROR [STDERR]     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:301)
      13:27:07,352 ERROR [STDERR]     ... 9 more.

       

      Can any one tell me why this problem is there .

      The jndi name for search I am using is 'ScheduleManagerBean'  and the url is  jnp://10.192.18.38:1099.

       

      Please help me . As ,I am stuck with this from last 2 days and yet not get the answer.

        • 1. Re: system hangs while lookup of ejb2 deployed in jboss 5.1
          rszulgo

          Do you have any other ejb2 deployed in your server ? If yes, and they're running wo/ any problems, what changes in server configuration have you made to run ejb2 on jboss 5.1 ?

          • 2. Re: system hangs while lookup of ejb2 deployed in jboss 5.1
            pratap_184

            Hello all,

             

            I am get rid of jndi lookup issue but now the problem is that after lookup I got following exception

             

             

            13:22:38,872 ERROR [LogInterceptor] EJBException in method: public abstract com.tfsm.oas.business.authentication.AuthenticationManager com.tfsm.oas.busines
            s.authentication.AuthenticationManagerHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException:
            javax.ejb.EJBException: Invalid invocation, check your deployment packaging, method=public abstract com.tfsm.oas.business.authentication.AuthenticationMana
            ger com.tfsm.oas.business.authentication.AuthenticationManagerHome.create() throws java.rmi.RemoteException,javax.ejb.CreateException
                    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invokeHome(StatelessSessionContainer.java:167)
                    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnectionInterceptor.java:187)
                    at org.jboss.ejb.plugins.CallValidationInterceptor.invokeHome(CallValidationInterceptor.java:56)
                    at org.jboss.ejb.plugins.TxInterceptorBMT.invokeHome(TxInterceptorBMT.java:69)
                    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invokeHome(StatelessSessionInstanceInterceptor.java:97)
                    at org.jboss.ejb.plugins.SecurityInterceptor.process(SecurityInterceptor.java:230)
                    at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:205)
                    at org.jboss.ejb.plugins.security.PreSecurityInterceptor.process(PreSecurityInterceptor.java:99)
                    at org.jboss.ejb.plugins.security.PreSecurityInterceptor.invokeHome(PreSecurityInterceptor.java:88)
                    at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:132)
                    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:107)
                    at org.jboss.ejb.SessionContainer.internalInvokeHome(SessionContainer.java:639)
                    at org.jboss.ejb.Container.invoke(Container.java:1046)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                    at java.lang.reflect.Method.invoke(Method.java:585)
                    at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
                    at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
                    at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
                    at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
                    at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
                    at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
                    at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
                    at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
                    at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
                    at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
                    at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
                    at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
                    at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
                    at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
                    at $Proxy493.create(Unknown Source)
                    at com.tfsm.oas.web.action.account.LoginAction.performAction(LoginAction.java:104)
                    at com.tfsm.oas.web.action.account.LoginAction.execute(LoginAction.java:62)
                    at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
                    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
                    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
                    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at com.tfsm.oas.web.util.UTF8Filter.doFilter(UTF8Filter.java:21)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
                    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
                    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
                    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
                    at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
                    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                    at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
                    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
                    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
            Can anybody tell me why this exception is there ?