[CONJ-646] NullPointerException when connection lost to database Created: 2018-09-13 Updated: 2019-02-08 Resolved: 2019-01-18 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Failover |
| Affects Version/s: | 2.3.0, 2.2.6 |
| Fix Version/s: | 1.8.0, 2.4.0 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Alessio Pollero | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian 9 and Mac OS X 10.13.6 |
||
| Attachments: |
|
| Description |
|
When a connection is lost to the database (MySQL Server) and the driver is used with aurora capabilities a NullPointerException is thrown and a connection can't be established anymore, without restarting the app... Connection URL: jdbc:mariadb:aurora://192.168.1.2:3307/mysaas?characterEncoding=UTF-8&useOldAliasMetadataBehavior=true The stacktrace is :
Attached a log of the error. |
| Comments |
| Comment by Diego Dupin [ 2019-01-17 ] |
|
Could you indicate server version ? Btw, why using aurora configuration for a standard mysql server ? |
| Comment by Alessio Pollero [ 2019-01-17 ] |
|
MySQL version 5.7... I was using it configured as Aurora, since we wanted to keep the same url scheme as in the production env... |
| Comment by Diego Dupin [ 2019-01-17 ] |
|
hmm, ok, I'll continue investigations then. |
| Comment by Diego Dupin [ 2019-01-18 ] |
|
Finally found the issue, and reproduced. |