You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by Emmanuel Lécharny <el...@gmail.com> on 2022/08/10 09:34:30 UTC

Re: Infinite loop in Apache Directory Server when using MINA 2.2.1

I confirm. I built the LDAP API with Java 11 targetting Java 8, but it's 
not enough.

Fixed in trunk.

On 30/07/2022 10:23, Emmanuel Lécharny wrote:
> Seems like it's an issue with a mixed Java version being used: the lib 
> built with Java 11 and running tests in Java 8, or something like that.
> 
> Still investigating.
> 
> On 30/07/2022 10:03, Emmanuel Lécharny wrote:
>> Hi,
>>
>>
>> I'm currently investiagting some infinite loop in Apache DS when 
>> setting up a LDAPS server. I have no idea what's going on atm - but I 
>> will keep you posted.
>>
>>
>> Here is the trace I get when doing a kill -3:
>>
>>
>> "NioProcesso-- 
> *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
> T. +33 (0)4 89 97 36 50
> P. +33 (0)6 08 33 32 61
> emmanuel.lecharny@busit.com https://www.busit.com/

-- 
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecharny@busit.com https://www.busit.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


Re: Infinite loop in Apache Directory Server when using MINA 2.2.1

Posted by Emmanuel Lécharny <el...@gmail.com>.
Directory.

bascially, rebuilding Apache LDAP API with Java 8 did the trick.

The pb was due to an exception caused by an API change in Java 9, 
related to ByteBuffer (see 
https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/) 
which was causing an exception to be thrown, and the LDAP API handler 
was then tryingh to send a NoticeOfDisconnect message to the remote 
peer, which obviously ended in another exception to be thrown 
(ByteBuffer missing method), and voilà, infinite loop.

On 11/08/2022 03:29, Jonathan Valliere wrote:
> Was the fix in Mina or Directory?
> 
> On Wed, Aug 10, 2022 at 5:34 AM Emmanuel Lécharny <elecharny@gmail.com 
> <ma...@gmail.com>> wrote:
> 
>     I confirm. I built the LDAP API with Java 11 targetting Java 8, but
>     it's
>     not enough.
> 
>     Fixed in trunk.
> 
>     On 30/07/2022 10:23, Emmanuel Lécharny wrote:
>      > Seems like it's an issue with a mixed Java version being used:
>     the lib
>      > built with Java 11 and running tests in Java 8, or something like
>     that.
>      >
>      > Still investigating.
>      >
>      > On 30/07/2022 10:03, Emmanuel Lécharny wrote:
>      >> Hi,
>      >>
>      >>
>      >> I'm currently investiagting some infinite loop in Apache DS when
>      >> setting up a LDAPS server. I have no idea what's going on atm -
>     but I
>      >> will keep you posted.
>      >>
>      >>
>      >> Here is the trace I get when doing a kill -3:
>      >>
>      >>
>      >> "NioProcesso--
>      > *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
>      > T. +33 (0)4 89 97 36 50
>      > P. +33 (0)6 08 33 32 61
>      > emmanuel.lecharny@busit.com <ma...@busit.com>
>     https://www.busit.com/ <https://www.busit.com/>
> 
>     -- 
>     *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
>     T. +33 (0)4 89 97 36 50
>     P. +33 (0)6 08 33 32 61
>     emmanuel.lecharny@busit.com <ma...@busit.com>
>     https://www.busit.com/ <https://www.busit.com/>
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
>     <ma...@mina.apache.org>
>     For additional commands, e-mail: dev-help@mina.apache.org
>     <ma...@mina.apache.org>
> 

-- 
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecharny@busit.com https://www.busit.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: Infinite loop in Apache Directory Server when using MINA 2.2.1

Posted by Emmanuel Lécharny <el...@gmail.com>.
Directory.

bascially, rebuilding Apache LDAP API with Java 8 did the trick.

