I was got same error in my magento administrator at cancel or refund for order cancel action in order view page.
Solutions :-
Step 1: First you cancel refer below link for call Authorize.net Api for make cancel or refund transactions. because i have used that api and got successfully cancel ord refund order from admin.
http://developer.authorize.net/api/reference/#payment-transactions-refund-a-transaction
http://developer.authorize.net/api/reference/#payment-transactions-void-a-transaction
Step 2: You can call api using "curl" like simple war as php programming. In the Curl request you must be Passed your sandbox/Live API LOGIN ID and TRANSACTION KEY with another xml parameters.
Step 3: When you will get back responce successfully than after you must be update one field from magento database.
Table Name : sales_payment_transaction
Field Name : is_closed(change value "0" to "1")
"is_closed field is important for database updation in magento".
If you want more help than comment me otherwise please like my post.
Thanks.
Hitesh
Softweb Solutions Pvt. Ltd.