Re: MINA and Glassfish

2008-10-21 Thread Niklas Gustavsson
Hey Has anyone made any progress on the troubles with MINA 2.0 in Glassfish? We have had some FtpServer users who have run into problems when deploying FtpServer in Glassfish, and they seem to be related. I just tried deploying our WAR example in Glassfish V2 UR2 b04 and got the following

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: Hey Has anyone made any progress on the troubles with MINA 2.0 in Glassfish? We have had some FtpServer users who have run into problems when deploying FtpServer in Glassfish, and they seem to be related. I just tried deploying our WAR example in Glassfish V2 UR2 b04

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: Hey Has anyone made any progress on the troubles with MINA 2.0 in Glassfish? We have had some FtpServer users who have run into problems when deploying FtpServer in Glassfish, and they seem to be related. I just tried deploying our WAR example in Glassfish V2 UR2 b04

Re: MINA and Glassfish

2008-10-21 Thread Mezei Zoltan
On Tue, Oct 21, 2008 at 1:45 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: I would like to know if the trunk with this patch : http://svn.apache.org/viewvc?rev=706585view=rev fixes the problem. Anywone can test it ? I'll do it now, however it might take a time to get mina compiled from

Re: MINA and Glassfish

2008-10-21 Thread Niklas Gustavsson
On Tue, Oct 21, 2008 at 1:09 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: I think there is something wrong in MINA code : protected NioSession accept(IoProcessorNioSession processor, ServerSocketChannel handle) throws Exception { SelectionKey key =

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Niklas Gustavsson wrote: On Tue, Oct 21, 2008 at 1:09 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: I think there is something wrong in MINA code : protected NioSession accept(IoProcessorNioSession processor, ServerSocketChannel handle) throws Exception { SelectionKey

Re: MINA and Glassfish

2008-10-21 Thread Niklas Gustavsson
On Tue, Oct 21, 2008 at 2:28 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: In this very case, the NPE is just revealing that some specific condition is not handled correctly. Fixing it is mandatory. So what is this condition ? Agreed. I don't know the condition, all that was done was deploying

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
I'll do it now, however it might take a time to get mina compiled from source, I didn't do that before. Ok, I did it, but it didn't help :-( At least, this is not the same NPE :) It was used in a .war file with the following web.xml: When I deployed the war file to a glassfish

Re: MINA and Glassfish

2008-10-21 Thread Mezei Zoltan
On Tue, Oct 21, 2008 at 3:36 PM, Emmanuel Lecharny [EMAIL PROTECTED] wrote: Ok, I did it, but it didn't help :-( At least, this is not the same NPE :) :-) Without the check, as the getConnectionRequest() method can return null for the very same reason than the previously fixed accept()

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Mezei Zoltan wrote: However it yielded the following log messages only: 16:44:01.530 [pool-1-thread-1] DEBUG test - Before connect... 16:44:01.546 [pool-1-thread-1] DEBUG test - After connect... 16:44:01.546 [pool-1-thread-1] DEBUG test - Before await... And nothing else. The same code from a

Re: MINA and Glassfish

2008-10-21 Thread Jeanfrancois Arcand
Salut, this is a problem with GlassFish: https://glassfish.dev.java.net/issues/show_bug.cgi?id=5321 Mainly, there is a severe bug (we all whine about this %$#% mechanism, which has been dropped in v3). Just add, in domain.xml: -Dcom.sun.enterprise.server.ss.ASQuickStartup=false and the

Re: MINA and Glassfish

2008-10-21 Thread Jeanfrancois Arcand
Salut, the exact bug is (we got so much issues related to that :-)) https://glassfish.dev.java.net/issues/show_bug.cgi?id=3027 Someone from this community already added a workaround. A+ -- Jeanfrancois Jeanfrancois Arcand wrote: Salut, this is a problem with GlassFish:

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Jeanfrancois Arcand wrote: Salut, this is a problem with GlassFish: https://glassfish.dev.java.net/issues/show_bug.cgi?id=5321 Mainly, there is a severe bug (we all whine about this %$#% mechanism, which has been dropped in v3). Just add, in domain.xml:

Re: MINA and Glassfish

2008-10-21 Thread Jeanfrancois Arcand
Niklas Gustavsson wrote: On Tue, Oct 21, 2008 at 7:52 PM, Jeanfrancois Arcand [EMAIL PROTECTED] wrote: the exact bug is (we got so much issues related to that :-)) https://glassfish.dev.java.net/issues/show_bug.cgi?id=3027 Thanks (I'll buy you a beer when I get the chance)! That also

Re: MINA and Glassfish

2008-10-21 Thread Emmanuel Lecharny
Jeanfrancois Arcand wrote: Niklas Gustavsson wrote: On Tue, Oct 21, 2008 at 7:52 PM, Jeanfrancois Arcand [EMAIL PROTECTED] wrote: the exact bug is (we got so much issues related to that :-)) https://glassfish.dev.java.net/issues/show_bug.cgi?id=3027 Thanks (I'll buy you a beer when I get

Re: MINA and Glassfish

2008-08-18 Thread Chris Hurst
Did anyone get any further with this issue as the exact same thing is happening to me. cheers. Julien Vermillard wrote: On Fri, 1 Aug 2008 13:18:17 +0200 Mezei Zoltan [EMAIL PROTECTED] wrote: On Fri, Aug 1, 2008 at 4:55 AM, Mezei Zoltan [EMAIL PROTECTED] wrote: What can go wrong

Re: MINA and Glassfish

2008-08-18 Thread Chris Hurst
private void processTimedOutSessions(IteratorH handles) { long currentTime = System.currentTimeMillis(); while (handles.hasNext()) { H handle = handles.next(); ConnectionRequest entry = connectionRequest(handle); // * entry is null pointer