Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-220

Connection error occured: java.lang.IndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: 1.3.2
    • Component/s: Other
    • Labels:
      None
    • Environment:
      MariaDB 10.0.17

      Description

      An exception is thrown in PacketOutputStream.sendStream (see attached stacktrace for details)! The implementation of sendStream is faulty (line 169):

      while ((len = reader.read(buffer, 0, (int) readLength)) > 0)

      In my case, readLength == 36214! You cannot read more data than the buffer size and hence the exception (here reader is a StringReader)! The readLength parameter of reader.read should be replaced by something like that:

      reader.read(buffer, 0, buffer.length)

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            cbourque Christian Bourque
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.