Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 16061 invoked from network); 31 May 2005 01:15:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 May 2005 01:15:10 -0000 Received: (qmail 16273 invoked by uid 500); 31 May 2005 01:15:08 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 16176 invoked by uid 500); 31 May 2005 01:15:07 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 16162 invoked by uid 99); 31 May 2005 01:15:07 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 30 May 2005 18:15:05 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 2628817F for ; Tue, 31 May 2005 03:15:03 +0200 (CEST) Message-ID: <1252660074.1117502103154.JavaMail.jira@ajax.apache.org> Date: Tue, 31 May 2005 03:15:03 +0200 (CEST) From: "Trustin Lee (JIRA)" To: dev@directory.apache.org Subject: [jira] Resolved: (DIRMINA-47) NullPointerException in SocketIoProcessor In-Reply-To: <96322001.1117165551594.JavaMail.jira@ajax.apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DIRMINA-47?page=all ] Trustin Lee resolved DIRMINA-47: -------------------------------- Resolution: Fixed > NullPointerException in SocketIoProcessor > ----------------------------------------- > > Key: DIRMINA-47 > URL: http://issues.apache.org/jira/browse/DIRMINA-47 > Project: Directory MINA > Type: Bug > Versions: 0.7.1 > Reporter: Trustin Lee > Assignee: Trustin Lee > Fix For: 0.7.2 > > Adam Hathcock wrote: > java.lang.NullPointerException > at org.apache.mina.io.socket.SocketIoProcessor.flush(SocketIoProcessor.java:496) > at org.apache.mina.io.socket.SocketIoProcessor.flushSessions(SocketIoProcessor.java:402) > at org.apache.mina.io.socket.SocketIoProcessor.access$3(SocketIoProcessor.java:377) > at org.apache.mina.io.socket.SocketIoProcessor$Worker.run(SocketIoProcessor.java:525) > is error I'm running into and I'm unsure of the cause. I am closing ProtocolSessions and creating new ones which may have something to do with it. I also use the DemuxingProtocolCodecFactory to manage my protocol messages as well as their encoding and decoding. > I cannot figure out how the session's SelectionKey is becoming null. I am using a checkout of the 0.7 branch from earlier today. > This error occurs after I create a new connection and start using the ProtocolSession. I'm still not sure what causes it but everything appears to still work if I put a try/catch for a NullPointerException in the SocketIoProcessor around line 496 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira