Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread jgenender
Ok… say… answer coming off list… too much drama for dev@.

Jeff


> On Sep 12, 2023, at 5:20 PM, Emmanuel Lécharny  wrote:
> 
> Hi!
> 
> Not sure it's about validating how others are validating a release...
> 
> Now, I'd like to remind every PMC members that in order to issue a +1, the 
> following things has to be completed per [1]:
> 
> "Before casting +1 binding votes, individuals are REQUIRED to download all 
> signed source code packages onto their own hardware, verify that they meet 
> all requirements of ASF policy on releases as described below, validate all 
> cryptographic signatures, compile as provided, and test the result on their 
> own platform."
> 
> Sure thing, it's a bit of work when 3 releases have been issued, and may be 
> we should start three votes (especially of the required Java version is 
> different for the voted releases, but this is not the case here).
> 
> FTR, when I vote a release (typically the lastest sshd release), here is what 
> I do:
> - I get the source package, check the sign and compile it, running the tests
> - I also grab the git tag, compile it, and run the tests (the only difference 
> is that I don't check the sig here)
> 
> Concerning the L files, I check they are present. However, we are dealing 
> with mature project, and most of the releases are bug fix releases. From time 
> to time, I check that all the required notices are present, and that we 
> aren't missing any third party dependency.
> 
> The rat plugin protect us from releasing a file that does not contain the 
> required header.
> 
> 
> All in all, it's a pretty dull work, that takes me an hour per release.
> 
> I do think we need to automatize it at some point, and most certainly have to 
> document the process - ideally speaking, we should add the process as an 
> attached text in the release vote mail.
> 
> Please feel free to comment, if you think I'm missing something !
> 
> Emmanuel
> 
> [1] https://www.apache.org/legal/release-policy.html#release-approval
> 
> On 13/09/2023 00:19, Gary Gregory wrote:
>> I don't understand what Windows has to do with my question.
>> What did you do to validate the release candidate before voting +1?
>> Gary
>> On Tue, Sep 12, 2023, 4:11 PM > > wrote:
>>I don’t use Windows.
>>Jeff
>> > On Sep 12, 2023, at 10:11 AM, Gary Gregory
>>mailto:garydgreg...@gmail.com>> wrote:
>> >
>> > You don't remember if you downloaded, built and reviewed all
>>three src or
>> > tar files? Are you voting without reviewing?
>> >
>> > Gary
>> >
>> >
>> > On Tue, Sep 12, 2023, 9:55 AM >> wrote:
>> >
>> >> I don’t remember if I voted because I have been voting on a lot
>>of stuff
>> >> lately.
>> >>
>> >> If I didn’t here is my +1 for all 3.
>> >>
>> >> Jeff
>> >>
>> >>> On Sep 12, 2023, at 2:29 AM, Emmanuel Lécharny
>>mailto:elecha...@gmail.com>>
>> >> wrote:
>> >>>
>> >>> Thanks Jeff & Gary.
>> >>>
>> >>> Is that for all the MINA versions?
>> >>>
>> >>> On 11/09/2023 16:27, Gary D. Gregory wrote:
>>  I can confirm a failure on Java 17 and Windows:
>>  [INFO] ---
>>  [INFO]  T E S T S
>>  [INFO] ---
>>  [INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
>>  [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time
>>elapsed:
>> >> 0.060 s -- in org.apache.mina.core.buffer.IoBufferHexDumperTest
>>  [INFO] Running org.apache.mina.core.buffer.IoBufferTest
>>  [ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time
>> >> elapsed: 0.404 s <<< FAILURE! -- in
>>org.apache.mina.core.buffer.IoBufferTest
>>  [ERROR]
>>org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer --
>> >> Time elapsed: 0.005 s <<< ERROR!
>>  java.nio.charset.CoderMalfunctionError:
>>java.nio.ReadOnlyBufferException
>> at
>> >>
>>java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
>> at
>> >>
>>
>> org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
>> at
>> >>
>>
>> org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
>> at
>> >>
>>java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>> >> Method)
>> at
>> >>
>>
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>> at
>> >>
>>
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at
>>java.base/java.lang.reflect.Method.invoke(Method.java:568)
>> at
>> >>
>> 

Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread Emmanuel Lécharny

Hi!

Not sure it's about validating how others are validating a release...

Now, I'd like to remind every PMC members that in order to issue a +1, 
the following things has to be completed per [1]:


"Before casting +1 binding votes, individuals are REQUIRED to download 
all signed source code packages onto their own hardware, verify that 
they meet all requirements of ASF policy on releases as described below, 
validate all cryptographic signatures, compile as provided, and test the 
result on their own platform."


Sure thing, it's a bit of work when 3 releases have been issued, and may 
be we should start three votes (especially of the required Java version 
is different for the voted releases, but this is not the case here).


FTR, when I vote a release (typically the lastest sshd release), here is 
what I do:

- I get the source package, check the sign and compile it, running the tests
- I also grab the git tag, compile it, and run the tests (the only 
difference is that I don't check the sig here)


Concerning the L files, I check they are present. However, we are 
dealing with mature project, and most of the releases are bug fix 
releases. From time to time, I check that all the required notices are 
present, and that we aren't missing any third party dependency.


The rat plugin protect us from releasing a file that does not contain 
the required header.



All in all, it's a pretty dull work, that takes me an hour per release.

I do think we need to automatize it at some point, and most certainly 
have to document the process - ideally speaking, we should add the 
process as an attached text in the release vote mail.


Please feel free to comment, if you think I'm missing something !

Emmanuel

[1] https://www.apache.org/legal/release-policy.html#release-approval

On 13/09/2023 00:19, Gary Gregory wrote:

I don't understand what Windows has to do with my question.

What did you do to validate the release candidate before voting +1?

Gary

On Tue, Sep 12, 2023, 4:11 PM > wrote:


I don’t use Windows.

Jeff


 > On Sep 12, 2023, at 10:11 AM, Gary Gregory
mailto:garydgreg...@gmail.com>> wrote:
 >
 > You don't remember if you downloaded, built and reviewed all
three src or
 > tar files? Are you voting without reviewing?
 >
 > Gary
 >
 >
 > On Tue, Sep 12, 2023, 9:55 AM mailto:jgenen...@apache.org>> wrote:
 >
 >> I don’t remember if I voted because I have been voting on a lot
of stuff
 >> lately.
 >>
 >> If I didn’t here is my +1 for all 3.
 >>
 >> Jeff
 >>
 >>> On Sep 12, 2023, at 2:29 AM, Emmanuel Lécharny
mailto:elecha...@gmail.com>>
 >> wrote:
 >>>
 >>> Thanks Jeff & Gary.
 >>>
 >>> Is that for all the MINA versions?
 >>>
 >>> On 11/09/2023 16:27, Gary D. Gregory wrote:
  I can confirm a failure on Java 17 and Windows:
  [INFO] ---
  [INFO]  T E S T S
  [INFO] ---
  [INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
  [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time
elapsed:
 >> 0.060 s -- in org.apache.mina.core.buffer.IoBufferHexDumperTest
  [INFO] Running org.apache.mina.core.buffer.IoBufferTest
  [ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time
 >> elapsed: 0.404 s <<< FAILURE! -- in
org.apache.mina.core.buffer.IoBufferTest
  [ERROR]
org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer --
 >> Time elapsed: 0.005 s <<< ERROR!
  java.nio.charset.CoderMalfunctionError:
java.nio.ReadOnlyBufferException
         at
 >>
java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
         at
 >>

org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
         at
 >>

org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
         at
 >>
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
 >> Method)
         at
 >>

java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
         at
 >>

java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at
java.base/java.lang.reflect.Method.invoke(Method.java:568)
         at
 >>

org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
         at
 >>

org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
         at
 >>

org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
         at
 >>


Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread Gary Gregory
I don't understand what Windows has to do with my question.

What did you do to validate the release candidate before voting +1?

Gary

On Tue, Sep 12, 2023, 4:11 PM  wrote:

> I don’t use Windows.
>
> Jeff
>
>
> > On Sep 12, 2023, at 10:11 AM, Gary Gregory 
> wrote:
> >
> > You don't remember if you downloaded, built and reviewed all three src or
> > tar files? Are you voting without reviewing?
> >
> > Gary
> >
> >
> > On Tue, Sep 12, 2023, 9:55 AM  wrote:
> >
> >> I don’t remember if I voted because I have been voting on a lot of stuff
> >> lately.
> >>
> >> If I didn’t here is my +1 for all 3.
> >>
> >> Jeff
> >>
> >>> On Sep 12, 2023, at 2:29 AM, Emmanuel Lécharny 
> >> wrote:
> >>>
> >>> Thanks Jeff & Gary.
> >>>
> >>> Is that for all the MINA versions?
> >>>
> >>> On 11/09/2023 16:27, Gary D. Gregory wrote:
>  I can confirm a failure on Java 17 and Windows:
>  [INFO] ---
>  [INFO]  T E S T S
>  [INFO] ---
>  [INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
>  [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> >> 0.060 s -- in org.apache.mina.core.buffer.IoBufferHexDumperTest
>  [INFO] Running org.apache.mina.core.buffer.IoBufferTest
>  [ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time
> >> elapsed: 0.404 s <<< FAILURE! -- in
> org.apache.mina.core.buffer.IoBufferTest
>  [ERROR] org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer --
> >> Time elapsed: 0.005 s <<< ERROR!
>  java.nio.charset.CoderMalfunctionError:
> java.nio.ReadOnlyBufferException
> at
> >>
> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
> at
> >>
> org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
> at
> >>
> org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
> at
> >> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method)
> at
> >>
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> at
> >>
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> at
> >>
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
> at
> >>
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at
> >>
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
> at
> >>
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at
> >> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
> at
> >>
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
> at
> org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
> at
> >>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
> at
> >>
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
> at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
> at
> >> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
> at
> >> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
> at
> >> org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
> at
> >> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
> at
> >> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
> at
> >>
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
> at
> >>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
> at
> >>
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
> at
> >>
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
> at
> >>
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
> at
> >>
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
> at
> >> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
> at
> >>
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
>  Caused by: java.nio.ReadOnlyBufferException
> at
> >> java.base/java.nio.HeapByteBufferR.put(HeapByteBufferR.java:212)
> at
> >>
> 

Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread jgenender
I don’t use Windows.

Jeff


> On Sep 12, 2023, at 10:11 AM, Gary Gregory  wrote:
> 
> You don't remember if you downloaded, built and reviewed all three src or
> tar files? Are you voting without reviewing?
> 
> Gary
> 
> 
> On Tue, Sep 12, 2023, 9:55 AM  wrote:
> 
>> I don’t remember if I voted because I have been voting on a lot of stuff
>> lately.
>> 
>> If I didn’t here is my +1 for all 3.
>> 
>> Jeff
>> 
>>> On Sep 12, 2023, at 2:29 AM, Emmanuel Lécharny 
>> wrote:
>>> 
>>> Thanks Jeff & Gary.
>>> 
>>> Is that for all the MINA versions?
>>> 
>>> On 11/09/2023 16:27, Gary D. Gregory wrote:
 I can confirm a failure on Java 17 and Windows:
 [INFO] ---
 [INFO]  T E S T S
 [INFO] ---
 [INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
 [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>> 0.060 s -- in org.apache.mina.core.buffer.IoBufferHexDumperTest
 [INFO] Running org.apache.mina.core.buffer.IoBufferTest
 [ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time
>> elapsed: 0.404 s <<< FAILURE! -- in org.apache.mina.core.buffer.IoBufferTest
 [ERROR] org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer --
>> Time elapsed: 0.005 s <<< ERROR!
 java.nio.charset.CoderMalfunctionError: java.nio.ReadOnlyBufferException
at
>> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
at
>> org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
at
>> org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>> Method)
at
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at
>> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at
>> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
at
>> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
at
>> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
at
>> org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
at
>> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
at
>> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
at
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
at
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
at
>> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
at
>> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
 Caused by: java.nio.ReadOnlyBufferException
at
>> java.base/java.nio.HeapByteBufferR.put(HeapByteBufferR.java:212)
at
>> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeBufferLoop(ISO_8859_1.java:238)
at
>> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeLoop(ISO_8859_1.java:258)
at
>> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:585)
... 30 more
 Using:
 Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
 Maven home: C:\java\apache-maven-3.9.4
 Java version: 17.0.8, vendor: Eclipse Adoptium, runtime: C:\Program
>> 

[GitHub] [mina-sshd] tomaswolf closed issue #414: A broken link during key exchange may cause an infinite loop.

2023-09-12 Thread via GitHub


tomaswolf closed issue #414: A broken link during key exchange may cause an 
infinite loop.
URL: https://github.com/apache/mina-sshd/issues/414


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



[GitHub] [mina-sshd] tomaswolf merged pull request #415: GH-414: Correct error handling in KeyExchangeMessageHandler

2023-09-12 Thread via GitHub


tomaswolf merged PR #415:
URL: https://github.com/apache/mina-sshd/pull/415


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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



Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread Gary Gregory
You don't remember if you downloaded, built and reviewed all three src or
tar files? Are you voting without reviewing?

Gary


On Tue, Sep 12, 2023, 9:55 AM  wrote:

> I don’t remember if I voted because I have been voting on a lot of stuff
> lately.
>
> If I didn’t here is my +1 for all 3.
>
> Jeff
>
> > On Sep 12, 2023, at 2:29 AM, Emmanuel Lécharny 
> wrote:
> >
> > Thanks Jeff & Gary.
> >
> > Is that for all the MINA versions?
> >
> > On 11/09/2023 16:27, Gary D. Gregory wrote:
> >> I can confirm a failure on Java 17 and Windows:
> >> [INFO] ---
> >> [INFO]  T E S T S
> >> [INFO] ---
> >> [INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
> >> [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.060 s -- in org.apache.mina.core.buffer.IoBufferHexDumperTest
> >> [INFO] Running org.apache.mina.core.buffer.IoBufferTest
> >> [ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time
> elapsed: 0.404 s <<< FAILURE! -- in org.apache.mina.core.buffer.IoBufferTest
> >> [ERROR] org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer --
> Time elapsed: 0.005 s <<< ERROR!
> >> java.nio.charset.CoderMalfunctionError: java.nio.ReadOnlyBufferException
> >> at
> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
> >> at
> org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
> >> at
> org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
> >> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >> at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> >> at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> >> at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
> >> at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> >> at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
> >> at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> >> at
> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
> >> at
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
> >> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
> >> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
> >> at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
> >> at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
> >> at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
> >> at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
> >> at
> org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
> >> at
> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
> >> at
> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
> >> at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
> >> at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
> >> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
> >> at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
> >> at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
> >> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
> >> at
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
> >> at
> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
> >> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
> >> Caused by: java.nio.ReadOnlyBufferException
> >> at
> java.base/java.nio.HeapByteBufferR.put(HeapByteBufferR.java:212)
> >> at
> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeBufferLoop(ISO_8859_1.java:238)
> >> at
> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeLoop(ISO_8859_1.java:258)
> >> at
> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:585)
> >> ... 30 more
> >> Using:
> >> Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
> >> Maven home: C:\java\apache-maven-3.9.4
> >> Java version: 17.0.8, vendor: Eclipse Adoptium, runtime: C:\Program
> Files\Eclipse Adoptium\jdk-17.0.8.7-hotspot
> >> Default locale: en_US, platform encoding: Cp1252
> >> OS name: 

Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread jgenender
Ok… I guess I was late :-)

Sorry!

Jeff


> On Sep 12, 2023, at 7:55 AM, jgenen...@apache.org wrote:
> 
> I don’t remember if I voted because I have been voting on a lot of stuff 
> lately.
> 
> If I didn’t here is my +1 for all 3.
> 
> Jeff
> 
>> On Sep 12, 2023, at 2:29 AM, Emmanuel Lécharny  wrote:
>> 
>> Thanks Jeff & Gary.
>> 
>> Is that for all the MINA versions?
>> 
>> On 11/09/2023 16:27, Gary D. Gregory wrote:
>>> I can confirm a failure on Java 17 and Windows:
>>> [INFO] ---
>>> [INFO]  T E S T S
>>> [INFO] ---
>>> [INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
>>> [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 
>>> 0.060 s -- in org.apache.mina.core.buffer.IoBufferHexDumperTest
>>> [INFO] Running org.apache.mina.core.buffer.IoBufferTest
>>> [ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
>>> 0.404 s <<< FAILURE! -- in org.apache.mina.core.buffer.IoBufferTest
>>> [ERROR] org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer -- Time 
>>> elapsed: 0.005 s <<< ERROR!
>>> java.nio.charset.CoderMalfunctionError: java.nio.ReadOnlyBufferException
>>>at 
>>> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
>>>at 
>>> org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
>>>at 
>>> org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
>>>at 
>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
>>> Method)
>>>at 
>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>>>at 
>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>at java.base/java.lang.reflect.Method.invoke(Method.java:568)
>>>at 
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>>>at 
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>at 
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>>>at 
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>>>at 
>>> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>>>at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
>>>at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
>>>at 
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
>>>at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
>>>at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
>>>at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
>>>at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
>>>at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
>>>at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>>>at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
>>>at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
>>>at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
>>>at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
>>>at 
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
>>>at 
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
>>>at 
>>> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
>>>at 
>>> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
>>>at 
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
>>> Caused by: java.nio.ReadOnlyBufferException
>>>at java.base/java.nio.HeapByteBufferR.put(HeapByteBufferR.java:212)
>>>at 
>>> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeBufferLoop(ISO_8859_1.java:238)
>>>at 
>>> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeLoop(ISO_8859_1.java:258)
>>>at 
>>> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:585)
>>>... 30 more
>>> Using:
>>> Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
>>> Maven home: C:\java\apache-maven-3.9.4
>>> Java version: 17.0.8, vendor: Eclipse Adoptium, runtime: C:\Program 
>>> Files\Eclipse Adoptium\jdk-17.0.8.7-hotspot
>>> Default locale: en_US, platform encoding: Cp1252
>>> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>>> Gary
>>> On 

Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread jgenender
I don’t remember if I voted because I have been voting on a lot of stuff lately.

If I didn’t here is my +1 for all 3.

Jeff

> On Sep 12, 2023, at 2:29 AM, Emmanuel Lécharny  wrote:
> 
> Thanks Jeff & Gary.
> 
> Is that for all the MINA versions?
> 
> On 11/09/2023 16:27, Gary D. Gregory wrote:
>> I can confirm a failure on Java 17 and Windows:
>> [INFO] ---
>> [INFO]  T E S T S
>> [INFO] ---
>> [INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
>> [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.060 
>> s -- in org.apache.mina.core.buffer.IoBufferHexDumperTest
>> [INFO] Running org.apache.mina.core.buffer.IoBufferTest
>> [ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 
>> 0.404 s <<< FAILURE! -- in org.apache.mina.core.buffer.IoBufferTest
>> [ERROR] org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer -- Time 
>> elapsed: 0.005 s <<< ERROR!
>> java.nio.charset.CoderMalfunctionError: java.nio.ReadOnlyBufferException
>> at 
>> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
>> at 
>> org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
>> at 
>> org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
>> at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
>> Method)
>> at 
>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
>> at 
>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:568)
>> at 
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>> at 
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>> at 
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>> at 
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>> at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
>> at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
>> at 
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
>> at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
>> at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
>> at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
>> at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
>> at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
>> at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
>> at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
>> at 
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
>> at 
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
>> Caused by: java.nio.ReadOnlyBufferException
>> at java.base/java.nio.HeapByteBufferR.put(HeapByteBufferR.java:212)
>> at 
>> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeBufferLoop(ISO_8859_1.java:238)
>> at 
>> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeLoop(ISO_8859_1.java:258)
>> at 
>> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:585)
>> ... 30 more
>> Using:
>> Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
>> Maven home: C:\java\apache-maven-3.9.4
>> Java version: 17.0.8, vendor: Eclipse Adoptium, runtime: C:\Program 
>> Files\Eclipse Adoptium\jdk-17.0.8.7-hotspot
>> Default locale: en_US, platform encoding: Cp1252
>> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>> Gary
>> On 2023/09/11 07:42:10 Jeff MAURY wrote:
>>> +1.
>>> 
>>> 2 remarks:
>>> 
>>>- Does not build with Java 17
>>>- Build is failing on Windows
>>> 
>>> 
>>> On Mon, Sep 11, 2023 

Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread Gary Gregory
I only tested 2.2.3 RC 1 on Windows with Java 17. My other test runs where
on macOS with Java 8.

Gary

On Tue, Sep 12, 2023, 4:29 AM Emmanuel Lécharny  wrote:

> Thanks Jeff & Gary.
>
> Is that for all the MINA versions?
>
> On 11/09/2023 16:27, Gary D. Gregory wrote:
> > I can confirm a failure on Java 17 and Windows:
> >
> > [INFO] ---
> > [INFO]  T E S T S
> > [INFO] ---
> > [INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
> > [INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.060 s -- in org.apache.mina.core.buffer.IoBufferHexDumperTest
> > [INFO] Running org.apache.mina.core.buffer.IoBufferTest
> > [ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 0.404 s <<< FAILURE! -- in org.apache.mina.core.buffer.IoBufferTest
> > [ERROR] org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer --
> Time elapsed: 0.005 s <<< ERROR!
> > java.nio.charset.CoderMalfunctionError: java.nio.ReadOnlyBufferException
> >  at
> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
> >  at
> org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
> >  at
> org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
> >  at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> >  at
> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
> >  at
> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> >  at java.base/java.lang.reflect.Method.invoke(Method.java:568)
> >  at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
> >  at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> >  at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
> >  at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> >  at
> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
> >  at
> org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
> >  at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
> >  at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
> >  at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
> >  at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
> >  at
> org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
> >  at
> org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
> >  at
> org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
> >  at
> org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
> >  at
> org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
> >  at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
> >  at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
> >  at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
> >  at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
> >  at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
> >  at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
> >  at
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
> >  at
> org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
> >  at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
> > Caused by: java.nio.ReadOnlyBufferException
> >  at
> java.base/java.nio.HeapByteBufferR.put(HeapByteBufferR.java:212)
> >  at
> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeBufferLoop(ISO_8859_1.java:238)
> >  at
> java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeLoop(ISO_8859_1.java:258)
> >  at
> java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:585)
> >  ... 30 more
> >
> > Using:
> >
> > Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
> > Maven home: C:\java\apache-maven-3.9.4
> > Java version: 17.0.8, vendor: Eclipse Adoptium, runtime: C:\Program
> Files\Eclipse Adoptium\jdk-17.0.8.7-hotspot
> > Default locale: en_US, platform encoding: Cp1252
> > OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
> >
> > Gary
> >
> > On 2023/09/11 07:42:10 Jeff MAURY wrote:
> >> +1.
> >>
> >> 2 remarks:
> >>
> >> - Does not build with Java 17
> >> - Build is failing 

[jira] [Commented] (DIRMINA-1172) Multiple DatagramAcceptors and the creation of a session object

2023-09-12 Thread Alexander B (Jira)


[ 
https://issues.apache.org/jira/browse/DIRMINA-1172?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17764105#comment-17764105
 ] 

Alexander B commented on DIRMINA-1172:
--

Thanks a lot. (y)

> Multiple DatagramAcceptors and the creation of a session object
> ---
>
> Key: DIRMINA-1172
> URL: https://issues.apache.org/jira/browse/DIRMINA-1172
> Project: MINA
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 2.1.5
>Reporter: Alexander B
>Priority: Major
> Fix For: 2.2.3, 2.0.25, 2.1.8
>
> Attachments: DIRMINA1172.java, UDPTest4.java, 
> apache-mina-2.2.3-SNAPSHOT-bin.tar.gz, mina-core-2.2.3-SNAPSHOT.jar
>
>
> Hello,
> I am using two independently created NioDatagramAcceptors, which are created 
> by the following code :
> {code:java}
> AbstractIoService inputSource = new NioDatagramAcceptor();
> ((NioDatagramAcceptor) inputSource).getSessionConfig().setReuseAddress(true);
> DefaultIoFilterChainBuilder filterChainBuilderUDP = 
> ((NioDatagramAcceptor)inputSource).getFilterChain();
> filterChainBuilderUDP.addLast("logger", new LoggingFilter());
> ((NioDatagramAcceptor) 
> inputSource).getSessionConfig().setIdleTime(IdleStatus.READER_IDLE, 
> getIdleTimeout());
> ((NioDatagramAcceptor) inputSource).setHandler(this);
> try {
>   ((NioDatagramAcceptor)inputSource).bind(new InetSocketAddress(port));
> } catch (IOException e) {
>   log.error("Failed to connect {}", e);
> }
> {code}
> One Acceptor is listening on port 9800, the other one on 9801. If I now send 
> UDP packages (from a external application) to both ports (independently). It 
> seems, that both UDP port are "connected" to the same session.
> Information: The external app is sending:
> Message "TEST_1 " just to port 9800
> Message "TEST_2 " just to port 9801
> The overwritten method messageReceived will give the following output:
> {code:java}
> public void messageReceived(IoSession session, Object message) throws 
> Exception {
>   String msgStr = message.toString();
>   log.info("SessionId:" + session.getId() + " " + msgStr);
> }
> {code}
> 2023-04-19_11:47:35.035 [NioDatagramAcceptor-2] INFO - SessionId:1 TEST_1 
> 1681904855701
> 2023-04-19_11:47:35.035 [NioDatagramAcceptor-3] INFO - SessionId:1 TEST_2 
> 1681904855701
> So, both messages (for port 9800 and port 9801) are received by SessionId1. 
> If I do exactly the same with `NioSocketConnector`, I can see two different 
> sessions, such that both messages are handled independently:
> 2023-04-19_11:44:35.725 [NioProcessor-11] INFO - SessionId:1 TEST_1 
> 1681904875701
> 2023-04-19_11:44:37.754 [NioProcessor-15] INFO - SessionId:2 TEST_2 
> 1681904875701
> Is there anything I did not mention in the context of UDP/DatagramAcceptor? 
> Or is there any setting, such that DatagramAcceptors can create/handle their 
> own session objects?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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



[ANNOUNCE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 released

2023-09-12 Thread Emmanuel Lecharny
The Apache MINA project is pleased to announce the release of Apache
MINA 2.2.3, 2.1.8 and 2.0.25

Those versions are fixing some Datagram session issue:

* DIRMINA-996 IoSessionRecycler RemoteAddress Collision
* DIRMINA-1172 Multiple DatagramAcceptors and the creation of a session object

We consider this a stable and production ready release.

Java 8 is required to run these versions.

We welcome you to try it out.

The latest release is now available here:

https://mina.apache.org/mina-project/downloads_2_2.html
https://mina.apache.org/mina-project/downloads_2_1.html
https://mina.apache.org/mina-project/downloads_2_0.html

Thanks for the feedback that made this release possible!

The Apache MINA project


--
Regards,
Cordialement,
Emmanuel Lécharny
www.iktek.com

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



Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread Emmanuel Lécharny

Never mind, got the same error.

In Java 17 a call to CharsetEncoder.encode() on an immutable buffer 
throws a CoderMalfunctionError, not a ReadOnlyBufferException.


The test has to be changed to reflect that. It does not change a thing 
for the release, it's still good to go.


Thanks!

On 11/09/2023 16:27, Gary D. Gregory wrote:

I can confirm a failure on Java 17 and Windows:

[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.060 s 
-- in org.apache.mina.core.buffer.IoBufferHexDumperTest
[INFO] Running org.apache.mina.core.buffer.IoBufferTest
[ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.404 s 
<<< FAILURE! -- in org.apache.mina.core.buffer.IoBufferTest
[ERROR] org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer -- Time elapsed: 
0.005 s <<< ERROR!
java.nio.charset.CoderMalfunctionError: java.nio.ReadOnlyBufferException
 at 
java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
 at 
org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
 at 
org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
 at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
 at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
 at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
 at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
 at 
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
 at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
 at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
 at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
 at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
 at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
 at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
 at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
 at 
org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
 at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.nio.ReadOnlyBufferException
 at java.base/java.nio.HeapByteBufferR.put(HeapByteBufferR.java:212)
 at 
java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeBufferLoop(ISO_8859_1.java:238)
 at 
java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeLoop(ISO_8859_1.java:258)
 at 
java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:585)
 ... 30 more

Using:

Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
Maven home: C:\java\apache-maven-3.9.4
Java version: 17.0.8, vendor: Eclipse Adoptium, runtime: C:\Program 
Files\Eclipse Adoptium\jdk-17.0.8.7-hotspot
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Gary

On 2023/09/11 07:42:10 Jeff MAURY wrote:

+1.

2 remarks:

- Does not build with Java 17
- Build is failing on Windows


On Mon, Sep 11, 2023 at 8:11 AM Guillaume Nodet  wrote:


+1

Le jeu. 7 sept. 2023 à 05:30, Emmanuel Lecharny  a
écrit :


hi!

WARNING: there are 3 votes to cast!


This is a vote for a triple release:
* MINA 2.2.3
* MINA 2.1.8

Re: [VOTE] Apache MINA 2.2.3, 2.1.8 and 2.0.25 releases

2023-09-12 Thread Emmanuel Lécharny

Thanks Jeff & Gary.

Is that for all the MINA versions?

On 11/09/2023 16:27, Gary D. Gregory wrote:

I can confirm a failure on Java 17 and Windows:

[INFO] ---
[INFO]  T E S T S
[INFO] ---
[INFO] Running org.apache.mina.core.buffer.IoBufferHexDumperTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.060 s 
-- in org.apache.mina.core.buffer.IoBufferHexDumperTest
[INFO] Running org.apache.mina.core.buffer.IoBufferTest
[ERROR] Tests run: 47, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.404 s 
<<< FAILURE! -- in org.apache.mina.core.buffer.IoBufferTest
[ERROR] org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer -- Time elapsed: 
0.005 s <<< ERROR!
java.nio.charset.CoderMalfunctionError: java.nio.ReadOnlyBufferException
 at 
java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:587)
 at 
org.apache.mina.core.buffer.AbstractIoBuffer.putString(AbstractIoBuffer.java:1798)
 at 
org.apache.mina.core.buffer.IoBufferTest.testReadOnlyBuffer(IoBufferTest.java:1104)
 at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
 at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.base/java.lang.reflect.Method.invoke(Method.java:568)
 at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
 at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
 at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
 at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
 at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
 at 
org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
 at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
 at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
 at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
 at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
 at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
 at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329)
 at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66)
 at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293)
 at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
 at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:316)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:240)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:214)
 at 
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:155)
 at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
 at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
 at 
org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
 at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
Caused by: java.nio.ReadOnlyBufferException
 at java.base/java.nio.HeapByteBufferR.put(HeapByteBufferR.java:212)
 at 
java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeBufferLoop(ISO_8859_1.java:238)
 at 
java.base/sun.nio.cs.ISO_8859_1$Encoder.encodeLoop(ISO_8859_1.java:258)
 at 
java.base/java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:585)
 ... 30 more

Using:

Apache Maven 3.9.4 (dfbb324ad4a7c8fb0bf182e6d91b0ae20e3d2dd9)
Maven home: C:\java\apache-maven-3.9.4
Java version: 17.0.8, vendor: Eclipse Adoptium, runtime: C:\Program 
Files\Eclipse Adoptium\jdk-17.0.8.7-hotspot
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Gary

On 2023/09/11 07:42:10 Jeff MAURY wrote:

+1.

2 remarks:

- Does not build with Java 17
- Build is failing on Windows


On Mon, Sep 11, 2023 at 8:11 AM Guillaume Nodet  wrote:


+1

Le jeu. 7 sept. 2023 à 05:30, Emmanuel Lecharny  a
écrit :


hi!

WARNING: there are 3 votes to cast!


This is a vote for a triple release:
* MINA 2.2.3
* MINA 2.1.8
* MINA 2.0.25

Those versions are fixing a Datagram session bug:
DIRMINA-996:IoSessionRecycler RemoteAddress Collision
DIRMINA-1172:Multiple DatagramAcceptors and the creation of a session
object



Temporary tags have been created