That worked! beautiful.
Why did my attempt to do it in the console fail? Whats error code -22?
I think that if the transaction is already known by the bitcoind you can't send it again. Since you got it with getrawtransaction it was already known.
AFAIK bitcoind will only resent transactions that belong to some of the wallet addresses it knows of. Otherwise, if you were not connected to enough good peers at the first time, the transaction may get stuck. In that case I think you need to restart bitcoind, or push the raw transaction through some other server.