0 Replies Latest reply on Nov 30, 2010 3:39 AM by deady

    Periodical problem connecting to InvokerLocator

    deady

      I have swing app, connectiong to ejbs on jboss 4.2.3. Sometimes I recieve following error while executing methods:

       

      {code}
      org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://java1:3873/]
           at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:579)
           at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
           at org.jboss.remoting.Client.invoke(Client.java:1634)
           at org.jboss.remoting.Client.invoke(Client.java:548)
           at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
           at $Proxy0.findMLByJurePersonIdCollection(Unknown Source)
           at gui.access.EmployeeClientManager.findMLByJurePersonIdCollection(EmployeeClientManager.java:133)
           at gui.common.employee.EmployeeReadRubricator.openForManager(EmployeeReadRubricator.java:230)
           at gui.imagemill.employee.EmployeePanel.setSelectedNodeByName(EmployeePanel.java:326)
           at gui.imagemill.jureperson.SearchJurePersonDialog$2.execute(SearchJurePersonDialog.java:131)
           at gui.common.thread.ThreadDialog$2.construct(ThreadDialog.java:102)
           at gui.common.thread.SwingWorker$2.run(SwingWorker.java:109)
           at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.InterruptedException
           at EDU.oswego.cs.dl.util.concurrent.Semaphore.attempt(Semaphore.java:120)
           at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:793)
           at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:569)
           at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
           at org.jboss.remoting.Client.invoke(Client.java:1634)
           at org.jboss.remoting.Client.invoke(Client.java:548)
           at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:67)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
           at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
           at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:107)
           at $Proxy0.findMLByJurePersonIdCollection(Unknown Source)
           at gui.access.EmployeeClientManager.findMLByJurePersonIdCollection(EmployeeClientManager.java:133)
           at gui.common.employee.EmployeeReadRubricator.openForManager(EmployeeReadRubricator.java:230)
           at gui.imagemill.employee.EmployeePanel.setSelectedNodeByName(EmployeePanel.java:326)
           at gui.imagemill.jureperson.SearchJurePersonDialog$2.execute(SearchJurePersonDialog.java:131)
           at gui.common.thread.ThreadDialog$2.construct(ThreadDialog.java:102)
           at gui.common.thread.SwingWorker$2.run(SwingWorker.java:109)
           at java.lang.Thread.run(Unknown Source)
           at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:74)
           ... 16 more
      {code}

      You can see that there is background task, running using SwingWorker. I suppose the error occures when I try to execute any method while this task is running.

       

      Exactly the same code worked fine in jboss 4.0.4.

       

      How can I get rid of this error?