What causes this error in postgresql?
org.postgresql.util.PSQLException: ERROR: canceling statement due to user request
In addition to Eric's suggestions, you can see statement cancels when:
pg_cancel_backend to ask your session to cancel its current statementfast shutdown or restart of the PostgreSQL serverCheck for cron jobs or load management tools that might be cancelling long-running queries.