[CONJ-504] java.lang.ArrayIndexOutOfBoundsException when useServerPrepStmts=true Created: 2017-07-11 Updated: 2017-07-13 Resolved: 2017-07-13 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 2.0.3, 1.6.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Dan | Assignee: | Diego Dupin |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 17.04, mysql Ver 15.1 Distrib 10.2.6-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2, Spring Boot 2.0.0.M2, Hibernate 5.2.10.Final, HikariCP 2.6.3 |
||
| Issue Links: |
|
||||||||||||||||
| Description |
|
This was working fine until 1.5.9. All later versions seem to show this behavior. Here is a sample stacktrace from 2.0.3.
|
| Comments |
| Comment by Diego Dupin [ 2017-07-12 ] | |||||||
|
Hi Dan java.lang.ArrayIndexOutOfBoundsException: 5 means that packet size is 5. The only packet that has this size is an EOF_PACKET, but for server MariaDB 10.2.6 (and MySQL > 5.7.5), EOF packet are normally not send when this flag is set, and server normally send an OK_PACKET that is bigger. I didn't reproduced this issue for the moment. | |||||||
| Comment by Dan [ 2017-07-12 ] | |||||||
|
Thank you for the explanation.
I will also try to build a test case, but I have trouble recreating the issue on my development machine. Maybe it's related to the production server configuration, which is frankly quite old. | |||||||
| Comment by Diego Dupin [ 2017-07-12 ] | |||||||
|
I may have a hint : in this production environnement, do you query the exact same query with different drivers (different language / version) with query cache enable ? | |||||||
| Comment by Diego Dupin [ 2017-07-12 ] | |||||||
|
Reproduced.
or
This is a bug in server cache query : | |||||||
| Comment by Dan [ 2017-07-12 ] | |||||||
|
I think you are right. The server in question has query cache enabled.
Thank you very much | |||||||
| Comment by Diego Dupin [ 2017-07-13 ] | |||||||
|
closing since it's a server issue : this will be handled with |