From dev-return-18382-apmail-mina-dev-archive=mina.apache.org@mina.apache.org Fri Jan 22 17:35:50 2010 Return-Path: Delivered-To: apmail-mina-dev-archive@www.apache.org Received: (qmail 98418 invoked from network); 22 Jan 2010 17:35:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 22 Jan 2010 17:35:50 -0000 Received: (qmail 85839 invoked by uid 500); 22 Jan 2010 17:35:49 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 85796 invoked by uid 500); 22 Jan 2010 17:35:49 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 85786 invoked by uid 99); 22 Jan 2010 17:35:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 17:35:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Jan 2010 17:35:41 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BAA0D29A001A for ; Fri, 22 Jan 2010 09:35:21 -0800 (PST) Message-ID: <31654755.7771264181721762.JavaMail.jira@brutus.apache.org> Date: Fri, 22 Jan 2010 17:35:21 +0000 (UTC) From: "Emmanuel Lecharny (JIRA)" To: dev@mina.apache.org Subject: [jira] Closed: (DIRMINA-618) Latest MINA won't work with glassfish as JCA inbound connector In-Reply-To: <1933641760.1220353304470.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRMINA-618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Emmanuel Lecharny closed DIRMINA-618. ------------------------------------- > Latest MINA won't work with glassfish as JCA inbound connector > -------------------------------------------------------------- > > Key: DIRMINA-618 > URL: https://issues.apache.org/jira/browse/DIRMINA-618 > Project: MINA > Issue Type: Bug > Components: Core > Affects Versions: 2.0.0-M3 > Environment: Windows XP / Vista > Reporter: Christopher Hurst > Priority: Blocker > Original Estimate: 168h > Remaining Estimate: 168h > > The latest version of Mina (I believe 1.1.7 worked see link) has issues with Glassfish when deployed as inbound JCA as reported else where (Has this been worked on ? / explained ?) ... > http://www.nabble.com/MINA-and-Glassfish-td18767392.html > The non working machine shows java.nio.channels.spi.SelectorProvider=com.sun.enterprise.ss.provider.ASSelector (from glassfish) > the working machine shows this as unset, I've tried unsetting this myself but it seems not that simple, I guess its a case of when it has to be unset to take effect. > On the failing machine attempting to connect via a NioSocketConnector establishes a connection but it then goes horribly wrong usually with a null pointer exception in ... > org.apache.mina.core.polling.AbstractPollingIoConnector > ConnectionRequest connectionRequest(H handle); returns null which causes the problem, looks like lower down that the wrong set of keys is being obtained , decorated vs undecorated ie right set of keys but they're wrapped by a decorator the key comparison can't cope with .. > I noticed whilst debugging that interacting with the debugger (breakpoints) caused the socket to work on my quad core vista box, then by recoding MINA to ignore the null pointers it all sprang into life and appears stable once connected, however my dual core XP box still doesn't work, obviously the vista box is way higher spec which may or may not effect the issue. > I'm trying to bottom this out myself but any feedback would be useful, particularly if some one has identified the issue already. > I have a none JCA version of my code and it works fine everywhere as is. > I notice using the debugger that the MINA code flow jumps into a glassfish lib appserv-rt something to do with the selectors but haven't got to the bottom of this yet. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.