Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
jtsk_2.1
-
None
Description
Running some stress tests it is possible an NPE is thrown when the sockets used by a TcpEndpoint has been closed while an attempt to invoke a remote method takes place, this is related to a bug reported as #6243057, see also this thread.
02-May-2007 17:01:12 org.cheiron.seven.core.ContainerManager notifyServiceDestroyed (oid=1.3.6.1.4.12543.2.0, group=default, instance=master) INFO: JSC Service with ID 1.2.3.3_load is destroyed, connector unexported and container managed resources are released java.lang.NullPointerException at net.jini.jeri.tcp.TcpEndpoint$ConnectionImpl.checkConnectPermission(TcpEndpoint.java:892) at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connect(TcpEndpoint.java:754) at net.jini.jeri.connection.ConnectionManager.connect(ConnectionManager.java:205) at net.jini.jeri.connection.ConnectionManager$ReqIterator.next(ConnectionManager.java:629) at net.jini.jeri.BasicObjectEndpoint$1.next(BasicObjectEndpoint.java:371) at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(BasicInvocationHandler.java:708) at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(BasicInvocationHandler.java:659) at net.jini.jeri.BasicInvocationHandler.invoke(BasicInvocationHandler.java:528) at org.cheiron.seven.proxy.BasicInvocationHandler.invokeMethod(BasicInvocationHandler.java:324) at org.cheiron.seven.proxy.BasicInvocationHandler.invoke(BasicInvocationHandler.java:129) at org.cheiron.seven.proxy.StubInvokerHandler.invoke(StubInvokerHandler.java:142) at org.cheiron.seven.proxy.BasicInvocationHandler.invokeMethod(BasicInvocationHandler.java:324) at org.cheiron.seven.proxy.ServiceStubProxyHandler.specializedInvoke(ServiceStubProxyHandler.java:164) at org.cheiron.seven.proxy.BasicInvocationHandler.invoke(BasicInvocationHandler.java:119) at com.sun.jini.outrigger.$Proxy141.take(Unknown Source) at com.sun.jini.outrigger.SpaceProxy2.take(SpaceProxy2.java:411) at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.cheiron.seven.proxy.BasicInvocationHandler.invokeMethod(BasicInvocationHandler.java:328) at org.cheiron.seven.proxy.BasicInvocationHandler.invoke(BasicInvocationHandler.java:129) at $Proxy140.take(Unknown Source) at x.y.z.javaspace.JavaSpaceAccessorImpl$EntryTaker.run(JavaSpaceAccessorImpl.java:377) at org.cheiron.util.thread.ThreadPoolImpl$ContextTask$1.run(ThreadPoolImpl.java:1527) at org.cheiron.seven.security.ContextSecurityManager$3$1.run(ContextSecurityManager.java:410) at java.security.AccessController.doPrivileged(Native Method) at org.cheiron.util.thread.ThreadPoolImpl$ContextTask.run(ThreadPoolImpl.java:1522) at org.cheiron.util.thread.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:2657)