Uploaded image for project: 'MariaDB Connector/R2DBC'
  1. MariaDB Connector/R2DBC
  2. R2DBC-99

No encoding set for ByteBuffer parameter

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • 1.2.1
    • other
    • None

    Description

      see https://github.com/mariadb-corporation/mariadb-connector-r2dbc/issues/77

      Encoding type is wrongly set ByteBuf in place of ByteBuffer, resulting in error like "java.lang.IllegalArgumentException: No encoder for class java.nio.HeapByteBuffer"

      implementation

        public boolean canEncode(Class<?> value) {
          return ByteBuf.class.isAssignableFrom(value);
        }
      

      must be :

        public boolean canEncode(Class<?> value) {
          return ByteBuffer.class.isAssignableFrom(value);
        }
      
      

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            diego dupin Diego Dupin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.