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

NullPointerException when useBatchMultiSend is false or using Aurora

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.5.9
    • 2.0.0-RC, 1.6.0
    • Other
    • None

    Description

      A NullPointerException occurs in AbstractMultiSend when useBatchMultiSend is false. This happens on line 241 of AstractMultiSend.java On "AbstractQueryProtocol.readScheduler.execute(futureReadTask);"

      The reason is that readScheduler is not set in AbstractQueryProtocol constructor:

      if (options.useBatchMultiSend && readScheduler == null) {
      synchronized (AbstractQueryProtocol.class) {
      if (readScheduler == null)

      { readScheduler = SchedulerServiceProviderHolder.getBulkScheduler(); }

      }
      }

      It looks as if there is no code to do synchronous batch in "executeBatchStandard". We have implemented a synchronous version, and are willing to contribute.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            Green Matthew
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.