[CONJ-403] Nullpointer-Exception in Select-Statement Created: 2016-12-27 Updated: 2017-01-12 Resolved: 2017-01-12 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | Other |
| Affects Version/s: | 1.5.6 |
| Fix Version/s: | 1.5.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andreas Gottardi | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 3 |
| Labels: | None | ||
| Environment: |
Windows 10 version 10.0 running on amd64; Cp1252; en_US (nb) |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
The following statement on a remote database throws the shown exception: use s12db1; Exception shown in Netbeans Notifications: java.lang.NullPointerException Error does not occur in version 1.5.5. |
| Comments |
| Comment by Chris Kistner [ 2017-01-10 ] | ||||||||||||||||||||||||||||||
|
We're getting the NullPointerException at the same line with our webapp, but our stacktrace is quite different:
Our environment is as follow:
Version 1.5.5 and 1.4.6 does not have this issue. | ||||||||||||||||||||||||||||||
| Comment by Richard Stanford [ 2017-01-11 ] | ||||||||||||||||||||||||||||||
|
We are able to trigger this when using JDBI to return generated keys: Caused by: java.lang.NullPointerException Tracing through, it appears that the generated keys are returned successfully, no exceptions are thrown, but packetFetcher is indeed null in: Buffer buffer = packetFetcher.getReusableBuffer(); I can also confirm that this issue does not appear in 1.5.5 The particular datatype of the incremented key is a BIGINT(20) in case that makes a difference. Once the row is inserted, SELECTing the row works as expected even in 1.5.6. |