I am seeing the following (truncated) stacktrace in the server.log file of JBoss 7.1.1 Final:
Caused by: org.postgresql.util.PSQLException: ERROR: current t
In my case i was getting this error because my file was corrupt. While iterating the records of files it was giving me the same error.
May be in future it will help to anyone. That's the only reason to post this answer.