The pb was due to an exception caused by an API change in Java 9, 
related to ByteBuffer (see 
https://www.morling.dev/blog/bytebuffer-and-the-dreaded-nosuchmethoderror/) 
which was causing an exception to be thrown, and the LDAP API handler 
was then tryingh to send a NoticeOfDisconnect message to the remote 
peer, which obviously ended in another exception to be thrown 
(ByteBuffer missing method), and voilà, infinite loop.

On 11/08/2022 03:29, Jonathan Valliere wrote:
> Was the fix in Mina or Directory?
> 
> On Wed, Aug 10, 2022 at 5:34 AM Emmanuel Lécharny <elecharny@gmail.com 
> <ma...@gmail.com>> wrote:
> 
>     I confirm. I built the LDAP API with Java 11 targetting Java 8, but
>     it's
>     not enough.
> 
>     Fixed in trunk.
> 
>     On 30/07/2022 10:23, Emmanuel Lécharny wrote:
>      > Seems like it's an issue with a mixed Java version being used:
>     the lib
>      > built with Java 11 and running tests in Java 8, or something like
>     that.
>      >
>      > Still investigating.
>      >
>      > On 30/07/2022 10:03, Emmanuel Lécharny wrote:
>      >> Hi,
>      >>
>      >>
>      >> I'm currently investiagting some infinite loop in Apache DS when
>      >> setting up a LDAPS server. I have no idea what's going on atm -
>     but I
>      >> will keep you posted.
>      >>
>      >>
>      >> Here is the trace I get when doing a kill -3:
>      >>
>      >>
>      >> "NioProcesso--
>      > *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
>      > T. +33 (0)4 89 97 36 50
>      > P. +33 (0)6 08 33 32 61
>      > emmanuel.lecharny@busit.com <ma...@busit.com>
>     https://www.busit.com/ <https://www.busit.com/>
> 
>     -- 
>     *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
>     T. +33 (0)4 89 97 36 50
>     P. +33 (0)6 08 33 32 61
>     emmanuel.lecharny@busit.com <ma...@busit.com>
>     https://www.busit.com/ <https://www.busit.com/>
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
>     <ma...@mina.apache.org>
>     For additional commands, e-mail: dev-help@mina.apache.org
>     <ma...@mina.apache.org>
> 

-- 
*Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
T. +33 (0)4 89 97 36 50
P. +33 (0)6 08 33 32 61
emmanuel.lecharny@busit.com https://www.busit.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


Re: Infinite loop in Apache Directory Server when using MINA 2.2.1

Posted by Jonathan Valliere <jo...@apache.org>.
Was the fix in Mina or Directory?

On Wed, Aug 10, 2022 at 5:34 AM Emmanuel Lécharny <el...@gmail.com>
wrote:

> I confirm. I built the LDAP API with Java 11 targetting Java 8, but it's
> not enough.
>
> Fixed in trunk.
>
> On 30/07/2022 10:23, Emmanuel Lécharny wrote:
> > Seems like it's an issue with a mixed Java version being used: the lib
> > built with Java 11 and running tests in Java 8, or something like that.
> >
> > Still investigating.
> >
> > On 30/07/2022 10:03, Emmanuel Lécharny wrote:
> >> Hi,
> >>
> >>
> >> I'm currently investiagting some infinite loop in Apache DS when
> >> setting up a LDAPS server. I have no idea what's going on atm - but I
> >> will keep you posted.
> >>
> >>
> >> Here is the trace I get when doing a kill -3:
> >>
> >>
> >> "NioProcesso--
> > *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
> > T. +33 (0)4 89 97 36 50
> > P. +33 (0)6 08 33 32 61
> > emmanuel.lecharny@busit.com https://www.busit.com/
>
> --
> *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
> T. +33 (0)4 89 97 36 50
> P. +33 (0)6 08 33 32 61
> emmanuel.lecharny@busit.com https://www.busit.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
> For additional commands, e-mail: dev-help@mina.apache.org
>
>

Re: Infinite loop in Apache Directory Server when using MINA 2.2.1

Posted by Jonathan Valliere <jo...@apache.org>.
Was the fix in Mina or Directory?

On Wed, Aug 10, 2022 at 5:34 AM Emmanuel Lécharny <el...@gmail.com>
wrote:

> I confirm. I built the LDAP API with Java 11 targetting Java 8, but it's
> not enough.
>
> Fixed in trunk.
>
> On 30/07/2022 10:23, Emmanuel Lécharny wrote:
> > Seems like it's an issue with a mixed Java version being used: the lib
> > built with Java 11 and running tests in Java 8, or something like that.
> >
> > Still investigating.
> >
> > On 30/07/2022 10:03, Emmanuel Lécharny wrote:
> >> Hi,
> >>
> >>
> >> I'm currently investiagting some infinite loop in Apache DS when
> >> setting up a LDAPS server. I have no idea what's going on atm - but I
> >> will keep you posted.
> >>
> >>
> >> Here is the trace I get when doing a kill -3:
> >>
> >>
> >> "NioProcesso--
> > *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
> > T. +33 (0)4 89 97 36 50
> > P. +33 (0)6 08 33 32 61
> > emmanuel.lecharny@busit.com https://www.busit.com/
>
> --
> *Emmanuel Lécharny - CTO* 205 Promenade des Anglais – 06200 NICE
> T. +33 (0)4 89 97 36 50
> P. +33 (0)6 08 33 32 61
> emmanuel.lecharny@busit.com https://www.busit.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
> For additional commands, e-mail: dev-help@mina.apache.org
>
>