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 (Jira)" <ji...@apache.org> on 2024/12/19 19:14:00 UTC
[jira] [Comment Edited] (DIRMINA-1183) NoSuchMethodError at Version 2.1.9
[ https://issues.apache.org/jira/browse/DIRMINA-1183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907161#comment-17907161 ]
Emmanuel Lécharny edited comment on DIRMINA-1183 at 12/19/24 7:13 PM:
----------------------------------------------------------------------
[~twolf] and FTR, the {{pom.xml}} content:
{code}
...
<!-- use JDK8 compilation for JDK9+ compiler -->
<profile>
<id>java-8-compilation</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
...
{code}
so I guess we are good to go.
was (Author: elecharny):
[~twolf]and FTR, the {{pom.xml}} content:
{code}
...
<!-- use JDK8 compilation for JDK9+ compiler -->
<profile>
<id>java-8-compilation</id>
<activation>
<jdk>[11,)</jdk>
</activation>
<properties>
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
...
{code}
so I guess we are good to go.
> NoSuchMethodError 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 in target-subdir *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 in target-subdir *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.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937)
> Maven home: C:\Users\User\Documents\apache-maven-3.9.9
> 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-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org