SQL Error 17268 : Year out of range (Java/Spring)

The issue was in fact strangely not at the line indicated by Java, which led me nowhere. In step-by-step debugging mode, I've stumbled upon an update query done that was causing an issue before the SELECT.

A date with year 10000 was trying to be introduced during UPDATE, when the maximum supported date by Oracle is 9999. This overflowing date was due to a deadline date read from another system, and defined to 31/12/9999 23:23:59: with a bad timezone it was read as 10000 January.