2 Replies Latest reply on Sep 29, 2010 6:30 AM by sree g

    Errors while accessing ejb application

    sree g Newbie

      Hi,

       

      I have deployed an ejb application (JbossDukesBank that comes with java tutorial) into two jboss instances running on the same machine.Iam using jboss-eap5.0.1 . When both the nodes are up and running, I could access the application . But , if Istop one of the nodes and try to access the application from the second node , i am getting following exception :

       

      HTTP ERROR 500

       

      type Exception report
      message
      description The server encountered an internal error () that prevented it from fulfilling this request.
      exception
      org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://10.136.229.104:4746/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
      org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:831)
      org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)
      org.jboss.remoting.Client.invoke(Client.java:1927)
      org.jboss.remoting.Client.invoke(Client.java:770)
      org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:184)
      org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
      org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
      org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
      org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
      org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
      org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
      $Proxy239.create(Unknown Source)
      com.sun.ebank.web.BeanManager.<init>(BeanManager.java:55)
      com.sun.ebank.web.Dispatcher.doGet(Dispatcher.java:47)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      root cause
      java.net.ConnectException: Connection refused
      java.net.PlainSocketImpl.socketConnect(Native Method)
      java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
      java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
      java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
      java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      java.net.Socket.connect(Socket.java:519)
      org.jboss.remoting.transport.socket.SocketClientInvoker.connect(SocketClientInvoker.java:289)
      org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:206)
      org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1165)
      org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:816)
      org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)
      org.jboss.remoting.Client.invoke(Client.java:1927)
      org.jboss.remoting.Client.invoke(Client.java:770)
      org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:184)
      org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)
      org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)
      org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
      org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)
      org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)
      org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)
      org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)
      $Proxy239.create(Unknown Source)
      com.sun.ebank.web.BeanManager.<init>(BeanManager.java:55)
      com.sun.ebank.web.Dispatcher.doGet(Dispatcher.java:47)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      note The full stack trace of the root cause is available in the JBoss Web/2.1.7 logs.

      type : Exception report message

      description:  The server encountered an internal error () that prevented it from fulfilling this request.

      exception

      org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://10.136.229.104:4746/ dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]

      org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:831)

      org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)

      org.jboss.remoting.Client.invoke(Client.java:1927)

      org.jboss.remoting.Client.invoke(Client.java:770)

      org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:184)

      org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)

      org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)

      org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

      org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

      org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

      org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)

      org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

      $Proxy239.create(Unknown Source)

      com.sun.ebank.web.BeanManager.<init>(BeanManager.java:55)

      com.sun.ebank.web.Dispatcher.doGet(Dispatcher.java:47)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

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

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

      root cause

      java.net.ConnectException: Connection refused

      java.net.PlainSocketImpl.socketConnect(Native Method)

      java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)

      java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)

      java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)

      java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)

      java.net.Socket.connect(Socket.java:519)

      org.jboss.remoting.transport.socket.SocketClientInvoker.connect(SocketClientInvoker.java:289)

      org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:206)

      org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1165)

      org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:816)

      org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:167)

      org.jboss.remoting.Client.invoke(Client.java:1927)

      org.jboss.remoting.Client.invoke(Client.java:770)

      org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke(UnifiedInvokerProxy.java:184)

      org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:365)

      org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:197)

      org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)

      org.jboss.proxy.ejb.SecurityContextInterceptor.invoke(SecurityContextInterceptor.java:64)

      org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:68)

      org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:184)

      org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:101)

      $Proxy239.create(Unknown Source)

      com.sun.ebank.web.BeanManager.<init>(BeanManager.java:55)

      com.sun.ebank.web.Dispatcher.doGet(Dispatcher.java:47)

      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

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

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

      note The full stack trace of the root cause is available in the JBoss Web/2.1.7 logs.

       

       

       

       

      And every time the port number in the above  error message "org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://10.136.229.104:4746/"  is different .

       

      I have googled and found similar issues reported but could not find solution for this (https://jira.jboss.org/browse/EJBTHREE-986).

       

      Can some one  please help me to resolve this ?

       

      Thank you .