THE COMMENT. It was the comment in the query.
It looks like pgAdmin can digest the comment in the query, while JDBC not.My eyes were also commenting out that line, because I didn't realized till now...
Guys, sorry for the time I made you waste on this thread and for doubting about iBatis, I was really getting mad on this problem.