cannot execute UPDATE in a read-only transaction

ssh框架下的java服务在对postgres数据库进行操作时,出现了无法再只读模式下操作的报错,
但是数据库是有这些权限的,在java中jdbc设置中也没有对这方面进行限制,大神指点下可能出现的原因

http://stackoverflow.com/questions/13223870/activerecordstatementinvalid-pgerror-error-cannot-execute-update-in-a-rea