[ https://issues.apache.org/jira/browse/DIRMINA-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexander B updated DIRMINA-1183: --------------------------------- Description: Compiling and Running my project with Java 1.8 and Mina 2.1.8 works fine. Now, I have updated Mina to 2.1.9 with no code changes on my side, then it seems, that there might be some problems running the program (NoSuchMethodException). I have prepared a minimal example as a zip file, which is attached. Case A (this case works): Set Mina to `2.1.8` in pom.xml and build it with "mvn clean package -U", running then "java -jar MinaTest.jar" works fine. You can connect, e.g. with Putty to localhost:5555 and you receive messages Case B (this case crashes): Set Mina to `2.1.9` in pom.xml and build it with "mvn clean package -U", running then "java -jar MinaTest.jar" yields into the following exception: {quote}Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer; at org.apache.mina.core.buffer.AbstractIoBuffer.flip(AbstractIoBuffer.java:462) at org.apache.mina.filter.codec.textline.TextLineDecoder.<init>(TextLineDecoder.java:137) at org.apache.mina.filter.codec.textline.TextLineCodecFactory.<init>(TextLineCodecFactory.java:91) at org.example.SocketSink.<init>(SocketSink.java:21) at org.example.Main.main(Main.java:11){quote} The environment was: {quote}Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0) Maven home: C:\Users\User\Documents\apache-maven-3.9.7 Java version: 1.8.0_302, vendor: Temurin, runtime: C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"{quote} was: Compiling and Running my project with Java 1.8 and Mina 2.1.8 works fine. Now, I have updated Mina to 2.1.9 with no code changes on my side, then it seems, that there might be some problems running the program (NoSuchMethodException). I have prepared a minimal example as a zip file, which is attached. Case A (this case works): Set Mina to `2.1.8` in pom.xml and build it with "mvn clean package -U", running then "java -jar MinaTest.jar" works fine. You can connect, e.g. with Putty to localhost:5555 and you receive messages Case B (this case crashes): Set Mina to `2.1.9` in pom.xml and build it with "mvn clean package -U", running then "java -jar MinaTest.jar" yields into the following exception: ´´´ Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer; at org.apache.mina.core.buffer.AbstractIoBuffer.flip(AbstractIoBuffer.java:462) at org.apache.mina.filter.codec.textline.TextLineDecoder.<init>(TextLineDecoder.java:137) at org.apache.mina.filter.codec.textline.TextLineCodecFactory.<init>(TextLineCodecFactory.java:91) at org.example.SocketSink.<init>(SocketSink.java:21) at org.example.Main.main(Main.java:11) ´´´ The environment was: ``` Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0) Maven home: C:\Users\User\Documents\apache-maven-3.9.7 Java version: 1.8.0_302, vendor: Temurin, runtime: C:\Program Files\Eclipse Foundation\jdk-8.0.302.8-hotspot\jre Default locale: de_DE, platform encoding: Cp1252 OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows" ``` > NoSuchMethoError at Version 2.1.9 > --------------------------------- > > Key: DIRMINA-1183 > URL: https://issues.apache.org/jira/browse/DIRMINA-1183 > Project: MINA > Issue Type: Bug > Components: Core > Affects Versions: 2.1.9 > Reporter: Alexander B > Priority: Major > Attachments: MinaTest.zip > > > Compiling and Running my project with Java 1.8 and Mina 2.1.8 works fine. > Now, I have updated Mina to 2.1.9 with no code changes on my side, then it > seems, that there might be some problems running the program > (NoSuchMethodException). > I have prepared a minimal example as a zip file, which is attached. > Case A (this case works): > Set Mina to `2.1.8` in pom.xml and build it with "mvn clean package -U", > running then "java -jar MinaTest.jar" works fine. You can connect, e.g. with > Putty to localhost:5555 and you receive messages > Case B (this case crashes): > Set Mina to `2.1.9` in pom.xml and build it with "mvn clean package -U", > running then "java -jar MinaTest.jar" yields into the following exception: > {quote}Exception in thread "main" java.lang.NoSuchMethodError: > java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer; > at > org.apache.mina.core.buffer.AbstractIoBuffer.flip(AbstractIoBuffer.java:462) > at > org.apache.mina.filter.codec.textline.TextLineDecoder.<init>(TextLineDecoder.java:137) > at > org.apache.mina.filter.codec.textline.TextLineCodecFactory.<init>(TextLineCodecFactory.java:91) > at org.example.SocketSink.<init>(SocketSink.java:21) > at org.example.Main.main(Main.java:11){quote} > The environment was: > {quote}Apache Maven 3.9.7 (8b094c9513efc1b9ce2d952b3b9c8eaedaf8cbf0) > Maven home: C:\Users\User\Documents\apache-maven-3.9.7 > Java version: 1.8.0_302, vendor: Temurin, runtime: C:\Program Files\Eclipse > Foundation\jdk-8.0.302.8-hotspot\jre > Default locale: de_DE, platform encoding: Cp1252 > OS name: "windows 10", version: "10.0", arch: "amd64", family: > "windows"{quote} -- 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