| From: | shammat(at)gmx(dot)net |
|---|---|
| To: | pgsql-general(at)lists(dot)postgresql(dot)org |
| Subject: | Re: JDBC issue |
| Date: | 2026-07-12 08:02:40 |
| Message-ID: | bf09cc4a-a107-4c0a-b051-0b0638ceebfe@gmx.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Am 12.07.26 um 09:40 schrieb Stephen Davies:
> Root Cause
>
> java.lang.NullPointerException: Cannot invoke "java.sql.Statement.executeQuery(String)" because "st1" is null
> org.apache.jsp.jsp.browsewineries_jsp._jspService(browsewineries_jsp.java:171)
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:62)
>
> Tells me nothing more.
> The code has to go past the connection and statement lines to get to the query line.
> This code has been working for several years before today.
There is a variable named "st1" in the servlet code which is NULL.
This is not a Postgres error, but an error in your code.
You need to check how st1 is populated in the Java code.
If I had to guess: the code retrieves data from the database and receives a NULL
value that it does not expect and thus not check.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Gabriel Furstenheim Milerud | 2026-07-14 11:06:02 | pg-jason-validator a Macro Based json validation extension |
| Previous Message | Stephen Davies | 2026-07-12 08:02:17 | Re: JDBC issue |