Don't use notepad. Use a decent text editor such as Notepad++ that allows you to see the end of line characters.
I used NotePad++ to inspect whether any illegal characters are present in this file. Unfortunately, I could not find anything wrong.
On Notepad++, I switched on the following options on the Menu
View -> Show Symbol -> and I checked
"Show All Characters"
"Show Indent Guide"
"Show Wrap Symbol"
Here is the screen snapshot of config.properties file opened in Notepad++
Please note that, line 202 is the last line of the file.
As I posted in the beginning of this post, the error that I get is
Error: java.sql.SQLException: Parameter index out of range (1 > number of parameters, which is0).
If I try to make it a single line sql.command then everything works fine.
Please note that this was working fine till the entries in the config.properties file was less than 190 or so. Its only after that it started giving problems. The sql. commands given on line number 192 also had this problem, so I made it to a single line. The same issue occured with the sql. command given on line number 194 too.
Edit:
For test purpose, (on an effort to reduce the number of lines in the config.properties file), I removed some 5 to 10 lines from the config.properties file.
Tried moving this particular sq. command to the top of the config.properties file too. Unfortunately, the same result. Now really wondering what is wrong
I feel that definitely this has to do something with the character "\" and the order of ? in the sql. command in the config.properties file
Regards
Anser