> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/release-notes/connectors/java/3.5/3.5.1.md).

# Connector/J 3.5.1 Release Notes

Release notes for MariaDB Connector/J 3.5.1, a Stable (GA) release published 20 November 2024.

{% hint style="info" %}

<p align="center">The most recent release of <a href="/docs/connectors/mariadb-connector-j.md">MariaDB Connector/J</a> is: <a href="/docs/release-notes/connectors/java/3.5/3.5.10.md"><strong>3.5.10</strong></a></p>

<p align="center"><a href="https://mariadb.com/downloads/connectors/connectors-data-access/java8-connector" class="button primary">Download Connector/J 3.5.10</a></p>
{% endhint %}

[Download](https://mariadb.com/downloads/connectors/connectors-data-access/java8-connector) | **Release Notes** | [Changelog](/docs/release-notes/connectors/java/changelogs/3.5/3.5.1.md) | [About MariaDB Connector/J](/docs/connectors/mariadb-connector-j/about-mariadb-connector-j.md)

**Release date:** 20 Nov 2024

MariaDB Connector/J 3.5.1 is a [***Stable***](/docs/release-notes/community-server/about/release-criteria.md) ***(GA)*** release.

{% hint style="info" %}
**For an overview of MariaDB Connector/J see the** [**About MariaDB Connector/J**](/docs/connectors/mariadb-connector-j/about-mariadb-connector-j.md) **page**
{% endhint %}

The MariaDB Connector/J 3.5 release series is replacing the maintenance releases for the 3.4 release series, as the new release series is fully compatible with 3.4.

## Notable changes

### PARSEC Authentication - [CONJ-1193](https://jira.mariadb.org/browse/CONJ-1193)

Support of the PARSEC Authentication Plugin which is provided starting with MariaDB Server 11.6. See [parsec](/docs/server/reference/plugins/authentication-plugins/authentication-plugin-parsec.md) documentation for more details.

This requires java 15+ (to use java native ed25519 Algorithm implementation). For previous versions of java, this will require adding BouncyCastle as dependency.

*While initially documented in 3.5.0, this feature was not in the released version.*

### New High Availability Mode With Loadbalancing For Reads - [CONJ-1207](https://jira.mariadb.org/browse/CONJ-1207)

When running a multi-master cluster (i.e. MariaDB Cluster with Galera), writing to more than one node can lead to optimistic locking errors ("deadlocks") in some use cases. Writing concurrently to multiple nodes also doesn't result in performance improvements, due to having to synchronously replicate to all nodes.\
The new high availability mode “Load-balance-read” permits the use of masters in a failover manner (try first master, the next one if the first master fails) while distributing the load on replicas.

Example of connection string:

```java
jdbc:mariadb:load-balance-read://127.0.0.5,127.0.0.6,address=(host=127.0.0.7)(type=replica),address=(host=127.0.0.8)(type=replica)/DB
```

Equivalent of:

```java
jdbc:mariadb:load-balance-read://address=(host=127.0.0.5)(type=primary),address=(host=127.0.0.6)(type=primary),address=(host=127.0.0.7)(type=replica),address=(host=127.0.0.8)(type=replica)/DB
```

In the example the hosts 127.0.0.5, 127.0.0.6 will be used for writes, in a failover manner. 127.0.0.6,127.0.0.7 are of type replica, read load balancing will be used.

### Permit bulk for INSERT ON DUPLICATE KEY UPDATE commands for 11.5.1+ servers - [CONJ-1208](https://jira.mariadb.org/browse/CONJ-1208)

Since [MDEV-30366](https://jira.mariadb.org/browse/MDEV-30366), the server can return appropriate detailed answers. This was implemented, but not for specific INSERT ON DUPLICATE KEY UPDATE commands.

## Bugs Fixed

* [CONJ-1053](https://jira.mariadb.org/browse/CONJ-1053) waffle-jna dependency is not declared optional in the module description
* [CONJ-1196](https://jira.mariadb.org/browse/CONJ-1196) setObject on java.util.Date is en/decode as java.sql.Date and truncates hour/minutes/seconds/ms while it must be en/decode like a java.sql.Timestamp
* [CONJ-1211](https://jira.mariadb.org/browse/CONJ-1211) JDBC 4.3 enquoteIdentifier missing validation
  * An identifier containing only number must be quoted, even if `alwaysQuote` parameter is set to false
  * Length validation must be done (< 64 characters).
* [CONJ-1213](https://jira.mariadb.org/browse/CONJ-1213) SQL commands ending with semicolon and trailing space are not using bulk

## Changelog

For a complete list of changes made in MariaDB Connector/J 3.5.1, with links to detailed information on each push, see the [changelog](/docs/release-notes/connectors/java/changelogs/3.5/3.5.1.md).

<sub>*This page is: Copyright © 2026 MariaDB. All rights reserved.*</sub>

{% @marketo/form formid="4316" formId="4316" %}
