1 Reply Latest reply on Feb 28, 2012 6:15 AM by Lokesh Kumar Padhanvis

    javax.naming.NamingException: Could not dereference object [Root exception is java.lang.reflect.org.jboss.remoting.InvocationFailureException: Unable to perform invocation; nested exception is: java.io.EOFException: end of file]

    Sarang Anajwala Newbie

      Getting following exception while trying to connect to remote EJB.

      I tried to send 500 requests (through a for-loop in java client program) to the EJB.... about 400 went throgh and then I started getting this error, so certainly this is not a classpath issue or code issue.

      Anything related to configuration?

      Version: "JBoss AS 6.1.Final"

       

      javax.naming.NamingException: Could not dereference object [Root exception is java.lang.reflect.UndeclaredThrowableException]

              at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1508)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

              at javax.naming.InitialContext.lookup(InitialContext.java:392)

              at ManageDataMining.setUp(ManageDataMining.java:66)

              at ManageDataMining.main(ManageDataMining.java:39)

      Caused by: java.lang.reflect.UndeclaredThrowableException

              at $Proxy0.createProxyBusiness(Unknown Source)

              at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)

              at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)

              at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:161)

              at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

              at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)

              at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)

              ... 5 more

      Caused by: org.jboss.remoting.InvocationFailureException: Unable to perform invocation; nested exception is:

              java.io.EOFException: end of file

              at org.jboss.remoting.transport.socket.SocketClientInvoker.handleException(SocketClientInvoker.java:146)

              at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:956)

              at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:169)

              at org.jboss.remoting.Client.invoke(Client.java:2070)

              at org.jboss.remoting.Client.invoke(Client.java:879)

              at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

              at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:104)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

              at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

              ... 12 more

      Caused by: java.io.EOFException: end of file

              at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:903)

              at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:169)

              at org.jboss.remoting.Client.invoke(Client.java:2070)

              at org.jboss.remoting.Client.invoke(Client.java:879)

              at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:60)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

              at org.jboss.ejb3.proxy.impl.remoting.IsLocalProxyFactoryInterceptor.invoke(IsLocalProxyFactoryInterceptor.java:104)

              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:102)

              at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:62)

              at $Proxy0.createProxyBusiness(Unknown Source)

              at org.jboss.ejb3.proxy.impl.objectfactory.session.SessionProxyObjectFactory.createProxy(SessionProxyObjectFactory.java:129)

              at org.jboss.ejb3.proxy.impl.objectfactory.session.stateless.StatelessSessionProxyObjectFactory.getProxy(StatelessSessionProxyObjectFactory.java:79)

              at org.jboss.ejb3.proxy.impl.objectfactory.ProxyObjectFactory.getObjectInstance(ProxyObjectFactory.java:161)

              at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)

              at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483)

              at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824)

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688)

              at javax.naming.InitialContext.lookup(InitialContext.java:392)

              at ManageDataMining.setUp(ManageDataMining.java:66)

              at ManageDataMining.main(ManageDataMining.java:39)

              at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:72)

              ... 16 more