You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Andrea Cosentino (Jira)" <ji...@apache.org> on 2020/07/22 11:11:00 UTC

[jira] [Commented] (CAMEL-15324) Camel-as2 can fail on jdk8 because of java.lang.NoSuchMethodError: java.nio.CharBuffer

    [ https://issues.apache.org/jira/browse/CAMEL-15324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17162717#comment-17162717 ] 

Andrea Cosentino commented on CAMEL-15324:
------------------------------------------

This is fixed in 3.4.2 but we need to cast the CharBuffer to Buffer, to avoid this situation. 3.4.1 was built with JDK11, that's why you see this error.

> Camel-as2 can fail on jdk8 because of java.lang.NoSuchMethodError: java.nio.CharBuffer
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-15324
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15324
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-as2
>    Affects Versions: 3.4.1
>            Reporter: Jiri Ondrusek
>            Assignee: Jiri Ondrusek
>            Priority: Major
>
> There is an error in camel-as2, which can be seen during execution of client on jdk8.
> Here is an exception:
> {quote}Exception in thread "AS2Hdlr-41811" java.lang.NoSuchMethodError: java.nio.CharBuffer.clear()Ljava/nio/CharBuffer;
> 	at org.apache.camel.component.as2.api.io.AS2SessionInputBuffer.appendDecoded(AS2SessionInputBuffer.java:331)
> 	at org.apache.camel.component.as2.api.io.AS2SessionInputBuffer.lineFromReadBuffer(AS2SessionInputBuffer.java:311)
> 	at org.apache.camel.component.as2.api.io.AS2SessionInputBuffer.readLine(AS2SessionInputBuffer.java:216){quote}
> Error was simulated during implementation of camel-quarkus extension for as2.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)