Re: [BUG] net.jini.jeri.tcp.TcpServerEndpoint$LH$ServerConnectionImpl

Mark Brouwer <[email protected]>
Newsgroups gmane.comp.java.sun.jini
Message-ID <[email protected]>
Peter Jones - JavaSoft East wrote:
>>>>> And this bug has already been filed:
>>>>>
>>>>>     http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4720952
>>>> Thanks for sorting out, I did a very very quick search at the bug
>>>> database but didn't find anything that made me believe there was a bug,
>>>> given my interpretation that a closed socket is not connected. I hope
>>>> that your time isn't waisted by me filing a bug against the JTSK and
>>>> that you can use this 'customer case' as an extra way of forcing the
>>>> J2SE team to have this bug closed before it exceeds the 2 years :-(
>>> It is certainly helpful for us to learn about this (I hadn't been
>>> aware of this bug before); thanks again for the report,
>> Peter,
>>
>> While this is a bug or a documentation issue in the Sun JVMs, it has not
>> been fixed/documented yet and probably won't before I retire (sorry I
>> can get a bit pessimistic these days) and we do run into this issue at
>> regular times. It is not harmful but we do get questions from customers
>> that get scared by seeing unchecked exceptions in their log files and I
>> don't blame them.
>>
>> I wonder whether the Porter release can handle socket.getInetAddress()
>> returning null in cases where it can be expected based on the above bug
>> report. If so it would be really great!
>
> It is indeed unfortunate to scare customers with unchecked exceptions;
> yes, I think that we can do that for Porter (although probably not for
> Beta).  I have filed it as an RFE:
>
>       http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6243057

As 4720952 is still in progress and the problem described in this thread
occurs more often as one would like to see (see attachment) I want to
fix this.

Peter could you indicate what you think the behavior should be in case
socket.getInetAddress() returns null, so I can start fixing this. Do you
envision caching the result of socket.getInetAddress() or just return
when it resolves to null as you will get an exception at a different
level anyway.

Thanks,
--
Mark

--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
stacktrace.txt (text/plain, 3.1 KB)
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)


--------------------------------------------------------------------------
Getting Started:     http://www.jini.org/wiki/Category:Getting_Started
Community Web Site:  http://jini.org
jini-users Archive:  http://archives.java.sun.com/archives/jini-users.html
Unsubscribing:       email "signoff JINI-USERS"  to [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.