0 Replies Latest reply on May 2, 2006 2:36 AM by Petr Zeman

    Error at remote client - connection refused

    Petr Zeman Newbie

      Hi all,
      we have a couple instances of jboss running on the same machine (using BindingServices). They are of 4.0.4RC1 version. We've an EJB3.0 application on them. While calling EJB locally, it responses OK. But when we're trying to call the remote instance, we got following error/exception:

      2006-04-28 14:30:51,460 ERROR [org.jboss.remoting.Client] Error setting up client lease.
       org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection.
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:253)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:136)
       at org.jboss.remoting.Client.setupClientLease(Client.java:293)
       at org.jboss.remoting.Client.connect(Client.java:284)
       at org.jboss.remoting.Client.invoke(Client.java:436)
       at org.jboss.remoting.Client.invoke(Client.java:407)
       at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
       at $Proxy121.getSlozkyUradu(Unknown Source)
       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 cz.oksystem.lib.business.client.impl.EJB3StatelessClientDelegate.executePrim(EJB3StatelessClientDelegate.java:210)
       at cz.oksystem.lib.business.client.impl.EJB3StatelessClientDelegate.execute(EJB3StatelessClientDelegate.java:185)
       at cz.oksystem.lib.business.client.impl.AbstractBusinsesClientDelegate.invoke(AbstractBusinsesClientDelegate.java:88)
       at $Proxy120.getSlozkyUradu(Unknown Source)
       at cz.oksystem.ns.vvaserver.pnz.PnzController.inicializace(PnzController.java:415)
       at cz.oksystem.ns.vvaserver.pnz.PnzModel.onNactiNovy(PnzController.java:74)
       at cz.oksystem.lib.vvaserver.component.editpanel.EditPanelController.fireDleRezimu(EditPanelController.java:202)
       at cz.oksystem.lib.vvaserver.component.editpanel.EditPanelController.start(EditPanelController.java:172)
       at cz.oksystem.lib.vvaserver.impl.ConnectionControllerImpl.startNewContextController(ConnectionControllerImpl.java:393)
       at cz.oksystem.nslib.vvaserver.NslibConnectionController.manageRemovableControllerStack(NslibConnectionController.java:274)
       at cz.oksystem.nslib.vvaserver.NslibConnectionController.startNewContextController(NslibConnectionController.java:175)
       at cz.oksystem.nslib.vvaserver.NslibConnectionController.startNewContextController(NslibConnectionController.java:133)
       at cz.oksystem.nslib.vvaserver.action.NslibActionExecuteRole.startNewControllerInMenu(NslibActionExecuteRole.java:83)
       at cz.oksystem.nslib.vvaserver.action.NslibActionExecuteRole.startNewControllerInMenu(NslibActionExecuteRole.java:72)
       at cz.oksystem.ns.vvaserver.action.davka.ActionExecuteNovaPnz.executeAction(ActionExecuteNovaPnz.java:24)
       at cz.oksystem.mpsvlib.vvaserver.action.MpsvlibAbstractActionExecuteRole.execute(MpsvlibAbstractActionExecuteRole.java:57)
       at cz.oksystem.lib.vvaserver.component.simple.MenuComponent.menuItem_click(MenuComponent.java:58)
       at cz.oksystem.lib.vvaserver.component.simple.MenuComponent.access$000(MenuComponent.java:20)
       at cz.oksystem.lib.vvaserver.component.simple.MenuComponent$1.execute(MenuComponent.java:30)
       at cz.oksystem.lib.vvaserver.component.AbstractServerComponent.handleEvent(AbstractServerComponent.java:491)
       at cz.oksystem.lib.vvaserver.component.AbstractServerComponent.newMessage(AbstractServerComponent.java:1120)
       at cz.oksystem.lib.vvaserver.component.ComponentContextController.eventFired(ComponentContextController.java:88)
       at cz.oksystem.lib.vvaserver.component.PanelContextController.eventFired(PanelContextController.java:134)
       at cz.oksystem.lib.vvaserver.impl.ConnectionControllerImpl.contextEvent(ConnectionControllerImpl.java:357)
       at cz.oksystem.lib.vvaserver.impl.ConnectionControllerImpl.handleEvent(ConnectionControllerImpl.java:195)
       at cz.oksystem.lib.vvaserver.impl.ConnectionControllerImpl.hanleClientEvents(ConnectionControllerImpl.java:169)
       at cz.oksystem.lib.vvaserver.facade.ServletServerFacade.getActions(ServletServerFacade.java:202)
       at cz.oksystem.lib.vvaserver.facade.ServletServerFacade.doGet(ServletServerFacade.java:154)
       at cz.oksystem.lib.vvaserver.facade.ServletServerFacade.doPost(ServletServerFacade.java:257)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       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:54)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:174)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       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.coyote.http11.Http11Processor.process(Http11Processor.java:868)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
       Caused by: java.net.ConnectException: Connection refused
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
       at java.net.Socket.connect(Socket.java:507)
       at java.net.Socket.connect(Socket.java:457)
       at java.net.Socket.<init>(Socket.java:365)
       at java.net.Socket.<init>(Socket.java:178)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:517)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.getConnection(SocketClientInvoker.java:457)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:249)
       ... 69 more
      


      Any guess? Thanks a lot.
      Petr