Issue:
My java sprig-batch job runs fine in my development environment, but when I deploy it on the integration server, I get a date-formatting issue. This makes me think there is a configuration difference between my dev. env. and the integration server.
Context:
I am not a java or spring expert. This is rather an integration issue.
I call a MY.PROCEDURE
piece of PL/SQL code, that in turn calls an Oracle view.
The below instruction in the Oracle view works fine in my dev. env., but on the integration server it is causing the issue:
T1.DATE between '01.07.2015' and '07.07.2020'
Giving an ugly
Caused by: java.sql.SQLDataException: ORA-01843: not a valid month ORA-06512: at "MY.PROCEDURE", line 36
When I specify the date format with a TO_DATE
, it vanishes. I know this is good practice, and should obviously be mandatory for our team to do. Anyway I would like to understand this configuration discrepancy we have between Dev and Int.
Help
Any idea where I should configure the locale when I deploy this thing?
I wish I could setup the local (or date format) locally, without modifying the java deliverable. Is it possible ?