ora-01086

Oracle ORA-01086: savepoint never established

I am trying to set a savepoint and the rollback to that point when I have a problem. But I get the following message: SQL execution error, ORA-01086: savepoint 'LASTSAVE' never established ORA-06212: at line 1". I have made sure there are no commits until then end but still get the error. I have also wrapped it up in a transaction....