[CONJ-270] BufferOverflowException Created: 2016-03-26 Updated: 2016-04-04 Resolved: 2016-04-04 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.3.6 |
| Fix Version/s: | 1.4.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Piotr Blasiak | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Environment: |
Tomcat7 |
||
| Description |
|
The exact same query works nicely in the mysql connector, but with the mariadb one it gives me an exception. It´s a relatively large query & result set. Kind of difficult to reproduce outside of my production environment but maybe this stacktrace is enough? at org.hibernate.jpa.criteria.compile.CriteriaQueryTypeQueryAdapter.getResultList(CriteriaQueryTypeQueryAdapter.java:67) |
| Comments |
| Comment by Diego Dupin [ 2016-03-30 ] | |||||||||||||||||||||||||||
|
Hi, The stacktrace permit to have some indications, but not the detail. | |||||||||||||||||||||||||||
| Comment by Piotr Blasiak [ 2016-03-30 ] | |||||||||||||||||||||||||||
|
That query returns the number 4194304 and my connection string is nothing out of the ordinary: jdbc:mysql://hostname:3306/dbname | |||||||||||||||||||||||||||
| Comment by Christian Bourque [ 2016-03-31 ] | |||||||||||||||||||||||||||
|
Same problem here!
| |||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2016-04-04 ] | |||||||||||||||||||||||||||
|
Reading code, I only see a possible problem is a prepared query has more than 8192 parameters (32768 for version >= 1.3.7).
Can you confirm that your query has so much parameters ? This will be fixed in 1.4.1. | |||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2016-04-04 ] | |||||||||||||||||||||||||||
|
Driver will permit 65536 parameters now (max possible value) commit : https://github.com/MariaDB/mariadb-connector-j/commit/171b1abda8d72d44c599f3d5dbb30d55ec8ce022 Snapshot with correction available through maven :
| |||||||||||||||||||||||||||
| Comment by Christian Bourque [ 2016-04-04 ] | |||||||||||||||||||||||||||
|
Yes, I confirm that our query has more than 8192 parameters (we have a lot of "or in (?, ?, ?, ...)" in the same query)! | |||||||||||||||||||||||||||
| Comment by Diego Dupin [ 2016-04-04 ] | |||||||||||||||||||||||||||
|
Thanks for the confirmation. Correction 1.4.1 which contain the correction will be released by the end of the week. |